Files
linux/net/mac80211
Karthikeyan Kathirvel 787cec9a87 mac80211: choose first enabled channel for monitor
[ Upstream commit 041c881a0b ]

Even if the first channel from sband channel list is invalid
or disabled mac80211 ends up choosing it as the default channel
for monitor interfaces, making them not usable.

Fix this by assigning the first available valid or enabled
channel instead.

Signed-off-by: Karthikeyan Kathirvel <kathirve@codeaurora.org>
Link: https://lore.kernel.org/r/1615440547-7661-1-git-send-email-kathirve@codeaurora.org
[reword commit message, comment, code cleanups]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 10:50:25 +09:00
..
2015-01-27 11:09:13 +01:00
2023-05-16 10:49:09 +09:00
2014-11-04 13:18:21 +01:00
2014-04-09 14:49:43 +02:00
2023-05-16 10:49:34 +09:00
2015-08-14 17:49:53 +02:00
2015-05-11 19:16:04 +02:00
2015-10-14 18:40:26 +02:00
2014-04-09 14:49:43 +02:00
2023-05-16 10:33:59 +09:00
2016-09-15 16:46:16 +02:00
2012-03-13 14:54:16 -04:00