1
linux/drivers/net/wireless/ath/ath10k
Aditya Kumar Singh bca8bc0399 wifi: mac80211: handle ieee80211_radar_detected() for MLO
Currently DFS works under assumption there could be only one channel
context in the hardware. Hence, drivers just calls the function
ieee80211_radar_detected() passing the hardware structure. However, with
MLO, this obviously will not work since number of channel contexts will be
more than one and hence drivers would need to pass the channel information
as well on which the radar is detected.

Also, when radar is detected in one of the links, other link's CAC should
not be cancelled.

Hence, in order to support DFS with MLO, do the following changes -
  * Add channel context conf pointer as an argument to the function
    ieee80211_radar_detected(). During MLO, drivers would have to pass on
    which channel context conf radar is detected. Otherwise, drivers could
    just pass NULL.
  * ieee80211_radar_detected() will iterate over all channel contexts
    present and
  	* if channel context conf is passed, only mark that as radar
  	  detected
  	* if NULL is passed, then mark all channel contexts as radar
  	  detected
  	* Then as usual, schedule the radar detected work.
  * In the worker, go over all the contexts again and for all such context
    which is marked with radar detected, cancel the ongoing CAC by calling
    ieee80211_dfs_cac_cancel() and then notify cfg80211 via
    cfg80211_radar_event().
  * To cancel the CAC, pass the channel context as well where radar is
    detected to ieee80211_dfs_cac_cancel(). This ensures that CAC is
    canceled only on the links using the provided context, leaving other
    links unaffected.

This would also help in scenarios where there is split phy 5 GHz radio,
which is capable of DFS channels in both lower and upper band. In this
case, simultaneous radars can be detected.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
Link: https://patch.msgid.link/20240906064426.2101315-9-quic_adisi@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2024-09-06 13:01:05 +02:00
..
ahb.c
ahb.h
bmi.c
bmi.h
ce.c
ce.h
core.c
core.h
coredump.c
coredump.h
debug.c wifi: mac80211: handle ieee80211_radar_detected() for MLO 2024-09-06 13:01:05 +02:00
debug.h
debugfs_sta.c
hif.h
htc.c
htc.h
htt_rx.c
htt_tx.c
htt.c
htt.h
hw.c
hw.h
Kconfig
leds.c
leds.h
mac.c wifi: mac80211: handle ieee80211_radar_detected() for MLO 2024-09-06 13:01:05 +02:00
mac.h
Makefile
p2p.c
p2p.h
pci.c
pci.h
qmi_wlfw_v01.c
qmi_wlfw_v01.h
qmi.c
qmi.h
rx_desc.h
sdio.c
sdio.h
snoc.c
snoc.h
spectral.c
spectral.h
swap.c
swap.h
targaddrs.h
testmode_i.h
testmode.c
testmode.h
thermal.c
thermal.h
trace.c
trace.h
txrx.c
txrx.h
usb.c
usb.h
wmi-ops.h
wmi-tlv.c
wmi-tlv.h
wmi.c wifi: mac80211: handle ieee80211_radar_detected() for MLO 2024-09-06 13:01:05 +02:00
wmi.h
wow.c
wow.h