On 7/25/2024 5:00 AM, kangyang wrote: > From: Kang Yang <quic_kangyang@xxxxxxxxxxx> > > 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@xxxxxxxxxxx>