Skip to content
Snippets Groups Projects
Commit 7bb55d1b authored by Felix Fietkau's avatar Felix Fietkau
Browse files

madwifi: fix crash on ad-hoc interface init

SVN-Revision: 12161
parent ac258031
No related branches found
No related tags found
No related merge requests found
--- a/net80211/ieee80211_input.c
+++ b/net80211/ieee80211_input.c
@@ -3522,6 +3522,11 @@
if (ic->ic_flags & IEEE80211_F_SCAN) {
ieee80211_add_scan(vap, &scan, wh, subtype, rssi, rtsf);
}
+
+ /* stop processing if the bss channel is not set up yet */
+ if (!ic->ic_bsschan || ic->ic_bsschan == IEEE80211_CHAN_ANYC)
+ break;
+
/* NB: Behavior of WDS-Link and Ad-Hoc is very similar here:
* When we receive a beacon that belongs to the AP that we're
* connected to, use it to refresh the local node info.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment