]> Git Repo - linux.git/commit
wifi: mac80211: fix monitor channel with chanctx emulation
authorJohannes Berg <[email protected]>
Wed, 12 Jun 2024 10:23:51 +0000 (12:23 +0200)
committerJohannes Berg <[email protected]>
Fri, 14 Jun 2024 07:14:08 +0000 (09:14 +0200)
commit0d9c2beed116e623ac30810d382bd67163650f98
tree874e0a43ef09e2e1e329df048345c40ad42d9d18
parent2663d0462eb32ae7c9b035300ab6b1523886c718
wifi: mac80211: fix monitor channel with chanctx emulation

After the channel context emulation, there were reports that
changing the monitor channel no longer works. This is because
those drivers don't have WANT_MONITOR_VIF, so the setting the
channel always exits out quickly.

Fix this by always allocating the virtual monitor sdata, and
simply not telling the driver about it unless it wanted to.
This way, we have an interface/sdata to bind the chanctx to,
and the emulation can work correctly.

Cc: [email protected]
Fixes: 0a44dfc07074 ("wifi: mac80211: simplify non-chanctx drivers")
Reported-and-tested-by: Savyasaachi Vanga <[email protected]>
Closes: https://lore.kernel.org/r/chwoymvpzwtbmzryrlitpwmta5j6mtndocxsyqvdyikqu63lon@gfds653hkknl
Link: https://msgid.link/20240612122351.b12d4a109dde.I1831a44417faaab92bea1071209abbe4efbe3fba@changeid
Signed-off-by: Johannes Berg <[email protected]>
net/mac80211/driver-ops.c
net/mac80211/iface.c
net/mac80211/util.c
This page took 0.05623 seconds and 4 git commands to generate.