Commit Graph

18052 Commits

Author SHA1 Message Date
Pragaspathi Thilagaraj
ef4302f003 qcacld-3.0: Don't allow roam invoke if roaming offload is not initialized
Roam invoke is done by driver if reconnect to same bssid is
received or driver FASTREASSOC command is received from the
supplicant. If roaming module is not initialized at firmware,
then still we send roam invoke to firmware and firmware sends
roam invoke failure as part of which disconnection occurs.

Check if roaming module is initialized at firmware, else return
failure for the reassociation request from userspace.
Send failure only if the kernel version is greater than 4.9,
since the fix to handle reassociation failure is available from
this version.

Change-Id: I0feae326be751e50f7327c91739cd7dddab500e9
CRs-Fixed: 2724686
2020-07-19 06:22:36 -07:00
snandini
67ed9e240b Release 5.2.0.194M
Release 5.2.0.194M

Change-Id: I953b7c5e65b60995bdf6fc66689a0a5b66cad4aa
CRs-Fixed: 774533
2020-07-18 22:30:26 -07:00
Jianmin Zhu
aa74dc19cf qcacld-3.0: back to back roaming disable cmds block wpa supplicant for 2s
If 2 roaming disable commands are sent by wpa supplicant back to back,
2nd won't send RSO STOP to target since RSO STOPPED already, and
disable_lfr_event can't be completed any more since no RSO event from
target until 2s timeout, wpa_supplicant thread and nl80211 are blocked in
wlan_hdd_cfg80211_set_fast_roaming for 2s too.

Fix:
If roaming is stopped by wpa_supplicant already and to be disabled again,
return QDF_STATUS_E_ALREADY in sme_config_fast_roaming.

Change-Id: I7d15a4d4bd8e13ff410a7023f80b418eea435fcc
CRs-Fixed: 2733945
2020-07-18 22:30:26 -07:00
snandini
5ae41b1834 Release 5.2.0.194L
Release 5.2.0.194L

Change-Id: I49f0baff1aaa4761a6a6610e680925be6d793260
CRs-Fixed: 774533
2020-07-18 18:13:46 -07:00
gaurank kathpalia
db2239f025 qcacld-3.0: Avoid copying individual params of score config
With same structure used in src and destination use memcopy
instead of individual assignment of the params in
csr_update_score_params

Change-Id: I18a459824e12ea6e599cf4363a0a569ba6b98045
CRs-Fixed: 2734503
2020-07-18 18:13:41 -07:00
Pragaspathi Thilagaraj
1e50d68658 qcacld-3.0: Fix null pointer dereference of lim_join_req
In lim_populate_peer_rate_set(), bss description is obtained by
dereferencing the bss descriptor from session->lim_join_req.
But in LFR-3.0 roaming case, the lim_join_req will be NULL, since
roaming is south bound operation and there is no csr join request
message after roam. So this results in NULL pointer dereference
of bss_description in lim_populate_peer_rate_set() while
handling LFR-3.0 roam synch indication event.

Pass the correct bss descriptor from caller to ensure that valid
bss descriptor is passed to the lim_populate_peer_rate_set() api.

Change-Id: I3af915d5753c7aa054dc6d8766e51fd62c8314bb
CRs-Fixed: 2733807
2020-07-18 18:13:36 -07:00
Huashan Qu
7277418aa5 qcacld-3.0: Move rso related process to connection manager [PART 1]
Add macro ROAM_OFFLOAD_V1 for new code and implement below functions
for connection manager roam part:

csr_handle_roam_state_change() roam offload state related handler.
Filling WMI_ROAM_SCAN_RSSI_THRESHOLD cmd parameters related process.

Change-Id: I0351155ca5a3d68ade6568c7527c5708582ccf1a
CRs-Fixed: 2730826
2020-07-18 18:13:31 -07:00
snandini
dfdc94e135 Release 5.2.0.194K
Release 5.2.0.194K

Change-Id: If832bd9c5493e3c3123900106ceb1066a565d7ad
CRs-Fixed: 774533
2020-07-17 23:59:47 -07:00
Srinivas Girigowda
1445904715 qcacld-3.0: Rename file name and function name for sysfs 'dp_trace'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'dp_trace'

Change-Id: Id4e366bea50d1bda95ee02cd7edd02691d0f70c6
CRs-Fixed: 2731064
2020-07-17 23:59:42 -07:00
Srinivas Girigowda
987834feb7 qcacld-3.0: Rename file name and function name for sysfs 'stats'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'stats'

Change-Id: Iffc390d4865977f9eff72a6a4bcf708c014f482e
CRs-Fixed: 2731064
2020-07-17 23:59:38 -07:00
Srinivas Girigowda
d3255f634e qcacld-3.0: Rename file name and function name for sysfs 'range_ext'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'range_ext'

Change-Id: Icf7ebbbcf1b8b219e64d1c9b98f1946069f91322
CRs-Fixed: 2731064
2020-07-17 23:59:34 -07:00
Srinivas Girigowda
d39a796a98 qcacld-3.0: Rename file name and function name for sysfs 'wlan_dbg'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'wlan_dbg'

Change-Id: I7d0e7b67afa701abd64efb62012c218ee4ab158d
CRs-Fixed: 2731064
2020-07-17 23:59:30 -07:00
Srinivas Girigowda
64d1d78340 qcacld-3.0: Rename file name and function name for sysfs 'fw_mode_config'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'fw_mode_config'

Change-Id: Ia389fa8807bbd0e58de58c503d9f3bbbef9ec707
CRs-Fixed: 2731064
2020-07-17 23:59:26 -07:00
Srinivas Girigowda
837ca7fad6 qcacld-3.0: Rename file name and function name for sysfs 'scan_config'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'scan_config'

Change-Id: I6621cbe5571541d073072ef9e0348d771fd3bc4a
CRs-Fixed: 2731064
2020-07-17 23:59:22 -07:00
Srinivas Girigowda
36b00847fc qcacld-3.0: Rename file name and function name for sysfs 'radar'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'radar'

Change-Id: If13effc45323f5a286d8aeb7a8e27848cb3e618b
CRs-Fixed: 2731064
2020-07-17 23:59:18 -07:00
Srinivas Girigowda
c9933da318 qcacld-3.0: Rename file name and function name for sysfs 'tx_stbc'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'tx_stbc'

Change-Id: I274c1405fab7385202431b48d65603c38783222b
CRs-Fixed: 2731064
2020-07-17 23:59:14 -07:00
Srinivas Girigowda
fe1406f727 qcacld-3.0: Rename file name and function name for sysfs 'tdls_peers'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'tdls_peers'

Change-Id: If6aa504dccd22ce0ccff11f3d73ffb1eedb5895c
CRs-Fixed: 2731064
2020-07-17 23:59:11 -07:00
Srinivas Girigowda
82f61cee0f qcacld-3.0: Rename file name and function name for sysfs 'sta_info'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'sta_info'

Change-Id: Ibb13c1496ea1dd5bc3b024b99414ac8d72db3be6
CRs-Fixed: 2731064
2020-07-17 23:59:07 -07:00
Srinivas Girigowda
0770581b30 qcacld-3.0: Rename file name and function name for sysfs 'temperature'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'temperature'

Change-Id: I8f31d59be9954d3ffe1ff7c11d16dd24b9e2644d
CRs-Fixed: 2731064
2020-07-17 23:59:03 -07:00
Srinivas Girigowda
57d6d48573 qcacld-3.0: Rename file name and function name for sysfs 'monitor_mode_channel'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'monitor_mode_channel'

Change-Id: Ic207d6e29c14a0b33ed4982d533a78729d32a4ba
CRs-Fixed: 2731064
2020-07-17 23:59:00 -07:00
Srinivas Girigowda
5883ffbcba qcacld-3.0: Rename file name and function name for sysfs 'channel'
Rename file name and modify function names to keep it inline
with sysfs attribute name 'channel'

Change-Id: I9c73e572bdb80edc3431180448dffd9843d6a720
CRs-Fixed: 2731064
2020-07-17 23:58:56 -07:00
snandini
572290af40 Release 5.2.0.194J
Release 5.2.0.194J

Change-Id: If2729e9ebbb898a0fc20ae6b80a4c0afcd6efd11
CRs-Fixed: 774533
2020-07-17 21:25:40 -07:00
Abhinav Kumar
68c001d157 qcacld-3.0: Process Disconnect request from FW
FW sends a disconnect request to HOST while roaming failure
through event WMI_VDEV_DISCONNECT_EVENTID per vdev id.
Fix is:
1. Process WMI_VDEV_DISCONNECT_EVENTID and issue disconnection.
2. Make WMI_VDEV_DISCONNECT_EVENTID event as wakable

Change-Id: Ic1e83aace48a3e8424f23641b0e77c66f4283587
CRs-Fixed: 2731952
2020-07-17 21:25:40 -07:00
snandini
99b810a814 Release 5.2.0.194I
Release 5.2.0.194I

Change-Id: Iee36a54230d294efe63b6a9d6b8d93d014559760
CRs-Fixed: 774533
2020-07-17 17:23:16 -07:00
Pragaspathi Thilagaraj
3cceff7853 qcacld-3.0: Strip additional 3 bytes allocated for auth wrapped data
When FILS erp keys are not available, EAP initiate packet will not
be sent to the AP so FILS authentication wrapped data IE is not
required, but the driver is adding extra 3 bytes for wrapped data
even if wrapped data is not included. This will cause issues with
the FILS AP.

Don't allocate bytes for wrapped data if ERP keys are not available.

Change-Id: I9bd8033048829eeaf63ce123129e64f2685df04f
CRs-Fixed: 2732852
2020-07-17 17:23:11 -07:00
snandini
5d28544193 Release 5.2.0.194H
Release 5.2.0.194H

Change-Id: I9c8f15c882a2fe818b6d9800ad74ac113871f16f
CRs-Fixed: 774533
2020-07-17 04:03:45 -07:00
Sachin Ahuja
a69ab56aa6 qcacld-3.0: Check for fw down before reinit complete
Currently reinit resets the recovery in progress flag when
reinit is successul. It may happen that after initial handshake
with FW during reinit, FW crashes and send the FW down indication
to the driver. Driver sets the recovery flag in FW down but it gets
reset on the successul reinit.
Now on subsequent shutdown, driver crashes as recovery flag is
reset by last reinit.

Check for fw down to reset the recovery flag on reinit completion

CRs-Fixed: 2727205
Change-Id: I88effc1211de138351ef9b232645d0c616a9d5dc
2020-07-17 04:03:45 -07:00
snandini
8b2879d115 Release 5.2.0.194G
Release 5.2.0.194G

Change-Id: I4cf85a491dec85388f8c9ea7f29c0efbe85a43f1
CRs-Fixed: 774533
2020-07-16 23:46:12 -07:00
Abhishek Singh
c76b71a758 qcacld-3.0: Move Blacklist filter while scoring the BSS
While BSS are scored apply blacklist logic to remove
blacklist AP or move the avoid AP at the end.

Change-Id: Id5310ef53d31159104fd40af6670135bb1be4571
CRs-Fixed: 2725144
2020-07-16 23:46:12 -07:00
snandini
c9f082cc99 Release 5.2.0.194F
Release 5.2.0.194F

Change-Id: I720a2f18360ecb0df54dbeb9c3016543efa59164
CRs-Fixed: 774533
2020-07-16 20:05:12 -07:00
Abhinav Kumar
c871ecddbd qcacld-3.0: Send roam triggers from vendor cmd to firmware
Userspace can configure different roam control params as
defined in qca_vendor_attr_roam_control through the roam subcmd
QCA_NL80211_VENDOR_SUBCMD_ROAM and the below attributes:
QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_SCHEME
QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD
QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD
QCA_ATTR_ROAM_CONTROL_USER_REASON

Send value of above attribute to fw through command
WMI_ROAM_ENABLE_DISABLE_TRIGGER_REASON_CMDID for trigger
reason WMI_ROAM_TRIGGER_REASON_BTM_WTC.

Change-Id: I17502eebab56652192164144b7ebdadb32033117
CRs-Fixed: 2729119
2020-07-16 20:05:12 -07:00
Abhinav Kumar
87a292e54a qcacld-3.0: Print BTM RSP and initial roam info in kmsg
The event WMI_ROAM_STATS_EVENTID is received after
every roam, once the roam synch complete is sent by the host.
This event contains details regarding the btm response.

This helps in debugging/understanding the scenario when roam
failure happens.

Print the info received related to btm rsp and roam initial
info into kmsg.

Change-Id: Icb2058eed5df3265018b3c53548d123f3a4faf4f
CRs-Fixed: 2728267
2020-07-16 20:05:07 -07:00
snandini
9a80ee261b Release 5.2.0.194E
Release 5.2.0.194E

Change-Id: I4cbf297aa10d20c26a8b318539a275ab6c27a534
CRs-Fixed: 774533
2020-07-16 12:02:45 -07:00
Tushnim Bhattacharyya
23590472f2 qcacld-3.0: Unicast deauth from SAP isn't going OTA
SAP sends unicast disassoc to associated stations
as part of the del station request from userspace.
But host is flushing the tids as well at the same
time causing a race in FW which is failing to send
out the unicast deauth/disassoc. Fix is to add the
delay between sending the unicast frame & flush tid.

Change-Id: If52da8766f72b8f5a1ed97ca5e1d9f87d82840d8
CRs-Fixed: 2731483
2020-07-16 12:02:45 -07:00
Subrat Dash
cf2e868763 qcacld-3.0: Avoid resetting EDCA parameters to default values
The EDCA parameters in SAP mode are reset to default values
defined in EDCA config strings when the first station connects
the BSS and again when the last station leaves the BSS. it
overrides the EDCA parameters values configured from the hostapd.

Add a check to avoid resetting EDCA parameters when SAP is not
operating with ANI profile.

Change-Id: Iecf21b4c35192e98ea9e96b50c0ba0d6d5382a40
CRs-Fixed: 2725446
2020-07-16 12:02:41 -07:00
Pragaspathi Thilagaraj
f16ee17015 qcacld-3.0: Validate FILS ERP key lengths in connect request
If ERP key lengths are greater than maximum valid lengths,
currently the connect request is allowed to go through.
Allow fils connection to go through only if erp keys are
not sent in connect. If erp information is present, validate
the rrk, realm, username length.

Add changes to lookup pmkid based on bssid also in addition to
the existing logic to lookup based on fils cache_id and ssid.

Change-Id: Iebde1f382b7db13553b848a459cb4a783744c2a6
CRs-Fixed: 2732050
2020-07-16 12:02:38 -07:00
Abhishek Ambure
d4bf5ac73b qcacld-3.0: Cleanup sae auth timer for romaing scenarios
Host sends SAE auth retry frames if the response/ack for the previous
SAE auth is not received. In roam scenarios like roam abort, HO fail
host don't need to send SAE auth again.
Hence cleanup sae auth timer for roaming scenarios.

Change-Id: I617a61fdb4ce7b6afa66415ebc33a2ce23e3821b
CRs-Fixed: 2730888
2020-07-16 12:02:34 -07:00
snandini
6760b0beb8 Release 5.2.0.194D
Release 5.2.0.194D

Change-Id: I4e1dc638878c797ce1cc42ffaab4d1e8bd9a42d7
CRs-Fixed: 774533
2020-07-16 02:05:27 -07:00
gaurank kathpalia
a3c45ece94 qcacld-3.0: Modify the HE cap MCS for 160Mhz
Currently the driver intersects the 2g and 5g
capability and stores them in the HE cap variable
of the same PHY.
In the HW where a single PHY supports both 2g and
5g and with max BW support of 160Mhz, the intersection
of 160Mhz and 80+80Mhz MCS will lead to zero as 2g will
not support 160 and 80+80 BW. Hence the MCS map will be
0 for them indicating that the STA would support only
till MCS 7 and not above that which would lead to a
lower coding rate and lower QAM thus resulting in
a lower throughput.

Fix is to not intersect the MCS capability of 2g and 5g
and copy MCS directly from the target capability.

Change-Id: Ice5c426db43516b5dff5379926086b40d69f3d96
CRs-Fixed: 2732512
2020-07-16 02:05:27 -07:00
Abhishek Ambure
48d4b5c4c6 qcacld-3.0: Don't free assoc rsp fail timer on rsp status TRY_AGAIN_LATER
For WPA3 SAE, host runs pmf comeback timer to retry assoc request. Host
retires assoc request once if assoc response has response status as
TRY_AGAIN_LATER after 1 seconds.
Problem scenario:
Host sends assoc request to which AP respond with assoc response status
TRY_AGAIN_LATER, deactivates assoc response failure timer and retransmit
assoc request after 1 second. After 1 second host retransmit assoc req
and marks this is "retried" assoc request. If to the retried assoc
request host gets assoc response with reason status TRY_AGAIN_LATER,
host deactivates assoc failure timer and drops the assoc response.
Thus association does not complete and even association timer doesn't
trigger.
Fix:
deactivate assoc failure timer after checking the assoc response status
is not TRY_AGAIN_LATER and deactivate pmf comeback timer on assoc failure
timer gets trigger.

Change-Id: I7fc89063efec3c4a5b0521e9ff8301d6ea64683e
CRs-Fixed: 2730194
2020-07-16 02:05:23 -07:00
wei yang
3491a58edd qcacld-3.0: fix compilation issue with dp_rx_napi_gro_flush
If CONFIG_WLAN_FEATURE_DP_RX_THREADS is not defined then
dp_rx_napi_gro_flush function will not get compiled from
dp_rx_thread.c, report compilation failure.

Modify dp_rx_napi_gro_flush to static inline type out of
dp_rx_thread.c.

Change-Id: Iad7619e29f6175bc80f2618b3675feafd7f3260d
CRs-Fixed: 2732503
2020-07-16 02:05:20 -07:00
snandini
2f9f745dcc Release 5.2.0.194C
Release 5.2.0.194C

Change-Id: Ifff89813714490c161fab8e3f42caa391d1b8387
CRs-Fixed: 774533
2020-07-15 07:55:09 -07:00
snandini
5ad4347e1d Release 5.2.0.194B
Release 5.2.0.194B

Change-Id: I199d98cd0dfde1d34b4874e7856852b9ec2bd1c2
CRs-Fixed: 774533
2020-07-15 05:52:05 -07:00
Ashish Kumar Dhanotiya
cb959bd757 qcacld-3.0: Retain the stainfo ref count in case of re-connect
Currently in SAP case if a station disconnects and re-connects
to the SAP, in the process of register sta, SAP clears
previous reference of the station and re-initializes the sta
info. Because of this when the thread which actually took the
reference, tries to release the reference, is not able to release
the reference as the ref count is already set to zero as part
of the reconnect which results in undefined behaviour.

To address this issue, retain the ref count of the sta info
in case of re-connect from the same station.

Change-id: Ie9558ca8e59601b48f9be7fff37cc530874ab5ad
CRs-Fixed: 2730782
2020-07-15 05:52:05 -07:00
snandini
0e0de6f9f5 Release 5.2.0.194A
Release 5.2.0.194A

Change-Id: I860722bd651c074faceb0593432172dc3793dbf0
CRs-Fixed: 774533
2020-07-15 01:46:31 -07:00
Lincoln Tran
1de7a9a643 qcacld-3.0: Update band_capability INI to use bitmap
The band_capability field is used in other places to be
a bitmap over reg_wifi_band. Update the field in wma_tgt_cfg and
wlan_mlme_generic to take the same bitmap for consistency.
Update all references to these fields to expect a bitmap as well.

Change-Id: I8abd697e2fbe02b4eadd32f3027bef7408bac2a0
CRs-fixed: 2726710
2020-07-15 01:46:30 -07:00
snandini
ae90b01281 Release 5.2.0.194
Release 5.2.0.194

Change-Id: I5b70273ca7d6e76b86f51058a8e1427d956467df
CRs-Fixed: 774533
2020-07-14 22:45:22 -07:00
Lincoln Tran
d5e1f78aa8 qcacld-3.0: Introduce getband vendor command
Update calls from reg_get_curr_band to reg_get_band since
they provide the same functionality.
Update calls to reg_get_band to expect a bitmap since the API
has been updated.
Update getband driver command to convert the bitmap to the
old values. Also add the new vendor command getband.

Change-Id: I069489ebf4826f8f4bfcb974b74e4d0591d5b33f
CRs-fixed: 2726361
2020-07-14 22:45:22 -07:00
Lincoln Tran
d189dc8105 qcacld-3.0: Update setband commands to support 6G
Update both the driver and vendor setband command to support the
new 6G band. Specific changes include:
	1. Update driver setband command to convert userspace
	   input into a setband bitmap.
	2. Update vendor setband command to accept a bitmask
	   or a value
	3. Add support API to convert between vendor mask and reg
	   bitmap.

Change-Id: Ic968261ce5c3712f1e73cac0cb5a5f030118753a
CRs-fixed: 2726314
2020-07-14 22:45:17 -07:00
nshrivas
bc353f1629 Release 5.2.0.193Z
Release 5.2.0.193Z

Change-Id: I4496af311597b2a08f9a74fdc9ac1c693cda82a8
CRs-Fixed: 774533
2020-07-14 04:26:26 -07:00
Paul Zhang
a426dc45c3 qcacld-3.0: Use get/put to refer vdev [4/4]
Any direct reference to adapter->vdev outside the initial
assignment should use get/put to properly refer the vdev.
        core/hdd/src/wlan_hdd_nan_datapath.c
        core/hdd/src/wlan_hdd_p2p.c
        core/hdd/src/wlan_hdd_softap_tx_rx.c

Change-Id: I2e98ca517c63ad0a03d3539fc9f97f8e466ba2ab
CRs-Fixed: 2714025
2020-07-14 04:26:25 -07:00
Paul Zhang
9ba5a2bc01 qcacld-3.0: Use get/put to refer vdev [2/4]
Any direct reference to adapter->vdev outside the initial
assignment should use get/put to properly refer the vdev.
      core/hdd/src/wlan_hdd_power.c

Change-Id: I68a093c92e57b7076cf4f41e9f69f747f0c7e6ec
CRs-Fixed: 2714025
2020-07-14 04:26:22 -07:00
Paul Zhang
baac594a3f qcacld-3.0: Use get/put to refer vdev [1/4]
Any direct reference to adapter->vdev outside the initial
assignment should use get/put to properly refer the vdev.
        core/hdd/src/wlan_hdd_ioctl.c
        core/hdd/src/wlan_hdd_station_info.c
        os_if/interop_issues_ap/src/wlan_cfg80211_interop_issues_ap.c

Change-Id: I897ee8ac2a4816b91ed48e2c32e97540430c5520
CRs-Fixed: 2714025
2020-07-14 04:26:19 -07:00
nshrivas
c3f5399b50 Release 5.2.0.193Y
Release 5.2.0.193Y

Change-Id: Ic0cc2b339676f6d921f18c623593d27634455ce4
CRs-Fixed: 774533
2020-07-14 02:02:27 -07:00
Srinivas Girigowda
8cf89cb514 qcacld-3.0: Replace obsolete WMA_LOGE() with wma_err()
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: Iaf11baa0f09cfb090806527184c6137f8b950aa8
CRs-Fixed: 2723709
2020-07-14 02:02:27 -07:00
Srinivas Girigowda
e0f33862ae qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_scan_roam.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: I3e99ae2c91d3382afe128b68ec51b13368b3f177
CRs-Fixed: 2723709
2020-07-14 02:02:21 -07:00
Srinivas Girigowda
a9ef877204 qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_power.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: I2846bd57e79812ebe4ce8ca51cd34581bdf4f7ff
CRs-Fixed: 2723709
2020-07-14 02:02:17 -07:00
Srinivas Girigowda
8e8ad1393c qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_mgmt.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: Iff73ada8b420fb66e71f45d236cc365db165eefe
CRs-Fixed: 2723709
2020-07-14 02:02:12 -07:00
Srinivas Girigowda
f986fdacc4 qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_utils.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: Idbb82562db1c64d05920629a2eb3f1cc4916997e
CRs-Fixed: 2723709
2020-07-14 02:02:07 -07:00
Srinivas Girigowda
e609dac563 qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_dev_if.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: Id5a5e41cf1c5a43bf176e0beef925959dcd8f91f
CRs-Fixed: 2723709
2020-07-14 02:02:03 -07:00
Srinivas Girigowda
a1083daa2b qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_data.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: I3db62e12cb1392d73045686a6157c3530568f1b2
CRs-Fixed: 2723709
2020-07-14 02:01:58 -07:00
Srinivas Girigowda
403e38b615 qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_features.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: I8c9492c0877a476d5a2d0420b3013dc6f18b24c7
CRs-Fixed: 2723709
2020-07-14 02:01:53 -07:00
Srinivas Girigowda
13d15035e7 qcacld-3.0: Replace WMA_LOGE() with wma_err() in wma_main.c
Replace obsolete WMA_LOGE() macro with wma_err().

Change-Id: If55d52640dbe921377f1ceffed609e096f449563
CRs-Fixed: 2723709
2020-07-14 02:01:48 -07:00
Gururaj Pandurangi
77ba18197c qcacld-3.0: Validate bssDescription before using it
Validate bssDescription before dereferencing it.

Change-Id: I89f8c07ad2e38e59dd2a002ce95cfac88232ccc9
CRs-Fixed: 2729263
2020-07-14 02:01:43 -07:00
Surabhi Vishnoi
0412d9a24f qcacld-3.0: Call the ucfg cfr api when CFR HTT msg is received
Firmware sends the HTT msg which has information about the
CFR. This information is required by CFR component to get the
CFR data capture.
Call CFR ucfg api to pass this CFR related info to the CFR component.

Change-Id: I6e9bdd991d8e7f84f35231900fc00ed18e89f835
CRs-Fixed: 2724722
2020-07-14 02:01:39 -07:00
nshrivas
13d45f4e2a Release 5.2.0.193X
Release 5.2.0.193X

Change-Id: I945a4c72680f69ecef6cbb65daa641a3b2647c1b
CRs-Fixed: 774533
2020-07-13 23:39:24 -07:00
Sandeep Singh
0615ee270f qcacld-3.0: Enable both SNOC and IPCI PLD layer for ICNSS2
ICNSS2 platform driver is used for moselle and adrastea which uses
IPCI and SNOC PLD layer, respectively. Add support to enable both
for ICNSS2 based to target flag.

Change-Id: I06fbacade99b09c9ea7347aa28e10968eaeedaa8
2020-07-13 23:39:24 -07:00
Wu Gao
4e5a1591c5 qcacld-3.0: Add ini to configure max tdls peer count
Add ini "gTDLSMaxPeerCount" to configure max tdls peer count.

Change-Id: I45c287c6c9a2fa1dcebcea54fdd0fc0d8a14b064
CRs-Fixed: 2718971
2020-07-13 23:39:20 -07:00
CNSS_WLAN Service
b81a7cfb7d Merge "Release 5.2.0.193W" into wlan-cld3.driver.lnx.2.0 2020-07-12 20:17:17 -07:00
CNSS_WLAN Service
fc6ee2eed0 Merge "qcacld-3.0: Add ini to enable sae auth/assoc retry" into wlan-cld3.driver.lnx.2.0 2020-07-12 20:17:16 -07:00
CNSS_WLAN Service
8b760faee7 Merge "Release 5.2.0.193V" into wlan-cld3.driver.lnx.2.0 2020-07-12 10:51:17 -07:00
CNSS_WLAN Service
7c952cde3b Merge "qcacld-3.0: Use global operating class to initialize array" into wlan-cld3.driver.lnx.2.0 2020-07-12 10:51:15 -07:00
nshrivas
53d271c41d Release 5.2.0.193W
Release 5.2.0.193W

Change-Id: I38700cd21d8c7b8b2941bf92a94b74f43a91c25e
CRs-Fixed: 774533
2020-07-12 10:10:21 -07:00
Abhishek Ambure
fbdde4785a qcacld-3.0: Add ini to enable sae auth/assoc retry
Introduce new INI sae_connect_retries to decide auth (initial connect
and roam auth) and connect retry for sae. MAX reties is capped to 2
and max for roam auth is 1.
Default is 0x49 i.e. 1 retry each.

Bits       Retry Type
BIT[0:2]   AUTH retries
BIT[3:5]   Connection reties
BIT[6:8]   ROAM AUTH retries

Change-Id: Idae86a7bdb32244c7f3a140b8591418b8238758a
CRs-Fixed: 2728458
2020-07-12 10:10:20 -07:00
CNSS_WLAN Service
5a71295f5d Merge "qcacld-3.0: Update self RSN caps to FW in RSO update/start cmd" into wlan-cld3.driver.lnx.2.0 2020-07-12 08:09:54 -07:00
nshrivas
0c45a04554 Release 5.2.0.193V
Release 5.2.0.193V

Change-Id: I52afeae9319d3867df59dc10ef77e7579ff4cefc
CRs-Fixed: 774533
2020-07-12 07:31:23 -07:00
Amar Singhal
9709a3147d qcacld-3.0: Use global operating class to initialize array
Use global operating class to initiaize operating class array.
Country specific operating class table is used less and less now,
so use the global operating class by default.

Change-Id: Iaa6559d47cb1d8d30c8826dc3e7d5b63c743297b
CRs-Fixed: 2728601
2020-07-12 07:31:22 -07:00
Abhishek Ambure
5e1f7ea5d6 qcacld-3.0: Update self RSN caps to FW in RSO update/start cmd
Present source of self RSN capability to copy in RSO command i.e
csr_roam_session's rsn_cap is zero, A new capability OCVC (Operating
Channel Validation Capable) bit is in RSN capabilities. FW enables
OCV feature only if STA and AP both supports it.
Hence update self RSN capability to FW in RSO start/update command.

Change-Id: I1db500142560ec64a24ffab0c414c0c2b733e454
CRs-Fixed: 2721095
2020-07-12 05:17:18 -07:00
nshrivas
f9a9536cfd Release 5.2.0.193U
Release 5.2.0.193U

Change-Id: I83572c4f2a35aa817d52a7af069ffafabd61451a
CRs-Fixed: 774533
2020-07-12 05:17:18 -07:00
nshrivas
0fa1b6629f Release 5.2.0.193U
Release 5.2.0.193U

Change-Id: I2e94c9b9d9569fd3bc15da82e4d74cec41bd5b0c
CRs-Fixed: 774533
2020-07-12 01:49:28 -07:00
Mohit Khanna
114f32b925 qcacld-3.0: Add P2P UDP/TCP checksum offload INI entry
Add support to enable disable TCP/UDP checksum offload for P2p modes.

CRs-Fixed: 2725394
Change-Id: Ib09ef7a0f118d181f4d358857eb960ee41af9e54
2020-07-12 01:49:28 -07:00
nshrivas
5e82bbc32c Release 5.2.0.193T
Release 5.2.0.193T

Change-Id: I8f96c2323309d2942bbbf10e402981630c8b8d95
CRs-Fixed: 774533
2020-07-11 22:39:34 -07:00
Srinivas Dasari
8e493f081d qcacld-3.0: Handle SAP+NAN concurrency when NAN_DBS isn't supported
When nan_sap and nan_disable are supported but nan_dbs is not
supported,
1. Allow SAP+NAN concurrency if force SCC is supported
2. Disable NAN if SAP comes up on a different band and force SCC is
   not supported
3. Reject NAN enable if SAP is already on a different band and force SCC is
   not supported

Change-Id: Ic53eedcda2e5b314f9be2a4bd913d5e63f6613a2
CRs-Fixed: 2729986
2020-07-11 22:39:29 -07:00
nshrivas
63028f5fd7 Release 5.2.0.193S
Release 5.2.0.193S

Change-Id: I163a507748f094f0f45799e87e5c7e6acea0748f
CRs-Fixed: 774533
2020-07-11 20:32:22 -07:00
Srinivas Dasari
d296457502 qcacld-3.0: Rename nan_disable_support to nan_conc_controlled_by_host
nan_disable_support is the firmware capability to allow host to
disable NAN. So that host can disable NAN in any unsupported
concurrencies. This was actually introduced to handle
NAN concurrencies. Rename the capability flag and corresponding
APIs across host driver to resemble the functionality.

Change-Id: I24805194fdb855040bcc518acc96459ee7cb5128
CRs-Fixed: 2729984
2020-07-11 20:32:22 -07:00
nshrivas
64664352f2 Release 5.2.0.193R
Release 5.2.0.193R

Change-Id: Iea291b46f09a8e7ab52316360246978ca43e0f41
CRs-Fixed: 774533
2020-07-11 11:37:20 -07:00
Abhishek Ambure
9ef1764a24 qcacld-3.0: Add support to get roam scan frequencies
For user request of get roam scan frequencies using vendor sub command
QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET and vendor sub attribute
QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL, host replies with list
of roam scan frequencies.

Change-Id: Ia63a5181e13541629a380dec9a032743d15add0c
CRs-Fixed: 2725834
2020-07-11 11:37:19 -07:00
nshrivas
0ebe9a3553 Release 5.2.0.193Q
Release 5.2.0.193Q

Change-Id: I4a720dfc5569bd76e0ad56cc2ac88543ce4ca622
CRs-Fixed: 774533
2020-07-10 21:55:45 -07:00
Aditya Kodukula
09d99afb7e qcacld-3.0: Fix a code comment in hdd_fill_rate_info
Fix a code comment in the function hdd_fill_rate_info

Change-Id: Ia906bc063cd2dfdd5a43a436b6fdb5a155bbc68a
CRs-Fixed: 2728716
2020-07-10 21:55:44 -07:00
nshrivas
683995bb10 Release 5.2.0.193P
Release 5.2.0.193P

Change-Id: Ic4deb468a6dd775b511f38c087f41022af68fcff
CRs-Fixed: 774533
2020-07-10 13:42:21 -07:00
Pragaspathi Thilagaraj
eb128b5dfe qcacld-3.0: Add roam offload state machine changes
Add changes to handle transition to the 2 new states:
1. Roaming in progress: Switch to this state when roam
start notification is received from firmware.
2. Roam Synch in progress: Switch to this from RSO
STARTED state if roam synch indication event is received
from firmware. Change to this state is also allowed in
RSO STOPPED state if supplicant disabled roaming on that
vdev - to allow roam invoke to be processed.

Also query the state machine to get the roaming status instead
of using discrete flags at various layers. Clean the redundant
roaming in progress, roam synch related flags.

Change-Id: Ide20a30d9d8c20a96d8bba70367b51b8643cae09
CRs-Fixed: 2725443
2020-07-10 13:42:21 -07:00
nshrivas
45d1a5e075 Release 5.2.0.193O
Release 5.2.0.193O

Change-Id: Ic672bda0883d7ed6f36614f54d8093b82ccf14a8
CRs-Fixed: 774533
2020-07-10 07:45:38 -07:00
Min Liu
6296d6d783 qcacld-3.0: Fix type mismatch in set wifi config PHY_MODE
Fix the type mismatch issue in set wifi config PHY_MODE and
refactor related APIs.

Change-Id: I2d84f144766126c54e2ed449d367316b65fc769c
CRs-Fixed: 2706050
2020-07-10 07:45:37 -07:00
Abhishek Ambure
7c07f228f6 qcacld-3.0: Add support of pmf comeback timer for SAE assoc retry
If STA DUT receives assoc response with assoc response status as
eSIR_MAC_TRY_AGAIN_LATER, host starts a pmf comeback timer to
send assoc request again on pmf comeback timer timeout.

Change-Id: Ifb28e44af86daef90db7146572cdfae26dfcaa20
CRs-Fixed: 2728459
2020-07-10 07:45:32 -07:00
nshrivas
91903a81ba Release 5.2.0.193N
Release 5.2.0.193N

Change-Id: I6f22c0cae4f2311ba74201ab76f66b7362dd47d4
CRs-Fixed: 774533
2020-07-10 05:38:45 -07:00
nshrivas
9fb1c5b7eb Release 5.2.0.193M
Release 5.2.0.193M

Change-Id: I4e3d1f6f7cddba1b485e450cadafe5de300c408f
CRs-Fixed: 774533
2020-07-09 21:39:34 -07:00
Abhishek Ambure
0a4e3a71ab qcacld-3.0: Add support for assoc retry for SAE assoc timeout
Due to noisy environment, host misses auth and assoc frames which leads
to disconnection. In case of SAE host retires SAE auth if it doesn't get
SAE auth response from AP within 1 second.
To handle SAE assoc response timeout due to noisy environment, host adds
support to reconnect to last BSSID if previous association is timeout.

Change-Id: I71435882e53172e95c873a3216cf649fee9ecd26
CRs-Fixed: 2727340
2020-07-09 21:39:34 -07:00
nshrivas
7c2fc778ef Release 5.2.0.193L
Release 5.2.0.193L

Change-Id: Ib4c2bfadcb87290e46f26f25656079f78274c71b
CRs-Fixed: 774533
2020-07-09 15:54:18 -07:00
sheenam monga
99b51da592 qcacld-3.0: Advertise dpp akm suite in sta mode
Currently, kernel and driver both support dpp akm suite.
but driver doesn't advertise WLAN_AKM_SUITE_DPP_RSN which may
cause issue for WLAN_AKM_SUITE_DPP_RSN supported connection.

Fix: Advertise WLAN_AKM_SUITE_DPP_RSN as supported akm suite
in sta mode.

Change-Id: I5882b310a742c06ad57e97fc24735a9e5021f352
CRs-Fixed: 2726197
2020-07-09 15:54:18 -07:00
Surabhi Vishnoi
1ce2688f28 qcacld-3.0: Add handler for WMI_VDEV_BCN_LATENCY_EVENTID
WMI_VDEV_BCN_LATENCY_EVENTID is sent by firmware when it receives
the latency IE from connected AP in beacon.

Add handler for this event and when latency_level received is ultra
low in latency IE, update request pm qos type PM_QOS_CPU_DMA_LATENCY
to level DISABLE_KRAIT_IDLE_PS_VAL to speed up CPU efficiency and
irq response. This is needed for Voice and Music products where extreme
low latency is needed while playing music and high power consumption is
accepted.

Change-Id: I3c63ef247f4f4a1add68111ef1bcee6daafd148a
CRs-Fixed: 2723205
2020-07-09 15:54:14 -07:00