Host needs to send down sap and go client connected mode d3 wow
feature support and hence save the default config which will be
send later down to FW via WMI INIT CMD.
Change-Id: I71ff3155e30ea03c63045473ad256dc14026f5fd
CRs-Fixed: 2866617
AEAD decryption failure happens when AP sends association
rejection frame as part of the PMF SA query procedure. AP
doesn't include FILS Session IE, but STA tries to AEAD decrypt
the frame starting from the FILS session IE and drops the
association rejection frame due to AEAD decryption frame.
So association failure timeout kicks in and proper reason
code is not indicated to userspace due to which automatic
connection retry to the AP doesn't happen.
Skip AEAD decryption if status code is not success in the
association response frame and proceed to parse the frame.
Change-Id: I9dcc85afb896717cfd20102c219b58e0e982f340
CRs-Fixed: 2797416
Update the session he capabilities when SAP switches to new
channel and if new channel band or channel width is different from
current session channel info.
Change-Id: I1a91864eb6f26189c37b2dc715e6b6d7fb950458
CRs-Fixed: 2863366
with recent commit 203218df88e7
("qcacld-3.0: Set sme power stats response cb and context to NULL")
fix in the error condition the sme global lock is not getting released
resulting in the mc thread being struck.
Release the sme global lock in the error condition.
Change-Id: I6235a632c6b74c48374d4584eb727bf9ffe296a8
CRs-Fixed: 2867358
When SAP operated in channel 36 with 160Mhz, the primary channel
36 is non-dfs and existing checking dfs will drop the radar event
if the radar detected on channel 52. Change policy mgr API to
check the dfs flags instead of primary channel state.
Change-Id: Ie2f242182b8df30e5d1875e278c5ebffa2e7cafd
CRs-Fixed: 2865173
Currently driver checks net dev ref leak for adapter, once it
removes adapter from the list which is not the correct way as
in some cases it is possible that one thread loops through the
the adapter list and uses one of the adapter and the other thread
deletes the adapter from the list, since the adapter is deleted
from the list, it's next and previous pointers will point to
itself which will lead first thread to fall into infinite loop.
To address above issue check net dev ref leak before removing
adapter from the adapter list so that it will make sure that
no other thread is holding the referene of this adapter.
Change-Id: I819458e9de8f016898e24bf3bb376acb657e8187
CRs-Fixed: 2854000
When selecting channel for SAP to operate on, it searches,
calculates, and sorts the channels. Each of these steps produces a lot
of prints, so rate limit them to prevent a time out.
Change-Id: If78c7a4f840bf9353f42dd544134ee690637d22e
CRs-fixed: 2865639
The command should not be sent when device is in monitor mode.
But it is allowed in mission mode.
Change-Id: Ic21a8244425315577e7f0b2423c4fe6c5ac42702
CRs-Fixed: 2847777
TPUT_DEBUG_MODE_ENABLE and TPUT_DEBUG_MODE_DISABLE are two new driver
commands. So when this commands will get issue, host needs to send
setUnitTestcmd with different arguments for different target to
enable/disable the module logging.
Change-Id: I5deb18f08f59ce936696e00b6537b0acf7c846a1
CRs-Fixed: 2842740
Use wlan_reg_freq_width_to_chan_op_class() instead of
wlan_reg_freq_width_to_chan_op_class_auto() to convert freq
to Operating class.
As the auto API forces the non-6Ghz channel to use the channel
map class. With auto API, in case of 6Ghz band, only those classes
specified in global operating class can be used
For OCV validation , always use global opclass as mandated by spec
Change-Id: I8ae776199f3b886f3c9cec83070294fca2135b50
CRs-Fixed: 2848638
Return value of pld_ipci_smmu_get_domain is not collected and
return to caller. Properly collect return value of
pld_ipci_smmu_get_domain.
Change-Id: Ia09f5eba950cb2631f4696fc927c32f49821b9ff
Rename existing INI to enable_bus_suspend_in_sap_mode and define a
new enable_bus_suspend_in_go_mode. Also define new APIs
wma_is_vdev_in_sap_mode and wma_is_vdev_in_go_mode.
Change-Id: If38c4db7b3d1f7323df45d9a7d80a02a44e7ca41
CRs-Fixed: 2864596
Driver sends the assoc request and association response frame to
the kernel/userspace on connection success & association failure
cases. In successful connection case, the driver strips the fixed
fields and sends only the Association request/response IEs. But
in association failure case driver includes the Fixed fields in
the connect result.
Don't include the fixed fields in the association request/
response frame sent in the connect result.
Change-Id: I2e17df1669a8790253b1dde91f5ed100c1d3e6d9
CRs-Fixed: 2856213
hdd_for_each_adapter_dev_held_safe API takes dev_hold and
during cleanup of interface, dev is unregistered. So later
when dev_put is called, it results in illegal access to
unregistered dev.
Fix this issue by releasing dev_hold before interface cleanup.
Change-Id: Ib6bfe1a985f21be107b69beec0f92feccc98f34e
CRs-Fixed: 2855833
In order to improve the hang data it will be now processed internally
on every dump, hence store the data in the global variable to get
parsed by tools internally.
Change-Id: I0cfacd0643e5e486630a8ba0989c0d7d0c9a63c8
CRs-Fixed: 2810338
While adding monitor interface, issue disconnect for existing
STA interface only if mon concurrency is supported, for packet
capture mode disconnection is not required.
Change-Id: I6e970eb52681fcb500ab56372ff93e9c73d79618
CRs-Fixed: 2855842
Currently , pre CAC adapter will be closed during SAP interface down.
But pre_cac vdev sync is being unregistered after pre CAC success.
Because of this, pre CAC adapter close will fail and the same pre CAC
adapter context will be retained for subsequent SAP start. As a result
pre CAC request may fail after SAP restart.
To address this, don't unregister vdev sync after pre CAC success.
Change-Id: I2d5969274de290bd86cd510ed2a3ff4e095042b0
CRs-Fixed: 2861298
Currently there is no debug infra to detect the API that caused the
reference leak for dev_hold. So, It very hard to debug/fix the
reference leak issues.
To address this, add debug_infra for dev_hold and dev_put calls in
the driver. This change also fixes the few reference leaks with
hdd_for_each_adapter_dev_held_safe.
Change-Id: Icf1adf53c3bd11c715111494bac958c541ef87ea
CRs-Fixed: 2825558
Revert wdev->mtx locking in commit
I0dd415a5576d29e3a7729768c8482205677ca3e7.
For STA eCSR_ROAM_STA_CHANNEL_SWITCH message, the sme_global_lock
is acquired in schedule thread alreadly. If we acquire wdev->mtx
in same thread, it will break the lock order and cause deadlock
issue. That is because the kernel -> Driver hdd request will
acquire wdev lock and then sme lock.
Change-Id: I6737040b596161c57589a5b2aac1a53754a8cba5
CRs-Fixed: 2862879
Currently, host driver rejects any concurrent session with other
security modes(e.g. NAN) when WAPI is present. This is due to a
limitation on older platforms. But newer platforms(e.g. Lithium
architecture) support WAPI+other security modes concurrently.
Firmware advertises service capability WAPI_CONCURRENCY_SUPPORTED if it
supports other security modes when WAPI is active. Get the capability
and accept/reject concurrent sessions.
Change-Id: I0e004e1220afd9c42869589364606c9f729798f7
CRs-Fixed: 2844799
Current logic in wlansap_get_chan_band_restrict will skip channel
switch for 2G channel which is disabled due to CC update by mistake.
Update the condiction logic to make it work properly.
Change-Id: Ib4c07447f14a47c2934c63ebdc09821eb8e5a3d1
CRs-Fixed: 2818651
Currently when CC change but restart SAP is not needed, no beacon
or probe response template is updated to FW and the CC IE in beacon
is not updated. Need to update accordingly.
Change-Id: I588fdf6f9dd69c9c01058ba17a4282d732ed74be
CRs-Fixed: 2818650