Commit Graph

21481 Commits

Author SHA1 Message Date
Yeshwanth Sriram Guntuka
1cbef73e16 qcacld-3.0: Add base code for Bus Bandwidth Manager
Add the init and de-init APIs for Bus Bandwidth
Manager.

Change-Id: I63c9bf0dbcbac458dd6467e5b073a5cb569ce502
CRs-Fixed: 2810496
2020-12-03 07:38:09 -08:00
snandini
c8aa5aef97 Release 5.2.0.212S
Release 5.2.0.212S

Change-Id: I3d76206ffea2a8ba42e87d265bf911728ee06a17
CRs-Fixed: 774533
2020-12-03 02:40:50 -08:00
Lincoln Tran
4e841495eb qcacld-3.0: Fix NULL pointer dereference
When sending an MSCS action frame to from SME to PE module, there is a
potential NULL pointer dereference. Add check to ensure BSS descriptor
is valid before copying it into the message.

Change-Id: If6d114cb923e5bd283a342ba2b136ce75c9a26b4
CRs-fixed: 2830747
2020-12-03 02:40:50 -08:00
snandini
b11f7447ad Release 5.2.0.212R
Release 5.2.0.212R

Change-Id: I361bbd2d28cb72ce6b5132c2204a4452778b7c2c
CRs-Fixed: 774533
2020-12-02 20:49:25 -08:00
Chaoli Zhou
982b98c6e3 qcacld-3.0: Add bootup kpi marker for some wlan events
Add the API to record some key wlan events
to "/sys/kernel/debug/bootkpi/kpi_values" from
HDD layer.
Examples:
108 KPI_MARKER 860s389434814ns qca6696 START LOADING
108 KPI_MARKER 860s634063720ns qca6696 DRIVER LOADED
108 KPI_MARKER 869s427276611ns qca6696 wlan0:SAP TRY
TO START
108 KPI_MARKER 869s576171875ns qca6696 wlan0:SAP START
with SUCCESS

Change-Id: I2e40305ee4100248348e9a284df71d1ee340e1e4
CRs-Fixed: 2816054
2020-12-02 20:49:25 -08:00
snandini
4c563c79ea Release 5.2.0.212Q
Release 5.2.0.212Q

Change-Id: Ib8d547aa8b54699a0fec82046ff07f76009fa4c3
CRs-Fixed: 774533
2020-12-02 18:49:51 -08:00
Ashish Kumar Dhanotiya
9ba7e98f26 qcacld-3.0: Handle connect failure for connection manager
Currently connect failure is not handled for connection
manager, add logic to handle connect failure path for
connection manager.

CRs-Fixed: 2829679
Change-Id: Ie60090fb0d469850ab9e1ab422d7713a4bfa6acf
2020-12-02 18:49:51 -08:00
snandini
d5b51b449c Release 5.2.0.212P
Release 5.2.0.212P

Change-Id: I72fb14870dee34aedc6d8b27c5824b2852a640b1
CRs-Fixed: 774533
2020-12-02 16:49:34 -08:00
Utkarsh Bhatnagar
fdae617bef qcacld-3.0: Remove csr_roam_save_security_rsp_ie()
Remove csr_roam_save_security_rsp_ie() which is using
unused variables pWapiRspIE, nWapiRspIeLength,
nWpaRsnRspIeLength, pWpaRsnRspIE. Also remove
the functions which are used to get the value of
these variables.

Change-Id: I526fd492e98c119c51f760f7bfb58f454e5bebdf
CRs-Fixed: 2829557
2020-12-02 16:49:33 -08:00
snandini
b89ca22f55 Release 5.2.0.212O
Release 5.2.0.212O

Change-Id: I6b45b8cf5b2a656b2430871a7c248c0803fcff27
CRs-Fixed: 774533
2020-12-02 12:49:06 -08:00
Ashish Kumar Dhanotiya
eb23480b4e qcacld-3.0: Update max value of gEnableModulatedDTIM ini
Currently max value of gEnableModulatedDTIM is 5 which is
incorrect as FW supports maximum no. of modulated DTIM as 10.

To address above issue update max value of gEnableModulatedDTIM
ini.

CRs-Fixed: 2830240
Change-Id: I7f1cab6f0cb2b2a60e7cc1bb37a9971c1752a1bb
2020-12-02 12:49:06 -08:00
snandini
baa6fe85da Release 5.2.0.212N
Release 5.2.0.212N

Change-Id: I89d6440fdc5f622d6e0dc4ab29d56dd94a951d9c
CRs-Fixed: 774533
2020-12-02 03:29:14 -08:00
wadesong
bb5ebe7dd0 qcacld-3.0: Enable ll stat support on Genoa
Enable ll stat support on Genoa to satisfy the kernel/driver
interfacing requirement imposed by msm-5.4.

Change-Id: I7a1e52908cd8a6d818070c51234ad3c8f1f54c55
CRs-Fixed: 2830079
2020-12-02 03:29:13 -08:00
Liangwei Dong
451d1aa2b6 qcacld-3.0: Take ref count with dbg id API in cfg80211 layer
Replace hdd_objmgr_get/put_vdev by new API hdd_objmgr_get
and put_vdev_by_user to specify functionality dbg id.

Change-Id: I217d503b30fb26d07644678fff4045fee22a849c
CRs-Fixed: 2830030
2020-12-02 03:29:09 -08:00
snandini
9e561c01d6 Release 5.2.0.212M
Release 5.2.0.212M

Change-Id: I6965edfd23a2fed7a3b03987e036409bc206aede
CRs-Fixed: 774533
2020-12-02 01:29:51 -08:00
Liangwei Dong
9c5590991d qcacld-3.0: Use FTM_TIME_SYNC_ID dbg id for ftm time sync
Use FTM_TIME_SYNC_ID for ftm time request instead of
generic WLAN_OS_IF_ID.

Change-Id: I85ed15db118d60c0abda98637f473b522b0bfa95
CRs-Fixed: 2827476
2020-12-02 01:29:50 -08:00
Srinivas Dasari
ba89470ad9 qcacld-3.0: Don't check for EXT_AUTH_AP_SUPPORT flag on new kernels
Backport flag CFG80211_EXTERNAL_AUTH_AP_SUPPORT is used to support
external auth in AP mode with older kernels. As the changes are
present in latest kernels, there is no need of this backport flag.

SAE PMK caching doesn't work on new kernels(e.g.: kernel-5.4) as
this backport flag is missing in latest kernels. So, avoid
checking for the same on new kernels.

Change-Id: Idc8858e7cff383e47196e2c94c66db40b5b98a3d
CRs-Fixed: 2807664
2020-12-02 01:29:47 -08:00
snandini
b2ff755040 Release 5.2.0.212L
Release 5.2.0.212L

Change-Id: I815960aa0b92f69670c2151e3a10fa1b6ee9e63d
CRs-Fixed: 774533
2020-12-01 23:28:40 -08:00
Amruta Kulkarni
4aa99209f9 qcacld-3.0: Change RRM Beacon Reporting logic
Previous logic:
While reporting beacon reports a maxmium of
7 Dot11fIEMeasurementReports are sent in one
mgmt frame.

New logic:
Calculate the max number of frames that can fit
in one mgmt frame and add them to the report.

Change-Id: Ic413c94ea1f012a647dfd7cd21b13bc123ebfd97
CRs-Fixed: 2809395
2020-12-01 23:28:40 -08:00
snandini
c8e9c68f6b Release 5.2.0.212K
Release 5.2.0.212K

Change-Id: Ib2c67af8d34740c1cd70f211b909588b0b9a5491
CRs-Fixed: 774533
2020-12-01 20:51:12 -08:00
Chaoli Zhou
324d7d4c1e qcacld-3.0: Fix mib stats feature compile error on perf image
With perf kernel config file, it usually will not
set CONFIG_DEBUG_FS=y, which will cause implicit
declaration of function 'hdd_debugfs_process_mib_stats'
such compile error. And MIB STATS feature also depend
on debug fs, so enable it as long as CONFIG_DEBUG_FS=y

Change-Id: Ice1ddce07eb5eb251e766d3952ca15b00321b3b2
CRs-Fixed: 2829413
2020-12-01 20:51:12 -08:00
Liangwei Dong
e00ffbd00c qcacld-3.0: Fix invoke roam race condition
There is race condition is in-between "nud failure
sme_roam_invoke_nud_fail" and "bmiss disconnecting process".
Thread 1: Nud failure will check the roam state -
    "MLME_IS_ROAM_INITIALIZED"
Thread 2: bmiss disconnecting will set roam offload state to
    "deinit" and set the "roam_invoke_in_progress" false.
Thread 1: trigger roaming cmd to fw and set
    "roam_invoke_in_progress" = true
Then drv couldn’t get "roam_invoke_in_progress" cleared and
get all the scan blocked.

The thread 2 (scheduler thread) has acquired the sme lock
during handling BMISS.
Fix by add sme lock in sme_roam_invoke_nud_fail to protect
the roam state check and set roam_invoke_in_progress = true.

Change-Id: Ibb73c19e06e248b63795c9bfc6db0d99bc702b44
CRs-Fixed: 2829101
2020-12-01 20:51:07 -08:00
snandini
cef68f04ce Release 5.2.0.212J
Release 5.2.0.212J

Change-Id: I0f29c1a91bd573e299b685eafd80e7dd4d53ac03
CRs-Fixed: 774533
2020-12-01 09:19:10 -08:00
Jyoti Kumari
07193067c8 qcacld-3.0: Fix mem leak in wma_data_tx_ack_work_handler()
Mem leak in tx ack work handler.

Free allocated memory in wma_data_tx_ack_work_handler()

Change-Id: Id79072902ac43a60998624429872a2a489cecbf1
CRs-Fixed: 2828030
2020-12-01 09:19:10 -08:00
snandini
cd281fae69 Release 5.2.0.212I
Release 5.2.0.212I

Change-Id: Iada07e99afa4c163b6d32cd10b8dd3d700ebd680
CRs-Fixed: 774533
2020-12-01 06:50:18 -08:00
Jyoti Kumari
47316d9679 qcacld-3.0: Avoid excessive kmsg log in roam stats event handler
Sometimes firmware sends WMI_ROAM_STATS_EVENTID repeatedly with
wrong TLV. This causes event extraction failure at the event
handler and continuous error logs are written to kmsg.

Rate limit debug level prints in wma_roam_stats_event_handler()

Change-Id: I03c1a50198d26096333d9b42190b34204453155a
CRs-Fixed: 2829293
2020-12-01 12:46:25 +05:30
snandini
688b5d45a7 Release 5.2.0.212H
Release 5.2.0.212H

Change-Id: Ic07c175d7711f09d484a6742569701c96374f4a0
CRs-Fixed: 774533
2020-11-30 12:49:20 -08:00
Ajit Vaishya
b4021c73b5 qcacld-3.0: Advertise Adaptive 11R supported feature to user space
Currently when Adaptive 11R feature is disable via ini
then user space parse Vendor Specific IE and trigger
connection in FT-PSK/EAP based on STA configured key
mgmt, but due to feature disabled via ini it failed
to connect AP and trigger Assoc reject to user space.
To overcome this advertise Adaptive 11R supported feature
bit to user space and based on this feature bit user space
parse, trigger connection in FT-PSK/EAP other wise fallback to
PSK/EAP.

Change-Id: I5d67a0cb77c3f39328467a6313a7a795e6a7a4d8
CRs-Fixed: 2785878
2020-11-30 12:49:20 -08:00
snandini
3f8dbf9af9 Release 5.2.0.212G
Release 5.2.0.212G

Change-Id: Id3f2bcd9b5705588fd4e8f48a8f2bde921d2883f
CRs-Fixed: 774533
2020-11-30 10:49:04 -08:00
Liangwei Dong
4744fdbb95 qcacld-3.0: Fix SAP moved to unsafe channel
At present when user trigger SAP move to unsafe channel,
driver doesn't reject the request since "strict = false"
and unsafe checking is skipped.
Fix by check SAP channel switch target channel safe or
unsafe with API policy_mgr_is_sap_freq_allowed before
perform channel switch.

Change-Id: I2950fb31346df8705c8fc608fd79e1a44f4d4947
CRs-Fixed: 2826619
2020-11-30 10:49:04 -08:00
Utkarsh Bhatnagar
1b046d2558 qcacld-3.0: Stop SAP if STA is on 6ghz
Stop/Reject SAP connection if STA is/comes up
on a 6ghz freq and SAP is not capable of 6ghz
freq to avoid MCC situation in a non-DBS capable
HW.

Fix is to stop/reject the SAP startup in above
mentioned case.

Change-Id: I451c95929f378cd0790bd5fc647235fc2dd0071a
CRs-Fixed: 2818030
2020-11-30 10:49:00 -08:00
snandini
b53b5175c6 Release 5.2.0.212F
Release 5.2.0.212F

Change-Id: I72a4380639fc7c7b68ab651d90018b64eb3f9d1d
CRs-Fixed: 774533
2020-11-30 08:48:16 -08:00
Jyoti Kumari
3307aeb463 qcacld-3.0: Avoid excessive kmsg log in roam stats event handler
Sometimes firmware sends WMI_ROAM_STATS_EVENTID repeatedly with
wrong TLV. This causes event extraction failure at the event
handler and continuous error logs are written to kmsg.

Replace error prints in wma_roam_stats_event_handler() with
debug level prints.

Change-Id: Iba03e22239281a921cfcab4a37eba2894ec006f4
CRs-Fixed: 2826127
2020-11-30 08:48:16 -08:00
snandini
c995d2a0e8 Release 5.2.0.212E
Release 5.2.0.212E

Change-Id: I7fb69469d3508006dfa1008352c3a691f790dfe2
CRs-Fixed: 774533
2020-11-29 20:49:35 -08:00
Yu Wang
cda18ea48e qcacld-3.0: return proper values accordingly when setting dual mac config
In sme_soc_set_dual_mac_config(), when fail to enqueue the sme command,
it should not return success; otherwise, the calling functions may wait
for the response(eWNI_SME_SET_DUAL_MAC_CFG_RESP) even when no command
is issued.

Change-Id: I8ac68ce6bb13aff47782caf944982ea4faaee2ba
CRs-Fixed: 2826511
2020-11-29 20:49:35 -08:00
snandini
58ae796151 Release 5.2.0.212D
Release 5.2.0.212D

Change-Id: I83c828eb6bbe899cd16aecc0db1ab7dc7c424b4d
CRs-Fixed: 774533
2020-11-28 06:48:13 -08:00
Pragaspathi Thilagaraj
4120a198cb qcacld-3.0: Fix IE offset while checking OWE transition mode
In OWE transition mode, the beacon from the transition mode AP
should be dropped after sending unicast probe to avoid kernel
entry for BSS with null ssid. But while parsing the IE, the
frame pointer passed points to the fixed fields.

So pass the ssid IE pointer to the OWE transition mode IE
parsing API.

Change-Id: I668bc2dfc32a5a23b44da50ac81bac98250faa2a
CRs-Fixed: 2814173
2020-11-28 06:48:13 -08:00
snandini
e423fa1339 Release 5.2.0.212C
Release 5.2.0.212C

Change-Id: I7eb0c41bacb08c479f10cdac99edc32e51f9682b
CRs-Fixed: 774533
2020-11-27 13:37:20 -08:00
Aditya Kodukula
8a8277ddfc qcacld-3.0: Check to verify the status returned by cfg_parse()
Verify the status returned by cfg_parse() function after parsing
the wlan ini file.

Change-Id: I89b44dec614130ee8a6e5af19cea85e47fd53d64
CRs-fixed: 2826976
2020-11-27 13:37:20 -08:00
Manikanta Pubbisetty
60a2bb258e qcacld-3.0: remove Kbuild configuration for pktlog
Remove Kbuild configuration for pktlog for WCN6750.

Change-Id: Ia1506857531c5477392da8308e602e03f2df81b9
CRs-Fixed: 2827729
2020-11-27 13:37:16 -08:00
snandini
460bb23c8d Release 5.2.0.212B
Release 5.2.0.212B

Change-Id: I435fa534f0d52a635e4543bf805af9ecefca5bae
CRs-Fixed: 774533
2020-11-27 11:36:57 -08:00
Abhishek Ambure
5de51e4e11 qcacld-3.0: Update proper mgmt tx complete status in host
FW updates the mgmt tx packet status to host using tx complete event,
enum WMI_MGMT_TX_COMP_STATUS_TYPE. Presently host checks for enum
WMI_MGMT_TX_COMP_TYPE_COMPLETE_OK as mgmt tx success and for rest all
status enums treats as NO_ACK. As FW can drop mgmt frames and updates
host with WMI_MGMT_TX_COMP_TYPE_DISCARD or WMI_MGMT_TX_COMP_TYPE_INSPECT
which is not equivalent to NO_ACK.
Hence update proper value of mgmt tx complete status in host from the mgmt
tx complete event.

Change-Id: Id507a85c4b4dec407eae0626488b92e4db5eb5ec
CRs-Fixed: 2827138
2020-11-27 11:36:57 -08:00
snandini
5af27bd80a Release 5.2.0.212A
Release 5.2.0.212A

Change-Id: I6f4ea29d766f5c917bed2f0b908497ce409ed026
CRs-Fixed: 774533
2020-11-27 08:51:23 -08:00
Abdul Muqtadeer Ahmed
401fc4d532 qcacld-3.0: Add a check for invalid channel number
If the channel bandwidth is not 80+80, then the channel freq segment1
of the current session will become 0. When api is called to get freq from
channel num it shows error msg invalid channel num 0.

To avoid the above issue, add a check for invalid channel number before
calling the api to get freq.

Change-Id: I7bd0748be04181d4e59935b0f9111d582ca31e3c
CRs-Fixed: 2820653
2020-11-27 08:51:23 -08:00
snandini
ea27128970 Release 5.2.0.212
Release 5.2.0.212

Change-Id: Icdcf22834e9ea9a5fba436794102027342340815
CRs-Fixed: 774533
2020-11-27 06:48:36 -08:00
Ke Huang
c0ee855344 qcacld-3.0: fix the wep unicast data transfer fail issue
The WEP security also use the open mode(key_mgmt is NONE), but
it will return directly if it is unicast and missed to call
csr_roam_issue_set_context_req() and then make the WEP unicast
data transfer fail.
So change to call csr_roam_issue_set_context_req() in this case.

Change-Id: I7f81bc2975ac61d6bfe80af27eb38eb783cae8e9
CRs-Fixed: 2826978
2020-11-27 06:48:36 -08:00
snandini
f38ed6e5bf Release 5.2.0.211Z
Release 5.2.0.211Z

Change-Id: I0986a2a25914fe2701d93493db85e1dc0ad440bf
CRs-Fixed: 774533
2020-11-26 16:38:36 -08:00
Karthik Kantamneni
8c1447c31d qcacld-3.0: Add NAN UDP/TCP checksum offload DP cfg entry
Recently NAN UDP/TCP checksum offload INI is added
but corresponding DP cfg entry is missing.
Add NAN UDP/TCP checksum offload DP cfg entry.

Change-Id: I9c6549cbe4cb9e67a538c0743d99404b515e2006
CRs-Fixed: 2815904
2020-11-26 16:38:36 -08:00
snandini
33a9f91bb0 Release 5.2.0.211Y
Release 5.2.0.211Y

Change-Id: I689f98c8716208146e27f96b3c0eba0e1763f451
CRs-Fixed: 774533
2020-11-26 12:49:07 -08:00
gaurank kathpalia
d9e0e3ee18 qcacld-3.0: Move nss, oui from CSR to LIM
Move nss and oui support from CSR to LIM

Change-Id: I7ced4b5951b0525a492dd641846305582f0613f2
CRs-Fixed: 2827097
2020-11-26 12:49:07 -08:00