diff options
author | Paul Stewart <pstew@chromium.org> | 2012-08-01 19:54:42 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-08-02 09:34:22 -0400 |
commit | 899852af60c212bfe9a2fb71d4d9082d2622df5c (patch) | |
tree | 2327783f8779d3267c8d310521973b4b4d600d3d /net/wireless/reg.c | |
parent | 03f6b0843ad6512f27bc2e48f04c21065311e03e (diff) |
cfg80211: Clear "beacon_found" on regulatory restore
Restore the default state to the "beacon_found" flag when
the channel flags are restored. Otherwise, we can end up
with a channel that we can no longer transmit on even when
we can see beacons on that channel.
Signed-off-by: Paul Stewart <pstew@chromium.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r-- | net/wireless/reg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index cbf30de79c69..2ded3c7fad06 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1901,6 +1901,7 @@ static void restore_custom_reg_settings(struct wiphy *wiphy) | |||
1901 | chan->flags = chan->orig_flags; | 1901 | chan->flags = chan->orig_flags; |
1902 | chan->max_antenna_gain = chan->orig_mag; | 1902 | chan->max_antenna_gain = chan->orig_mag; |
1903 | chan->max_power = chan->orig_mpwr; | 1903 | chan->max_power = chan->orig_mpwr; |
1904 | chan->beacon_found = false; | ||
1904 | } | 1905 | } |
1905 | } | 1906 | } |
1906 | } | 1907 | } |