Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 899852af authored by Paul Stewart's avatar Paul Stewart Committed by Johannes Berg
Browse files

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: default avatarPaul Stewart <pstew@chromium.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 03f6b084
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1901,6 +1901,7 @@ static void restore_custom_reg_settings(struct wiphy *wiphy)
			chan->flags = chan->orig_flags;
			chan->max_antenna_gain = chan->orig_mag;
			chan->max_power = chan->orig_mpwr;
			chan->beacon_found = false;
		}
	}
}