From patchwork Thu Aug 9 14:53:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RESEND] P2P: disable 11b rates on configuring p2p interface Date: Thu, 09 Aug 2012 04:53:13 -0000 From: Rajkumar Manoharan X-Patchwork-Id: 176141 Message-Id: <1344523993-3991-1-git-send-email-rmanohar@qca.qualcomm.com> To: Cc: hostap@lists.shmoo.com Right now 11b rates are masked out while creating p2p interface. But it is always failing as the interface is down. Most of drivers allows to configure rates only when the interface is UP and running. So let us disable 11b rates when interface type is changed into p2p type and it is UP and running. Signed-hostap: Rajkumar Manoharan --- src/drivers/driver_nl80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 016250c..30a1279 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -7073,6 +7073,9 @@ done: return ret; } + if (is_p2p_interface(nlmode)) + nl80211_disable_11b_rates(drv, drv->ifindex, 1); + if (is_ap_interface(nlmode)) { nl80211_mgmt_unsubscribe(bss, "start AP"); /* Setup additional AP mode functionality if needed */