add ssid to MsgStateEncrypted
fix SMP checks