Commit graph

21,833 commits

Author SHA1 Message Date
Deeksha Gupta
10b1959cc8 qcacld-3.0: Remove radar event if dfs_channel_switch is disable
Currently, DUT is able to detect the radar event
causing channel switch even if disable dfs channel
switch ini is set. Due to this, there is a chance
of unwanted CSA.

Adding check for disable dfs channel switch ini before
detecting the radar. If gDisableDFSChSwitch = 0 then
detect the radar event else ignore the radar event.

Change-Id: I977d93e47ee35026662d55a8e292c8790ddc7d31
CRs-Fixed: 2905871
2021-03-25 23:29:07 -07:00
Vevek Venkatesan
6d5575e828 qcacld-3.0: iface connection/disconnection mgmt in IPA
Debug change to crash if there is a mismatch in number of
connections and disconnections

Change-Id: I1bb9cac331c0cb491a0ba761a78969537185e414
CRs-Fixed: 2870628
2021-03-25 23:29:03 -07:00
snandini
e74c823e47 Release 2.0.8.13R
Release 2.0.8.13R

Change-Id: Ie4df42db5a712d7a76c00aba64471611507a46bc
CRs-Fixed: 774533
2021-03-24 19:24:27 -07:00
Lincoln Tran
3d1997b6e2 Revert "qcacld-3.0: Send TxBF in NAN case"
This function call is not needed because the capabilities
are being sent post vdev start correctly. The call here sends
the capabilities incorrectly at a later time so the good
values are overwritten.

This reverts change I32af660724cfaecfe59da153fea9f98d24b0d4cb.

Change-Id: Ie57a598f1055ee6a3d5a5f9cd353724dc620ab1d
CRs-fixed: 2905402
2021-03-24 19:24:27 -07:00
snandini
660694b8f1 Release 2.0.8.13Q
Release 2.0.8.13Q

Change-Id: Ie0a52f90ed7c536259d27622da86db65ffe7da89
CRs-Fixed: 774533
2021-03-24 13:35:43 -07:00
Abhinav Kumar
837733a63b qcacld-3.0: Update mscs action frame as per spec
Currently, Host sends classifier type and classifier
mask part of TCLAS Mask OPIE only with tag length of
2 bytes.

As per spec tag length for TCLAS Mask OPIE should be 18.
Ext Tag: TCLAS Mask
   Ext Tag Number: TCLAS Mask (89)
   Ext Tag length: 18
   Classifier Type: 4
   Classifier Mask: 0x5f
   Reserved:00000000000000000000000000000000

Fix is to add a reserved parameter in TCLAS Mask OPIE
of length 16 bytes and set it to NULL.

Change-Id: I54cd896a4ffad16581c14fc254575bcec8e6f6d7
CRs-Fixed: 2822616
2021-03-23 03:14:17 -07:00
snandini
203d1a3710 Release 2.0.8.13P
Release 2.0.8.13P

Change-Id: I66c39d6c25568cba0c07956e2720254be33fa1e6
CRs-Fixed: 774533
2021-03-22 20:14:32 -07:00
Pragaspathi Thilagaraj
530037e398 qcacld-3.0: Fix incorrect TWT info frame enabled flag in status query
In TWT status query, the driver fills the TWT info frame enabled
flag if TWT info frame is disabled. This gives wrong information
to the userspace.

Set the TWT info frame flag appropriately if info_frame_disabled
flag is false.

Change-Id: I319da5aacaec792090c0eca05d2a4be8b280e3e0
CRs-Fixed: 2902548
2021-03-22 20:14:32 -07:00
snandini
c6359dd6ad Release 2.0.8.13O
Release 2.0.8.13O

Change-Id: I1ccea33d1b55570c3328973283286584bcf4ba71
CRs-Fixed: 774533
2021-03-22 14:20:41 -07:00
Lincoln Tran
3c5041e0c4 qcacld-3.0: Send VHT TXBF caps after vdev start
After creating the vdev, send the VHT beamforming capabalities.

Change-Id: I9c989a51dab4e239b31d0e8e25f5cf471e6aa0a6
CRs-fixed: 2902912
2021-03-22 14:20:40 -07:00
Dustin Newman
5ae8fbc71b qcacld-3.0: Reduce the log level alloc failure
Reduce the log level alloc failure since it is not fatal. Log the
requested size of memory instead of last ring size found in the
case of alloc failure.

CRs-Fixed: 2894342

Change-Id: Idfb0eec7421e4568008517e35b2fb928f09b6818
2021-03-22 14:20:36 -07:00
abhinav kumar
3dcedfd757 qcacld-3.0: Invalid reason code in case of scan
If the WLAN driver stops sending up beacon information
due to other WIFI operations (like scan and disconnection),
Driver must send pause indication to wpa-supplicant with
reason code defined in enum
qca_wlan_vendor_beacon_reporting_pause_reasons.

Currently, host sends invalid pause reason in case of
scan.

Fix is to send proper reason code in pause indication
in case of a scan.

Change-Id: Id99e5a29be09fbde2c23908ab1f85d40ca3d74b8
CRs-Fixed: 2890110
2021-03-22 14:20:32 -07:00
snandini
be0855505f Release 2.0.8.13N
Release 2.0.8.13N

Change-Id: Iafdbdd59d35c11a156d74d94f0d7dd4438e614a1
CRs-Fixed: 774533
2021-03-22 11:56:08 -07:00
Jyoti Kumari
d6a0e8d33c qcacld-3.0: Check NULL value of wmi_handle
In target_if_register_mgmt_data_offload_event(), check NULL value of
wmi_handle before it's used by wmi_service_enabled()

Change-Id: Iea51c59770258fd10468bb439f559094b563851f
CRs-Fixed: 2900533
2021-03-22 11:56:08 -07:00
snandini
95b6014771 Release 2.0.8.13M
Release 2.0.8.13M

Change-Id: I92fe9dc261ea157f27f8cd0da3743427ef00260e
CRs-Fixed: 774533
2021-03-22 09:36:46 -07:00
Jyoti Kumari
6121eac151 qcacld-3.0: Avoid double memory free of ack_work handler
when the worker thread executes wma_data_tx_ack_work_handler()
as part of driver load/unload, driver frees ack_work but dosent
reset to NULL which results to double memory free in wma_stop()

The fix is to make sure to flush this work and reset to NULL
before the wma_handle gets freed.

Change-Id: I4f56db87256b0f8828c00a2e70158cd76afe1ee0
CRs-Fixed: 2895664
2021-03-22 09:36:45 -07:00
snandini
17452b0d18 Release 2.0.8.13L
Release 2.0.8.13L

Change-Id: Ib0940026f008206e095a20c0dec6dcb3a941f9dd
CRs-Fixed: 774533
2021-03-22 03:43:51 -07:00
Karthik Kantamneni
3f1ab58e49 qcacld-3.0: Enable delayed reg update feature for QCA6750
Enable srng delayed reg update feature for QCA6750

Change-Id: Idf3765d1c624e88ffa2fc51468dde0a300348654
CRs-Fixed: 2900494
2021-03-22 12:03:29 +05:30
snandini
9c756b1801 Release 2.0.8.13K
Release 2.0.8.13K

Change-Id: I85abe23416da07cb4eb8279decb21eea9363a504
CRs-Fixed: 774533
2021-03-19 20:45:00 -07:00
Srinivas Girigowda
15db317ebb qcacld-3.0: Allow TWT setup re-negotiation for the existing session
Add support to allow TWT setup re-negotiation for the existing session.
If the setup request is received:
   - before the host driver receiving the setup response event from
     firmware for the previous setup request, then return -EINPROGRESS.

   - after the host driver received the setup response event from
     firmware for the previous setup request, then setup_done is
     set to true and this new setup request is sent to firmware
     for parameter re-negotiation.

CRs-Fixed: 2897896
Change-Id: I4d0cc5dac8d569a2e57c70ae6896ad1a24937597
2021-03-19 20:45:00 -07:00
snandini
b5af031936 Release 2.0.8.13J
Release 2.0.8.13J

Change-Id: I04233ed4e7f17b2da2910bec82f158ae1da3f2e6
CRs-Fixed: 774533
2021-03-19 16:24:31 -07:00
Srinivas Dasari
2d42406171 qcacld-3.0: Use cfg80211_get_chandef_type till NL80211_CHAN_WIDTH_40
cfg80211_get_chandef_type supports till NL80211_CHAN_WIDTH_40. Any
chan width more than NL80211_CHAN_WIDTH_40 can be treated as
NL80211_CHAN_HT40PLUS. __wlan_hdd_cfg80211_start_ap has the same
logic in-place.

Change-Id: I70166faf16730128039e4e48d9e90aefb1674977
CRs-Fixed: 2717615
2021-03-19 16:24:30 -07:00
sheenam monga
c96cc11d3b qcacld-3.0: send big data stats as a part of GET_STA_INFO resp
Add big data stats as part of QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO
vendor command reply, if current state is disconnected.

Change-Id: I84dc1f9901be17ea7b2bd6aecc7bec4c19e77202
CRs-Fixed: 2876395
2021-03-19 16:24:24 -07:00
sheenam monga
a50efed182 qcacld-3.0: Add support for big data stats
Add support of big data stats in the cpstats
component.

Change-Id: I3642035d9f25237c80b529da78c51bb1ccf0035a
CRs-Fixed: 2868949
2021-03-19 16:24:18 -07:00
snandini
45bc3d5566 Release 2.0.8.13I
Release 2.0.8.13I

Change-Id: I2a04346107657f7725864cb369c227e9ada463b2
CRs-Fixed: 774533
2021-03-19 14:08:10 -07:00
Deeksha Gupta
16836226e4 qcacld-3.0: Set command_in_progress after adding twt session
Currently, In twt setup command, driver set the
TWT command_in_progress before adding the dialog_id
in TWT context. Due to which, set active command
fails because the dialog id was not added to the
twt context. So the add dialog command response is
getting dropped at sme.

Set the TWT command_in_progress after adding the
dialog_id to TWT context.

Change-Id: Ic2c7e23720e2bc9f5a6737ba2f1dc4b1356dc179
CRs-Fixed: 2897736
2021-03-19 14:08:09 -07:00
Deeksha Gupta
afc154583d qcacld-3.0: Receive twt_setup wake_mantisa in microsecond
Currently, host receive the mantissa in TU from upper
layer.
Add support for below TWT setup additional parameters:
Mantissa in Microsecond
Add changes to receive mantissa value of wake interval
in microsecond.

Change-Id: I00ac5006002a6b4d521a005080a1f5a787f54ba7
CRs-Fixed: 2888361
2021-03-19 14:08:05 -07:00
abhinav kumar
7f249af075 qcacld-3.0: Cache roam related states for the vdev
Cache roam_fail_reason, roam_invoke_fail_reason and
roam_trigger_reason in mlme value for the vdev.
Host sends these values to userspace via a vendor
command after disconnection.

Change-Id: Ief7d027f69b0449254de3615b39829f346589095
CRs-Fixed: 2877230
2021-03-19 14:07:59 -07:00
snandini
2d7fca9065 Release 2.0.8.13H
Release 2.0.8.13H

Change-Id: Ic8bfbc3e9897fa6d44dc557c8f5118882268073a
CRs-Fixed: 774533
2021-03-18 16:33:09 -07:00
Srinivas Dasari
66e31edc30 qcacld-3.0: Choose a valid vdev_id to post set_hw_mode command
Currently, vdev_id 0 is chosen as default vdev_id in
opportunistic_timer_handler when none of the vdevs are started.
The same is used to send set_hw_mode command. But vdev_id 0 might
not be valid all the time and set_hw_mode command fails in
serialization module in such cases.
Below is one possible scenario,
1. Load the driver. p2p0 gets vdev_id 0 and wlan0 gets vdev_id 1
2. Enable NAN and create two NDIs. p2p0 interface(vdev_id-0) will
   be deleted by userspace as part of this.
3. Disable NAN and remove the NDIs. It triggers opportunistic_timer
   but hw_mode won't be set to SMM as the vdev corresponds to
   vdev_id-0 doesn't exist.
So, choose a valid vdev_id(mostly belong to STA/NAN) as default
vdev_id.

Change-Id: I19bd00a07cb2c818af9ed5021b0ae0aca8c49f2f
CRs-Fixed: 2889404
2021-03-18 16:33:09 -07:00
Abhishek Ambure
95b20719d9 qcacld-3.0: Fill wma req before pdev_set_dual_mac cmd sent to fw
Presently host prepares and fills wma req in wma_hold_req_queue
after sending pdev_set_dual_mac command to FW. Host uses same wma
request to process response from firmware. If host gets FW response
before filling wma request to wma_hold_req_queue, host fails to
process pdev_set_dual_mac cmd response. And thus the wma request
queued after sending pdev_set_dual_mac command gets timeout.
Hence prepare and fill wma req in wma_hold_req_queue before sending
pdev_set_dual_mac command to firmware.

Problem scenario:
1) Host send pdev_set_dual_mac cmd to fw in kworker thread and then
   gets suspend before filling wma req into wma_hold_req_queue.
2) Host gets pdev_set_dual_mac cmd response from fw and schedular
   thread runs to process response where it doesn't get wma request.
3) Now kworker thread gets scheduled and fill wma req and gets
   timed out.

Change-Id: I4d32e4459c32843c8fdb9a48262b5a55eecf2cbd
CRs-Fixed: 2902212
2021-03-18 16:33:05 -07:00
abhinav kumar
5821833f15 qcacld-3.0: BTM resp print is coming with all zeros
Host need to print BTM resp TLV info (wmi_roam_btm_response_info)
only when trigger reason is BTM or WTC_BTM. As for other roam
triggers this TLV contains zeros, so host should not print.

Change-Id: Ic76a1b88b9e641745420c372b275392e86d4ba35
CRs-Fixed: 2884639
2021-03-18 16:33:00 -07:00
snandini
d9b55dbb41 Release 2.0.8.13G
Release 2.0.8.13G

Change-Id: I0dce2093aad83ba013dfc71f06b0ac9455e8237a
CRs-Fixed: 774533
2021-03-18 11:23:19 -07:00
Bapiraju Alla
fbed5b3e52 qcacld-3.0: Reject pre CAC request when DBS is not supported
Pre CAC feature requires parallel operation in 2.4GHz and 5GHz.
So this feature won't be supported when there is no DBS support.
Reject pre CAC request in this scanario.

Change-Id: Iece04ac0f73aed2dfa1dd9bfd4869d96004534ce
CRs-Fixed: 2870645
2021-03-18 11:23:19 -07:00
snandini
8c1cbba938 Release 2.0.8.13F
Release 2.0.8.13F

Change-Id: I4aa32c3c996515a82d7b593e366d52b2fcb31493
CRs-Fixed: 774533
2021-03-18 04:40:19 -07:00
Abdul Muqtadeer Ahmed
e4219805a9 qcacld-3.0: Add new WMI wakeup reason
Add the new WMI wakeup reason “WOW_REASON_FATAL_EVENT_WAKE".

Change-Id: I93b530f78f568fa88cb310c5d78cd950451fc441
CRs-Fixed: 2868523
2021-03-18 04:40:19 -07:00
sheenam monga
5279c143ee qcacld-3.0: Add support to extract big data params
Add wmi support to extract params from
WMI_VDEV_SEND_BIG_DATA_P2_EVENTID.

Change-Id: I728c9eb407084bff2a6c1baec44e8bb12b989124
CRs-Fixed: 2889875
2021-03-18 04:40:14 -07:00
snandini
5b56f7d2ae Release 2.0.8.13E
Release 2.0.8.13E

Change-Id: I4ddaa91b25f80afa7705b909a242aaa8a3118a34
CRs-Fixed: 774533
2021-03-18 02:26:39 -07:00
Abdul Muqtadeer Ahmed
120775a664 qcacld-3.0: Add a new feature to support forced dtim
Add vendor command interface/feature through which the user
or vendor can set the dtim count as per their requirement.

Change-Id: I26010948c4ed7e3c49bfe0453119235d4f438c6f
CRs-Fixed: 2894349
2021-03-18 02:26:38 -07:00
snandini
f9604d472b Release 2.0.8.13D
Release 2.0.8.13D

Change-Id: Ifd89268024fd5c3d62d7f20dbad5a4074abda29c
CRs-Fixed: 774533
2021-03-18 00:09:03 -07:00
Lincoln Tran
5a9c4a55a7 qcacld-3.0: Fix scenario for updating the country
When updating the country to be the same value, the function will return
failure. This causes a crash in the wifi start up. Add check to see if
the country code is the same to avoid calling the API.

Change-Id: I7be11857fd9cc87b65f6c598d842a9ed5c024f59
CRs-fixed: 2896855
2021-03-18 00:09:03 -07:00
snandini
c0d7d8fac7 Release 2.0.8.13C
Release 2.0.8.13C

Change-Id: Id9aec049a30b1aa6b36905aaaba6ac8645a4b287
CRs-Fixed: 774533
2021-03-17 21:42:20 -07:00
Lincoln Tran
8cae35a511 qcacld-3.0: Fix freq calculation in TPE processing
When processing the TPE IE from, the function has to calculate the
frequencies for each tx power it receives. The calculation is incorrect
which results in a bad lookup when populating the EIRP power value.
This can cause low throughtput issues.

Change-Id: Id854f678bd3933ab1a7198b346ed14d76d964360
CRs-fixed: 2896985
2021-03-17 21:42:19 -07:00
snandini
74c9f1c822 Release 2.0.8.13B
Release 2.0.8.13B

Change-Id: Ife2b756cda30e0c623219c6895384a8359b22980
CRs-Fixed: 774533
2021-03-17 19:30:52 -07:00
Bapiraju Alla
feea654265 qcald-3.0: Increase max number of allowed whitelist SSIDs count
Increase MAX allowed number of whitelist SSIDs count to 8

Change-Id: Ic74abeb82876966ce4aedee9f7a4681f17217d63
CRs-Fixed: 2900486
2021-03-17 19:30:52 -07:00
Liangwei Dong
ab69c2507a qcacld-3.0: Disable force SCC to DFS channel if DFS master disabled
If DFS master capability disabled, STA+SAP SCC on DFS is not allowed,
so reset g_sta_sap_scc_on_dfs_chan to 0.

Change-Id: I90b0ec6947f5bc24c9854062f443de0d1f6dc452
CRs-Fixed: 2897719
2021-03-17 19:30:47 -07:00
snandini
106ad99a1f Release 2.0.8.13A
Release 2.0.8.13A

Change-Id: I9e4db4a9e7cc5a50122cc745834cf2fc1539623d
CRs-Fixed: 774533
2021-03-17 03:13:04 -07:00
Abhishek Ambure
2ca655012a qcacld-3.0: Set OCV flag in wiphy ext feature
Host checks if firmware advertises Operating channel validation(OCV)
support bit in service ready then updates OCV flag in wiphy ext feature.

Change-Id: I92f872a07e6f7142e602e6a9e5f5edcecc0aab0b
CRs-Fixed: 2880821
2021-03-17 03:13:04 -07:00
snandini
08ee2d158f Release 2.0.8.13
Release 2.0.8.13

Change-Id: Ieab8565ddca8f33cf173f0b640ad98a066bfda33
CRs-Fixed: 774533
2021-03-16 21:09:29 -07:00
Lincoln Tran
4db6263088 qcacld-3.0: Send TxBF in NAN case
Currently, the code is not sending the Tx beamforming capability to FW
in the case of NAN. Add this call to support beamforming in NAN mode.

Change-Id: I32af660724cfaecfe59da153fea9f98d24b0d4cb
CRs-fixed: 2889614
2021-03-16 21:09:29 -07:00