From: Eliad Peller Date: Sat, 29 Oct 2011 19:00:07 +0000 (+0300) Subject: nl80211: disable_11b_rates on interface mode change X-Git-Tag: hostap-1-bp~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=083590503bdf6b223f217c7eef4ed4da2e7b1347;p=thirdparty%2Fhostap.git nl80211: disable_11b_rates on interface mode change disable_11b_rates() is called on interface addition, but not on interface type change, resulting in 11b rates enabled on p2p interfaces. Signed-off-by: Eliad Peller --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index f22e847d5..49dd7a469 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -5770,6 +5770,9 @@ done: bss->beacon_set = 0; } + if (!ret && drv->disable_11b_rates) + nl80211_disable_11b_rates(drv, drv->ifindex, 1); + if (ret) wpa_printf(MSG_DEBUG, "nl80211: Interface mode change to %d " "from %d failed", nlmode, drv->nlmode);