]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Disable 11b rates on configuring P2P interface
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Fri, 10 Aug 2012 08:35:33 +0000 (11:35 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 10 Aug 2012 08:35:33 +0000 (11:35 +0300)
Right now 11b rates are masked out while creating a P2P interface,
but this is always failing as the interface is down. Most drivers
allow to configure rates only when the interface is UP and running.
So let us disable 11b rates when interface type is changed into a
P2P type and it is UP and running.

Signed-hostap: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>

src/drivers/driver_nl80211.c

index 4c748a281b3d60a9849f17c8c1735966945a961c..058ad276161738e85ff2ba9ed28c262978ce7a73 100644 (file)
@@ -7079,6 +7079,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 */