Stats event from target might have several sub events, and some event
has no peer stats but have adv/ext2 peer stats.
Check ext/ext2 peer stats even no peer stats in
target_if_cp_stats_extract_peer_stats(). Fix copy adv stats size error
in tgt_mc_cp_stats_prepare_n_send_raw_station_stats(). Although
get_station_stats_cb and get_peer_stats_cb is union callbacks,
better to assign to get_station_stats_cb because it is for
TYPE_STATION_STATS.
Change-Id: I0bead0cbb8b549cc538ef4a7327f0a8303c90bd1
CRs-Fixed: 2801842
User requests for last disconnect reason code using
QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. Host replies with
connect fail reason codes from enum qca_sta_connect_fail_reason_codes using
QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE attribute, If
last connection attempt failed.
Change-Id: I723a9dcf025bb58fa524cbf16f16a7dcea8bd5b6
CRs-Fixed: 2799227
Presently RoamKeyMgmtOffloadEnabled flag in roam req_buf gets set from
csr session, which gets set only if user sends vendor command to set key
management i.e. QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY.
Thus if user doesn't send QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY
vendor command, then host fails to sets ROAM_OFFLOAD_OKC_ENABLED &
PMK_CACHE_ENABLED flags in RSO command. This leads to failure of single
PMK cache roaming. Hence update correct value of RoamKeyMgmtOffloadEnabled
from mlme object.
Change-Id: I34099b4651ca179bb86ca24581526e161d2bf503
CRs-Fixed: 2802124
Currently pmo_psoc_get_vdev api just returns the vdev without
taking the vdev reference and it is caller's responsibility to
take the reference, there could be a race condition where after
getting the vdev and before getting the reference of that vdev,
some other thread may delete this vdev.
To avoid this issue use objmgr api to get the vdev for pmo.
Change-Id: I3495589e2dbbb7d8efc579a62fff1a08a92c318f
CRs-Fixed: 2771211
Add support for connect and disconnect path
in legacy cld files with respect to connection
manager.
Change-Id: Ia42dd45d943de20d91279c0197b0f17a5c0326eb
CRs-Fixed: 2805807
Currently, interface status is not being checked to start monitor mode.
This is allowing to start monitor mode more than once for the same
interface. This will result in session leak during de-init.
To avoid this, start monitor mode only if the interface is not already up.
Change-Id: I118167d3a8cea52fbfa825b226b837087828f148
CRs-fixed: 2803090
In DBS mode, gDualMacFeatureDisable can be 0, also can be
6: enable DBS for connection but disable simultaneous scan.
Change-Id: Ia3d46dbd2e67644e84436b90f40c203bc939eda7
CRs-Fixed: 2807010
Pdev is created once all the modules are enabled and currently
it is freed after the cds close is done, if some of the modules
as part of the de-init sequence has to send a command to the firmware
it will result in error.
To keep the deinit sequence opposite to that of init close/destroy
the pdev before closing the cds.
Change-Id: I8e087a573112e5d2d81e8ea413044d45f228813e
CRs-Fixed: 2797344
When resetting roam trigger bitmap, it is missing triggers
such as QCA_ROAM_TRIGGER_REASON_IDLE,
QCA_ROAM_TRIGGER_REASON_DEAUTH etc.
Change-Id: I57b2b5c251202094b1afe65e0b4af39dc69f75e1
CRs-Fixed: 2805011
Add a new action OUI to disable TWT for certain APs.
The cfg item will be present in the host and sent to
the FW to disable TWT.
Change-Id: I122c44993a9102838dec7e9eb2817ba404a76515
CRs-Fixed: 2793124
Currently we configure the REO ID in the HW FST entry,
which is later used by HW to route the packets matching
this particular flow.
Such a kind of configuration can lead to incorrect
routing of packets incase the RX path mapping is
changed (eg when IPA is enabled).
Hence to fix this issue, use the reo destination
indication which is received in the first packet of
the new flow in the HW FST entry.
Change-Id: Ide230dcfb07862b3921aeb02d83ad7c30cb284c2
CRs-Fixed: 2803828
Host adds support to send enable/disable wfa config for FILS_DISCV_FRAMES
to firmware.
Change-Id: I0143b158b5f62b42c0d4c3d8a34a7ec7b1ec994b
CRs-Fixed: 2801144
Currently, In P2P Connection, After SSR P2P CLI is
disconnected but P2P GO is still showing connected
with the P2P CLI in kernel 5.4. Beacause cfg80211_ap_stopped
API does not work for kernel 5.4.
Add the cfg80211_stop_iface API to stop P2P GO after
SSR in kernel 5.4.
Change-Id: I94adadb0b3314a571f6a16a78285d444c007d9d5
CRs-Fixed: 2802830
When per-channel tx/rx time is printed in wlan driver, the
current code checks whether service bit
wmi_service_ll_stats_per_chan_rx_tx_time is enabled in every
loop, which will result in very verbose logs printed on
some platforms where the above service bit is not indicated
by firmware.
Check whether wmi_service_ll_stats_per_chan_rx_tx_time is
enabled only once whenever wlan link radio stat event is
handled to reduce the unnecessary verbose logging.
Change-Id: I438df8ab307a793ac108503c767373a79e817919
CRs-Fixed: 2804956
Currently host does not convert all internal auth types
to qca auth types which results in invalid auth type
indication for big data logging even for some of the
valid auth types.
For example in current scenario connection hapens in SAE
auth type but driver indicates invalid AKM type.
To address above issue add missing auth type and send
proper auth type to user space as part of the big data
logging.
Change-Id: I4e0d78d143e2a0132f333957019d2051e166d9a1
CRs-Fixed: 2794103
Enable interface manager on all the targets
through common build file modification.
Change-Id: I9e1f2b552bd1170a5bf84bf5af096bbcf275247f
CRs-Fixed: 2799889
After CM roam converged, if FILS update parameters when first connect
to AP, AP profile is not fils enabled, so FILS parameters need update
to mlme, otherwise updated FILS parameters will not configure to target.
Call mlme cm fils update API when update FILS parameters.
Fix potential memory allocation of size 0.
CRs-Fixed: 2803589
Change-Id: I9147a8506071b416a24f78df199a054d184f74f8
Currently, LL stats in-progress flag is being set first and not getting
reset when peer is invalid. Because of this station stats sent by the
fw are ignored in the host since cp stats request pending is not set.
Also ll_stats request is not being rejected if previous ll_stats
request is in-progress.
To resolve this, update ll_stats request in progress flag after sanity
check for the peer and ignore the new ll_stats request command if the
previous ll_stats request is in progress.
Change-Id: I205502f8c34b51c396859d5ff3ed247e639eea99
CRs-Fixed: 2803032
Currently we configure the REO ID in the HW FST entry,
which is later used by HW to route the packets matching
this particular flow.
Such a kind of configuration can lead to incorrect
routing of packets incase the RX path mapping is
changed (eg when IPA is enabled).
Hence to fix this issue, use the reo destination
indication which is received in the first packet of
the new flow in the HW FST entry.
Change-Id: Ia3cbed38da16cfa074ee336c673c7e3b6fa9fa69
CRs-Fixed: 2798872
Handle firmware thermal stats event and populate the thermal
information to upper layer with vendor command event.
Change-Id: I83286367ab542c08a205a7636f3d03189b0500e5
CRs-Fixed: 2786623
Change return type of following APIs from int to QDF_STATUS.
wmi_unified_register_event()
wmi_unified_register_event_handler()
wmi_unified_register_raw_event_handler()
wmi_unified_unregister_event()
wmi_unified_unregister_event_handler()
Change-Id: I534b499edbcfec6eddea0e9ed48f9eb1a2e872c8
CRs-Fixed: 2791275
NDP connection will be active for keep alive period even after receiving
NDP end request. The default value for this keep alive period if 20ms.
update the default value as 14ms to reduce the wait time for connection
termination.
Change-Id: I3d09ce764846d7e535a7369d32a730907b621735
CRs-Fixed: 2802723
Kernel version check of backport flag CFG80211_FILS_SK_OFFLOAD_SUPPORT
was removed from hdd_update_connect_params_fils_info() by accident,
add it back.
Change-Id: Iaa42aea4fd0bd15c27b8f70412b6420ca25cd005
CRs-Fixed: 2800896