diff options
author | Arik Nemtsov <arik@wizery.com> | 2012-06-06 04:25:02 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-06-18 13:18:53 -0400 |
commit | 04800ada2acc3a9ffc754c1d73576cef326f3311 (patch) | |
tree | c3b298de7409ec82b19d206c66d84558c09637d6 /net/mac80211/ieee80211_i.h | |
parent | 58886a9011f8eae705b9f585ec6c80b34f3c4e6c (diff) |
mac80211: stop Rx during HW reconfig
While HW reconfig is in progress, drop all incoming Rx. This prevents
incoming packets from changing the internal state of the driver or
calling callbacks of the low level driver while it is in inconsistent
state.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index e6cbf5b68c89..ddf768f6350e 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -881,6 +881,9 @@ struct ieee80211_local { | |||
881 | /* device is started */ | 881 | /* device is started */ |
882 | bool started; | 882 | bool started; |
883 | 883 | ||
884 | /* device is during a HW reconfig */ | ||
885 | bool in_reconfig; | ||
886 | |||
884 | /* wowlan is enabled -- don't reconfig on resume */ | 887 | /* wowlan is enabled -- don't reconfig on resume */ |
885 | bool wowlan; | 888 | bool wowlan; |
886 | 889 | ||