[RESEND] P2P: disable 11b rates on configuring p2p interface

Submitted by Rajkumar Manoharan on Aug. 9, 2012, 2:53 p.m.

Details

Message ID 1344523993-3991-1-git-send-email-rmanohar@qca.qualcomm.com
State Accepted
Commit edb9bfba8914932aa44657c41fb99dc984e1f8d2
Headers show

Commit Message

Rajkumar Manoharan Aug. 9, 2012, 2:53 p.m.
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 <rmanohar@qca.qualcomm.com>
---
 src/drivers/driver_nl80211.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Jouni Malinen Aug. 10, 2012, 8:41 a.m.
On Thu, Aug 09, 2012 at 08:23:13PM +0530, Rajkumar Manoharan wrote:
> 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.

Thanks, applied.


PS.

There is no need to re-send patches if the previously sent version is
identical and shows up in the patchwork queue at
http://patchwork.ozlabs.org/project/hostap/list/. Extra copies are just
adding undesired extra work for me.

Patch hide | download patch | download mbox

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 */