From: Johannes Berg Date: Fri, 18 Jun 2010 10:31:56 +0000 (+0200) Subject: mac80211_hwsim: fix fake_hw_scan X-Git-Tag: v2.6.36-rc1~571^2~107^2~188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8223d2f540c96f46f762fbd93f59a08bb80601c1;p=platform%2Fkernel%2Flinux-3.10.git mac80211_hwsim: fix fake_hw_scan 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 Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 6f8cb3e..af50895 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -1291,6 +1291,11 @@ static int __init init_mac80211_hwsim(void) 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 =