[PATCH] nl80211: Add support to disable CCK rate for p2p probe and frames

Rajkumar Manoharan rmanohar at qca.qualcomm.com
Sun Oct 2 08:19:23 EDT 2011

Add a new attribute to specify whether to use CCK rate or not during
scan and sending management frames. This helps to send p2p probes
at non-CCK rate. This ensures that P2P probe request/response/action
frames are awlays sent at non CCK rates.

Signed-off-by: Rajkumar Manoharan <rmanohar at qca.qualcomm.com>
 src/drivers/driver_nl80211.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index ec384c9..21047db 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -2554,6 +2554,8 @@ static int wpa_driver_nl80211_scan(void *priv,
 		NLA_PUT(rates, NL80211_BAND_2GHZ, 8,
 		nla_put_nested(msg, NL80211_ATTR_SCAN_SUPP_RATES, rates);
 	ret = send_and_recv_msgs(drv, msg, NULL, NULL);
@@ -6564,6 +6566,8 @@ static int nl80211_send_frame_cmd(struct wpa_driver_nl80211_data *drv,
 	if (wait)
 		NLA_PUT_U32(msg, NL80211_ATTR_DURATION, wait);
 	NLA_PUT(msg, NL80211_ATTR_FRAME, buf_len, buf);
 	cookie = 0;

More information about the HostAP mailing list