[PATCH] nl80211: disable_11b_rates on interface mode change
Eliad Peller
eliad
Mon Oct 10 10:31:02 PDT 2011
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 <eliad at wizery.com>
---
src/drivers/driver_nl80211.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index ba6c70f..3dc7627 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5517,6 +5517,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);
--
1.7.6.401.g6a319
More information about the Hostap
mailing list