[PATCH 07/11] wifi: ath12k: properly handling the state variables of monitor mode
Jeff Johnson
quic_jjohnson at quicinc.com
Thu Jul 25 17:17:55 PDT 2024
On 7/25/2024 5:00 AM, kangyang wrote:
> From: Kang Yang <quic_kangyang at quicinc.com>
>
> Now monitor mode has some status variables, such as monitor_started,
> monitor_vdev_created. They are not always handled correctly.
>
> For monitor_started, it should be true when driver works in monitor
> mode, and should be false at other times.
>
> For monitor_vdev_id, it should be -1 when driver doesn't work in monitor
> mode.
>
> For monitor_vdev_created, it should be true after monitor vdev is
> created successfully and should be false at other times.
>
> For monitor_conf_enabled, it should be true when mac80211 sets
> IEEE80211_CONF_MONITOR, and should be false at other times.
>
> Handle those state variables according to above descriptions.
>
> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3
>
> Signed-off-by: Kang Yang <quic_kangyang at quicinc.com>
More information about the ath12k
mailing list