]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - wl12xx/wl12xx.git/commitdiff
mac80211: warn on enabling beacon while off channel R5.xx_Build-129 R5.xx_Build-130
authorEyal Shapira <eyal@wizery.com>
Fri, 2 Nov 2012 10:14:44 +0000 (12:14 +0200)
committerEyal Shapira <eyal@wizery.com>
Fri, 2 Nov 2012 19:46:05 +0000 (21:46 +0200)
This can cause the beaconing to start on the wrong channel.
Several such races were fixed but still add a WARN_ON as
we'd like to know if something like that still happens.

Signed-off-by: Eyal Shapira <eyal@wizery.com>
net/mac80211/main.c

index 42481bd130557ee505e3399d5ae34fe5d365f60d..8778046734b6f1e1cd1ea5983fada357f15e7db9 100644 (file)
@@ -263,6 +263,10 @@ void ieee80211_bss_info_change_notify(struct ieee80211_sub_if_data *sdata,
                                WARN_ON(1);
                                break;
                        }
+
+                       /* beacon shouldn't be enabled while off channel */
+                       WARN_ON(sdata->vif.bss_conf.enable_beacon
+                               && local->tmp_channel);
                }
        }