android_kernel_xiaomi_sm8350/os_if
Jianmin Zhu 5862891f8c qcacld-3.0: Check FTM mode in vendor cmds handlers
Vendor commands of wiphy aren't initialized when driver load as FTM mode,
if changed to mission mode later with following cli:
echo 0 > /sys/module/wlan/parameters/con_mode,
vendor commands of wiphy keep uninitialized, wpa supplicant can't get
roam offload status by QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES,
so PMK isn't sent to driver/firmware,  roam offload failed.

To fix it, remove QDF_GLOBAL_FTM_MODE check in wlan_hdd_cfg80211_init, let
vendor commands of wiphy initialized in FTM mode too when driver load.
But in each vendor cmd, check FTM mode when called, if FTM mode, return
-EPERM.
When driver is changed to mission mode, all interfaces are deleted and
re-added by driver, when interface added event is received by
wpa supplicant,  QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES is
called again to get roam offload enabled status, PMK will be sent to
driver and firmware when RSO start, roam offload will work.

Change-Id: Ie0c868ebd4b7e356d72a154206b13df94f378188
CRs-Fixed: 3213221
2022-06-21 15:07:41 +08:00
..
cp_stats/src qcacld-3.0: Release serialization cmd when get peer null 2022-03-02 15:25:18 +08:00
fw_offload qcacld-3.0: Add support to get thermal throttle stats 2021-09-17 00:18:22 -07:00
interop_issues_ap qcacld-3.0: Check FTM mode in vendor cmds handlers 2022-06-21 15:07:41 +08:00
nan qcacld-3.0: Check for NAN state only if NAN SM is in host 2022-05-06 14:04:54 +05:30
p2p qcacld-3.0: Reduce excessive logging in P2P module 2020-02-13 08:11:31 -08:00
pkt_capture qcacld-3.0: add os_if layer for monitor mode configuration 2021-11-10 09:35:43 -08:00
sync qcacld-3.0: Add support to cache north bound commands during SSR 2021-06-08 12:07:00 -07:00
tdls qcacld-3.0: Correct the condition to reject TDLS 2022-04-18 01:55:08 -07:00