Linux wireless drivers development
 help / color / mirror / Atom feed
* PATCH] mac80211: set no_cck also for hw_scan
@ 2011-10-07  6:56 Janusz Dziedzic
  2011-10-07  7:17 ` Johannes Berg
  0 siblings, 1 reply; 4+ messages in thread
From: Janusz Dziedzic @ 2011-10-07  6:56 UTC (permalink / raw)
  To: linux-wireless; +Cc: Rajkumar Manoharan

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

In case we are using hw_scan we should also
send no_cck information to lower layer.
---
 net/mac80211/scan.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index 6f09eca..509d89e 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -249,6 +249,7 @@ static bool ieee80211_prep_hw_scan(struct
ieee80211_local *local)
 	} while (!n_chans);

 	local->hw_scan_req->n_channels = n_chans;
+	local->hw_scan_req->no_cck = req->no_cck;

 	ielen = ieee80211_build_preq_ies(local, (u8 *)local->hw_scan_req->ie,
 					 req->ie, req->ie_len, band,
-- 
1.7.0.4

[-- Attachment #2: 0001-mac80211-set-no_cck-also-for-hw_scan.patch --]
[-- Type: application/octet-stream, Size: 840 bytes --]

From a74c41d3ba5c5a0555dfd07391c32d91071c2a17 Mon Sep 17 00:00:00 2001
From: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Date: Fri, 7 Oct 2011 08:48:47 +0200
Subject: [PATCH] mac80211: set no_cck also for hw_scan

In case we are using hw_scan we should also
send no_cck information to lower layer.
---
 net/mac80211/scan.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index 6f09eca..509d89e 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -249,6 +249,7 @@ static bool ieee80211_prep_hw_scan(struct ieee80211_local *local)
 	} while (!n_chans);
 
 	local->hw_scan_req->n_channels = n_chans;
+	local->hw_scan_req->no_cck = req->no_cck;
 
 	ielen = ieee80211_build_preq_ies(local, (u8 *)local->hw_scan_req->ie,
 					 req->ie, req->ie_len, band,
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-07  7:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-07  6:56 PATCH] mac80211: set no_cck also for hw_scan Janusz Dziedzic
2011-10-07  7:17 ` Johannes Berg
2011-10-07  7:35   ` Janusz Dziedzic
2011-10-07  7:52     ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox