Commit 899852af60c212bfe9a2fb71d4d9082d2622df5c

Authored by Paul Stewart
Committed by Johannes Berg
1 parent 03f6b0843a

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -1901,6 +1901,7 @@
1901 1901 chan->flags = chan->orig_flags;
1902 1902 chan->max_antenna_gain = chan->orig_mag;
1903 1903 chan->max_power = chan->orig_mpwr;
  1904 + chan->beacon_found = false;
1904 1905 }
1905 1906 }
1906 1907 }