nl80211: Change iftype to station on leaving mesh

This is needed to make following operations behave as expected since
mesh iftypes may prevent various operations (e.g., registering Probe
Request frame RX). Use same design as leave_ibss does to handle this
consistently.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2014-11-27 16:39:14 +02:00 committed by Jouni Malinen
parent 4e0990dc88
commit f33c82d23e

View file

@ -8966,6 +8966,11 @@ static int wpa_driver_nl80211_leave_mesh(void *priv)
nla_put_failure:
nlmsg_free(msg);
if (wpa_driver_nl80211_set_mode(drv->first_bss,
NL80211_IFTYPE_STATION)) {
wpa_printf(MSG_INFO,
"nl80211: Failed to set interface into station mode");
}
return ret;
}