FW drops the management frames received on the inactive link,
so timeout happens on SCS action frames from userspace that are
sent on inactive link.
Set link agnostic flag in all management frame of subtype action
so that FW can send the packet OTA on the active link.
Change-Id: I4677617b52eca3f933aae2c4a7584750a95b3302
CRs-Fixed: 3486974
Populate the user-defined listen interval in association
request frame for STA.
Change-Id: I1733ed1d528fa99fc5556639ddfbd68ca97a40e0
CRs-Fixed: 3438369
The policy manager API to update hardware mode list is
invoked before the host can extract EMLSR capabilities
from the target via service ready extended event. Thus,
invoke the policy manager API again through SBS
frequency update API to set the EMLSR capabilities in
the host.
Change-Id: I4d71b983ddb4b09e2010d24f0af0c26e2077cbd7
CRs-Fixed: 3417254
When ANI_LITTLE_BIT_ENDIAN is not defined, a compiler error is
flagged in the definition of struct mlme_ht_param_info due to a
misplaced #endif, so relocate it.
Change-Id: I72df79a1dfae84c2cd6797d1d112de6ef8ca7ef6
CRs-Fixed: 3498279
Modify the wlan_hdd_flush_pmksa_cache() function prototype
to use link info pointer instead of adapter.
As VDEV is part of per link data structure in adapter, the
API will only need link info to get VDEV reference, so move
the function argument to link info from adapter.
The existing callers moved to deflink.
Change-Id: Ifbe6f1f2437b3ee83144247ec2f2e1b4a71e11ca
CRs-Fixed: 3448503
With single netdev multi vdev changes, each adapter now can
have multiple VDEVs. To get the right VDEV reference, callers
have to pass the link info corresponding to that VDEV.
Change hdd_objmgr_get_vdev_by_user() API definition to
fetch lock protected VDEV reference from link info
instead of adapter.
The existing callers moved to deflink in adapter.
Change-Id: I3be810994f8768104c9a93491966a13d3b159e5c
CRs-Fixed: 3448468
On some third-party platforms, we observe the memory physical
address below 0x2000 is allocated will cause HW/FW NOC error,
so this region memory should not be used by host.
This change will hold the memory if the allocated memory physical
address below 0x2000 until driver unload.
Change-Id: I11fb698d32e69852f1cb5c8eb99ead121b8db2f4
CRs-Fixed: 3419652
SAP 1 is started on 5 GHz 5180, SAP 2 is started on 5 GHz 5745.
ML STA 2 GHz 2437 + 6 GHz 6275 is up. SAP 1 is moved to 2 GHz 2437,
SAP 2 is not moved to 2 GHz 2437 because the SAP2 PCL is PM_SCC_ON_5_CH_5G
which have no 2.4 GHz scc channel. STA+SAP+SAP SCC is allowed
in same mac, but MCC is not supported.
Fix by:
1. Change PCL to include SCC channel in 4th pcl table for SAP/GO.
2. Add API policy_mgr_modify_sap_go_4th_conc_disallow to filter
out the channels which not supported in same mac based on
current concurrency combinations.
Change-Id: Ieb482076d961234d3987b2daebab4c407ee0b7f5
CRs-Fixed: 3479297
When FEATURE_WLAN_MCC_TO_SCC_SWITCH is not enabled, a compilation
error is observed due to the fact that the stub implementation of
policy_mgr_change_sap_channel_with_csa() does not return QDF_STATUS,
so add an appropriate return statement.
Change-Id: I568289cc825adffa3fbcbab2419e093dc5c44cfa
CRs-Fixed: 3498278
Currently center frequency pass to API to check unsafe channel is
not correct set for bandwidth greater than 80 MHz. It lead to
unexpected shrink bandwidth.
For channel bandwidth greater than 80 MHz, center frequency should
set to mhz_freq_seg1 instead of mhz_freq_seg0.
Change-Id: I278590cd128b4760e35f4ea5921a6ed687dc1308
CRs-Fixed: 3466845
Logs without meaningful message or values serves no purpose in debugging.
Hence, add more context to the logs.
Change-Id: Ie913f7460356a1550b5252fd72ed5b454c67b3cf
CRs-Fixed: 3492709
Logging macros already takes care of adding function name.
Hence, delete the occurrence of __func__.
Change-Id: Iee88f5b9620a70a3707c254866201447c10dcbbd
CRs-Fixed: 3492707
Add API to set/reset CPU frequency, which is used to
enable the tx queues faster during roam.
Change-Id: I8594dacc9b3e8bc3fcdce575102cecef573cbf06
CRs-Fixed: 3487568
Set wifi configuration comes to the host via
QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION vendor
command for independent as well as interdependent attributes.
Currently, if a set wifi config request comes for independent
attribute host return failure to the upper layer if
interdependent attributes QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS are zero which is not correct.
The fix is to return the status of "set wifi config req for
independent attribute" even interdependent attributes
QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and
QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS are zero.
Change-Id: Ifb098efb18d236a2f24091bcc4c75e10e05933ac
CRs-Fixed: 3501246
Scenarios are:
1. Connect to AP in HE80/HE160
2. Set the bandwidth to 20 MHz (SET_MAX_BANDWIDTH 1)
3. Disconnect from AP
4. Reconnect to AP.
5. AP should be connected to the max bandwidth.
To fix this, host should update channel bandwidth to
the max supported bandwidth on disconnection.
Change-Id: I139d082ca4e4950d760f1da074dbcc021fb8a9e1
CRs-Fixed: 3491677
If system reboot comes when starting wlan modules, it aborts
debug domain transition, and also the following initializtions
of the modules.
Then it calls cds_shutdown_notifier_purge, hdd_check_for_leaks and
hdd_debug_domain_set to clean up and fall back, however,
cds_shutdown_notifier_purge is unnecessary, since no shutdown_notifier
is registered at this point;
hdd_check_for_leaks here only checks the leaks for active debug domain
in previous design, but it tries to check the leaks for init debug
domain in this case, which is wrong at this point and causes false
alarm of leaks.
hdd_debug_domain_set is redundant since no debug domain transition
happens in this case.
To fix it, skip cds_shutdown_notifier_purge, hdd_check_for_leaks
and hdd_debug_domain_set if debug domain transition is aborted when
starting modules.
Change-Id: I19818649f272b6375a89dc3e493e1edd8ed87607
CRs-Fixed: 3498383
Currently driver process SET_TX_ANT_CONFIG command for
asymmetric tx/rx nss values, but it's not correct to
have asymmetric tx/rx nss values before connection
as connection will always happen in 1x1 or 2x2.
To address this issue, reject SET_TX_ANT_CONFIG cmd
if TX nss and RX nss values are different.
Change-Id: Id6f3ff57ae3a991192b76bd476034867a799d95e
CRs-Fixed: 3485059
Currently, Fw did not set NACK reason code
to Host when Fw is not ready for WoW.
As part of the new change, Fw will send NACK
reason code along with WoW NACK to host.
Make changes in host to store and print
NACK reason code.
Change-Id: Ic978af9572c8de37df3fb926083aac5e6ddefda7
CRs-Fixed: 3481177
As part of single netdev multi vdev changes, AP context is
now per link. To get the SAP context pointer from AP context,
pass link_info pointer instead of adapter.
The existing callers are moved to deflink pointer.
Change-Id: If49ce9dcbf58710d8184dfbef1d0a99567f3111b
CRs-Fixed: 3448342
When user space use "iw dev" to get tx power info,
driver send WMI_REQUEST_STATS_CMDID to fw,
fw update tx power info with two events, usually we
parse the last event, and maybe get invalid value.
Filter invalid value for each event, and get valid
tx power value from the mac which the AP/STA mode work.
Change-Id: I2411bb87e03fe385759852b028819e19a055b7f3
CRs-Fixed: 3474361
Enable the tracepoints for qca6390 module in the wlan host for latency
debugging.
Change-Id: I9f69a5d9cc08a63185961bf2a88d403bb62799e8
CRs-Fixed: 3497709
There is a typo for the feature flag ENABLE_HAL_SOC_STATS. Thus,
correct it to -DENABLE_HAL_SOC_STATS.
Change-Id: Idc7e478480e799659c971e42962e9d527960a9da
CRs-Fixed: 3492601
While handling CSA Wide BW IE to switch freq, driver update the
PE session bandwidth and limit the switch to existing bandwidth.
This result in failure while checking if new bandwidth is same
as previous bandwidth and thus bandwidth change fails in this
case.
To fix do not update PE session while handling CSA Wide BW IE and
do not limit the switch to 80 MHz. Also add current Bandwidth
info in logs.
Change-Id: Icb1f169b17f711df91fd10230d6fdfd9a3d30274
CRs-Fixed: 3498943
Host driver sends deauth to AP BSS if the ML Info
IE is not present in the auth frame, but doesn't
abort the connection. Later, upon auth failure timeout
the connection gets terminated.
Instead of waiting till timeout, abort the connection
if the authentication fails.
Change-Id: I61e429baf29c49e4b28f379a9f4870dac7de5217
CRs-Fixed: 3497640
The UL MU MIMO capability is neither supported by SAP nor
STA. In the case of ML STA, reset UL MU MIMO capability on
all its vdevs.
Change-Id: I14ba48aceade0ac4fd85aa66a6dda54748c89a03
CRs-Fixed: 3487893
1. When handle STA CSA, find only puncture bitmap changed, primary freq and
bandwidth not changed, still continue CSA.
2. When Updated beacon has no eht op info, need look up he/vht op to get
channel info.
Change-Id: Ib5270a1245e0dd9ba095c63f2bea959dd9ddac44
CRs-Fixed: 3499067
Fix the EHT MCS rates for 5 GHz 20 MHz-only testbed STA.
This allows for the required MCS rates 0-7 and 8-9 to be
enabled that were currently reset in set EHT testbed
defaults API.
Change-Id: I13555882c68e5b5454415d5a63cc02d12be5f43a
CRs-Fixed: 3487863
Toggle the MSB of last byte while deriving the link MAC address to
increase the MAC address range and avoid deriving duplicate MAC
addresses.
Change-Id: I2ba1d8bcfaa95fd5291202316106d9b0dd74766b
CRs-Fixed: 3499105