Skip to contentSkip to conversation

mac80211: fix internal scan request

PATCH New Johannes Berg 2 participants 2 messages Nov 2, 2009 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: fix internal scan request

The internal scan request mac80211 uses to scan for IBSS networks was set up to contain no channels at all because n_channels wasn't set after setting up the channels array. Fix this to properly scan for networks.

---
Sujith, this might fix the iwlwifi problem?

 net/mac80211/main.c |    1 +
 1 file changed, 1 insertion(+)
net/mac80211/main.c +1 -0
@@ -901,6 +901,7 @@ int ieee80211_register_hw(struct ieee802
 			i++;
 		}
 	}
+	local->int_scan_req->n_channels = i;
 
 	local->network_latency_notifier.notifier_call =
 		ieee80211_max_network_latency;
#1 lore raw

PATCH 1/1 mac80211: fix internal scan request

Quoted 10 lines · Johannes Berg

The internal scan request mac80211 uses to scan for IBSS networks was set up to contain no channels at all because n_channels wasn't set after setting up the channels array. Fix this to properly scan for networks.

---
Sujith, this might fix the iwlwifi problem?

Yep, it fixes the oops.
Thanks.

Sujith