Skip to content

Commit

Permalink
mac80211: clear local->in_reconfig on reconfig error
Browse files Browse the repository at this point in the history
If reconfiguration fails, local->in_reconfig is never
cleaned, resulting in rx frames being dropped next
time the device is started.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Eliad Peller authored and Johannes Berg committed Jul 17, 2015
1 parent 6513e98 commit 7584f88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mac80211/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,7 @@ static void ieee80211_handle_reconfig_failure(struct ieee80211_local *local)
local->resuming = false;
local->suspended = false;
local->started = false;
local->in_reconfig = false;

/* scheduled scan clearly can't be running any more, but tell
* cfg80211 and clear local state
Expand Down

0 comments on commit 7584f88

Please sign in to comment.