nl80211: Set NL80211_ATTR_IFACE_SOCKET_OWNER for connect and associate
This allows kernel to force disconnection if something kills the wpa_supplicant process in a manner that does not allow proper cleanup to be performed. The association is not supposed to be allowed to continue after process has ended since there are number of operations that wpa_supplicant may need to do during the association. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
d07f450da9
commit
c85dfc6f84
1 changed files with 3 additions and 0 deletions
|
@ -5057,6 +5057,9 @@ static int nl80211_connect_common(struct wpa_driver_nl80211_data *drv,
|
|||
struct wpa_driver_associate_params *params,
|
||||
struct nl_msg *msg)
|
||||
{
|
||||
if (nla_put_flag(msg, NL80211_ATTR_IFACE_SOCKET_OWNER))
|
||||
return -1;
|
||||
|
||||
if (params->bssid) {
|
||||
wpa_printf(MSG_DEBUG, " * bssid=" MACSTR,
|
||||
MAC2STR(params->bssid));
|
||||
|
|
Loading…
Reference in a new issue