Commit 62b547ef authored by Karthikeyan Kathirvel's avatar Karthikeyan Kathirvel Committed by Zheng Zengkai
Browse files

mac80211: choose first enabled channel for monitor



stable inclusion
from stable-5.10.29
commit 0a66bd60b1ce67940447c24e673fac11296bcd9d
bugzilla: 51789

--------------------------------

[ Upstream commit 041c881a ]

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: default avatarKarthikeyan 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: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent d959287d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment