Allow AP mode deauth/disassoc reason code to be overridden
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 4 Jan 2013 10:19:02 +0000 (12:19 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 12 Jan 2013 15:51:54 +0000 (17:51 +0200)
commit6917c9e8298767ecfbb4d86520c0ef18cc8da769
treeca0e042740c316612ad28d4fdfe19c59a8bb211e
parent1a9f6509b3a711071c12006ff7c3a9cb2a6691f2
Allow AP mode deauth/disassoc reason code to be overridden

The optional "reason=<reason code>" parameter to the ctrl_iface
deauthenticate and disassociate commands can now be used to change the
reason code used in the disconnection frame. This can be used, e.g., by
P2P GO to disconnect a single P2P client from the group by sending it an
indication of the group getting terminated (Deauthentication frame with
reason code 3). It needs to be noted that the peer device is still in
possession on the PSK, so it can still reconnect to the group after this
if it does not follow the group termination indication.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ctrl_iface_ap.c