linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mac80211_hwsim: fix fake_hw_scan
@ 2010-06-18 10:31 Johannes Berg
  0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2010-06-18 10:31 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless

From: Johannes Berg <johannes.berg@intel.com>

Since mac80211 will not set the max_scan parameters
if hw scan is enabled, hwsim needs to do it so that
cfg80211 won't reject the scan.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 drivers/net/wireless/mac80211_hwsim.c |    5 +++++
 1 file changed, 5 insertions(+)

--- wireless-testing.orig/drivers/net/wireless/mac80211_hwsim.c	2010-06-18 12:02:50.000000000 +0200
+++ wireless-testing/drivers/net/wireless/mac80211_hwsim.c	2010-06-18 12:17:43.000000000 +0200
@@ -1291,6 +1291,11 @@ static int __init init_mac80211_hwsim(vo
 		hw->wiphy->n_addresses = 2;
 		hw->wiphy->addresses = data->addresses;
 
+		if (fake_hw_scan) {
+			hw->wiphy->max_scan_ssids = 255;
+			hw->wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
+		}
+
 		hw->channel_change_time = 1;
 		hw->queues = 4;
 		hw->wiphy->interface_modes =



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-18 10:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-18 10:31 [PATCH] mac80211_hwsim: fix fake_hw_scan Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).