Commit Graph

22968 Commits

Author SHA1 Message Date
Liangwei Dong
a2a1425d04 qcacld-3.0: Check channel bond mode for 2.4G ACS
If 2.4G 40MHz is disabled by channel bond mode ini -
gChannelBondingMode24GHz, override 2.4G ACS result
to 20Mhz channel width. Otherwise hostapd will
start ap failed on 40Mhz channel because the HE cap
has no 40Mhz bw supported.

Change-Id: I943621bf847491983f0654f7ae495fc970114575
CRs-Fixed: 2951620
2021-05-26 23:13:10 -07:00
Madan Koyyalamudi
ad952e7749 Release 5.2.0.234V
Release 5.2.0.234V

Change-Id: I856a70c27914b8589680a92d92921dc6acd72c63
CRs-Fixed: 774533
2021-05-26 21:09:02 -07:00
Srinivas Girigowda
5a04deba8b qcacld-3.0: Add support for SAP TWT teardown
Add support for SAP TWT teardown.

Change-Id: I108ea425e69e07ee8a3657ca5afcb436420b2626
CRs-Fixed: 2944872
2021-05-26 21:09:02 -07:00
Madan Koyyalamudi
30037b525d Release 5.2.0.234U
Release 5.2.0.234U

Change-Id: Id83f0cde7a955500ba2ffcec08d7b1b6dc5deaa7
CRs-Fixed: 774533
2021-05-26 09:20:42 -07:00
Ashish Kumar Dhanotiya
cc3c67977d qcacld-3.0: Add ini support to enable NAN on indoor channels
Currently there is no  support to enable NAN on indoor channels,
as per the new requirement add an ini support to enable NAN on
indoor channels.

Change-Id: Ia3acbc133cab4865d8ad69992e893be91439f50f
CRs-Fixed: 2943668
2021-05-26 09:20:42 -07:00
Madan Koyyalamudi
9eb4979aac Release 5.2.0.234T
Release 5.2.0.234T

Change-Id: Ie5b399fb9ed4f89eaf461a1d8507655e9137b475
CRs-Fixed: 774533
2021-05-26 05:02:16 -07:00
Paul Zhang
6d8e6743e9 qcacld-3.0: fix congestion overflow issue
1\ Since (rx_clear_count_delta - tx_frame_count_delta) * 100 maybe
overflow if rx_clear_count_delta and tx_frame_count_delta are uint32.
To resolve this issue, change uint32 to uint64.
2\ Since the previous data does not reset, then enable the congestion
feature again. It uses the old data and causes overflow.

Change-Id: I1c7d5f5be901e14424a70dd2931acb2175598199
CRs-Fixed: 2943725
2021-05-24 17:21:29 +08:00
Madan Koyyalamudi
0dc2b79dc8 Release 5.2.0.234S
Release 5.2.0.234S

Change-Id: Ie3df2624e718aec61ab1473518df5d1b2302ccb3
CRs-Fixed: 774533
2021-05-20 12:51:56 -07:00
Pragaspathi Thilagaraj
754e1ce493 qcacld-3.0: Fix incorrect marking
Fix incorrect marking.

Change-Id: I2a1b1db91e5bb4efa516cf8a559ee78f4c38eed6
CRs-Fixed: 2949091
2021-05-20 12:51:55 -07:00
Madan Koyyalamudi
0dd49b6fd2 Release 5.2.0.234R
Release 5.2.0.234R

Change-Id: Ie6713963e09d0ec378743fdf5eb54f309a31f16f
CRs-Fixed: 774533
2021-05-20 10:02:16 -07:00
sheenam monga
3ea09842f6 qcacld-3.0: Avoid comparison of two different enums
Currently, reg_wifi_band enum is compared with
enum band_info. different values may lead to
invalid chan mode.

Fix is to compare reg_wifi_band with reg_wifi_band
enum value only.

Change-Id: Ibbe83ab5a8a428528bbeb28c941552a6f412a844
CRs-Fixed: 2949501
2021-05-20 10:02:16 -07:00
Bapiraju Alla
30ecff7940 qcacld-3.0: Don't set SURVEY_INFO_NOISE_DBM when noise floor is zero
Currently host is sending noise floor as 0, even if channel info
event is not received from FW. This is stopping user space derive
noise floor information from other parameters like bandwidth.

To address this, do not set SURVEY_INFO_NOISE_DBM flag if the
noise floor is 0.

Change-Id: Icffdde6bce762c750200b4f1eefd17818780150e
CRs-Fixed: 2949905
2021-05-20 10:02:11 -07:00
Madan Koyyalamudi
8141e4fa79 Release 5.2.0.234Q
Release 5.2.0.234Q

Change-Id: I71c42b1ee29f99a6705b6ef067c318470a2f6718
CRs-Fixed: 774533
2021-05-20 05:56:45 -07:00
Srinivas Dasari
60d8f5cc85 qcacld-3.0: Don't set the hw_mode to SMM if connection is in progress
Currently, hdd_vdev_destroy checks if any vdev is actively using
DBS while cleaning up the vdev. It stops the timer and sends set
hw_mode command to firmware to set the hw_mode to SMM if no vdev
is using DBS.
This causes delay in p2p interface down in below scenario,
1. Bring up both sta and p2p vdevs.
2. Initiate connection on sta to an AP which has both 2GHz and
   5GHz candidates. hw_mode would be set to DBS as one of the
   candidate is 2GHz.
3. Connection would be attempted first on 5GHz candidate if the
   5GHz candidate score is good.
4. If p2p interface is disabled while sta connection is happening,
   it stops the opportunistic timer and sets the hw_mode to SMM.
   But the command would be waiting in serialization queue as
   connect command is active currently. This is a blocking call
   and userspace thread would be stuck till connection completion/
   connection timeout(5 seconds) happens.

The above wait results delay in p2p down which in turn results
delay in wifi turn-on(as p2p down+set random mac+p2p up happens
as part of wifi turn on) and turn-off.

Don't set the hw_mode to SMM in this case as the sta connection
is in progress.

Change-Id: If286fe9bd9906eba71686cf1d50880aa065cc100
CRs-Fixed: 2926272
2021-05-20 05:56:45 -07:00
Madan Koyyalamudi
9b53e0da74 Release 5.2.0.234P
Release 5.2.0.234P

Change-Id: I29a581e81aa0f74616df738ecfabda1cc49c4356
CRs-Fixed: 774533
2021-05-20 00:55:53 -07:00
Gururaj Pandurangi
3f71a3b72a qcacld-3.0: Update Country IE to show correct number of 6G channels
Update Country IE population API so that SAP uses secondary current
channel list instead of primary, to advertise correct number of
6G channels.
One other change is in TPC power calculation API, to add STA role
check along with lim join req check, since the API was returning
without calculation for SAP.

Change-Id: I3fafe252b119a5b58f5382fcbff60eb4c19688c6
CRs-Fixed: 2946474
2021-05-20 00:55:53 -07:00
Madan Koyyalamudi
f4044a1bc2 Release 5.2.0.234O
Release 5.2.0.234O

Change-Id: I1f5aa30ce5559f959f6d45c55604ee72b3fa96b8
CRs-Fixed: 774533
2021-05-19 14:37:50 -07:00
Arun Kumar Khandavalli
add1f46a2b qcacld-3.0: Remove obselete wma_needShutdown code
wma_needShutdown related code is now obselete, during the cds_preenable
failure, this is obselete code is being invoked which is setting
wma->needShutdown. If the same is set the wma_close will not be
inokved resulting in the reference leak of of pdev object.

Remove obselete wma_needShutdown code.

Change-Id: Ia1463c9197593165eb5844e154f78fe3fe278fbd
CRs-Fixed: 2947133
2021-05-19 14:37:49 -07:00
Pragaspathi Thilagaraj
077006a020 qcacld-3.0: Add new roam scan type string
Add new roam_scan type string to indicate all the 5G+6G
channels are scanned.

Change-Id: I8f77b9b28d5b544d586612e177c86a3b730b0bd9
CRs-Fixed: 2947645
2021-05-19 14:37:43 -07:00
Madan Koyyalamudi
211537ee7c Release 5.2.0.234N
Release 5.2.0.234N

Change-Id: I7788f327f97dc2c875053ad7b3bbae2633dac842
CRs-Fixed: 774533
2021-05-19 12:25:58 -07:00
bings
c36a42ec1c qcacld-3.0: Add support for max channel switch time IE
Update the driver implementation to support generation and parsing of
information elements corresponding to max channel switch time.

Change-Id: Icaf3d1ceb17972da13e0cd0510fa952fac5c0f45
CRs-Fixed: 2941960
2021-05-19 12:25:58 -07:00
Manikanta Pubbisetty
cd716119a6 qcacld-3.0: consider aggregated packets for packet drop
Currently, in the DP RX thread packet drop logic, the aggregated
packet as a whole is considered as one single packet. An aggregated
packet can hold anywhere between 2-16 packets, considering it as
a single packet will make the entire drop logic incorrect.

Consider all packets in the aggregate while computing the number of
enqueues & dequeues to fix the problem.

Change-Id: I70e65bcdfdbaf7821b36606ac6eeae61eaca7406
CRs-Fixed: 2948104
2021-05-19 12:43:52 +05:30
Madan Koyyalamudi
3b4264a7c9 Release 5.2.0.234M
Release 5.2.0.234M

Change-Id: I9ec6e97fa5b9a1475dc29a5caea73972280bb3a2
CRs-Fixed: 774533
2021-05-18 18:51:42 -07:00
Srinivas Dasari
32f991772f qcacld-3.0: Remove third-party vendor name from comments
Vendor name is mentioned in the below fix to address an
interoperability issue with the specified make and model,
commit:I0d205e0833b2638aab15401bacdef7a0696d40c2

But specifying the vendor name is not allowed as nothing from
this fix/feature is authorized by the vendor.
So, remove the vendor name from the comment section.

Change-Id: Ib5839667dc1809a57ab54169e5506080b977da63
CRs-Fixed: 2948503
2021-05-18 18:51:42 -07:00
Madan Koyyalamudi
db554dc824 Release 5.2.0.234L
Release 5.2.0.234L

Change-Id: Ief70f49442f7a4ac0a045037188bedc7adef8706
CRs-Fixed: 774533
2021-05-18 12:41:55 -07:00
Utkarsh Bhatnagar
919f560858 qcacld-3.0: Fix HO fail handling when received without roam start
If HO fail/ roam abort is received without any roam start indication
the roam command will not be present in connection manager, so
continue with cleanup even when roam command is not present in these
cases.

Change-Id: I0ff3307b4d4ba96cc3b0c413fd0a41be47e9c588
CRs-Fixed: 2948064
2021-05-18 12:41:55 -07:00
Abhishek Ambure
ef93e8f89a qcacld-3.0: Update OFDM rates only if oper freq is 5GHz
In PE session, host updates supported rates from beacon IE stored
in BSS descriptor. If OFDM rates are present in beacon while
operating frequency is not from 5GHz band, host copies them into
PE session's supported rated.
Hence add a check to avoid adding OFDM rates while operating
frequency is not 5GHz.

Change-Id: Ia3b39b31269b79e6d1f96d3a0bddb185597c0303
CRs-Fixed: 2948058
2021-05-18 12:41:50 -07:00
Madan Koyyalamudi
ce1483ffbd Release 5.2.0.234K
Release 5.2.0.234K

Change-Id: I85c4874b2f025fccec671e79c15db6e2473f3363
CRs-Fixed: 774533
2021-05-18 08:29:17 -07:00
Abhishek Ambure
6465076021 qcacld-3.0: Add OCI IE in SA Query request
Add OCI IE in SA Query request, if host and the peer both OCV capable.
If both host and peer are OCV capable and host doesn't add OCI IE SA
Query request, peer fails to send SA query response that leads to
disconnection.

Change-Id: I734a4bea04dbe2126082e4e514b9865d33575fd0
CRs-Fixed: 2946244
2021-05-18 08:29:17 -07:00
Deeksha Gupta
565e6a7d76 qcacld-3.0: Support for TWT SAP get_status query command
Add support for TWT get_status command in SAP

As part of this change, TWT get_status command is supported
if
1. If particular dialog_id and particular mac_addr are
   present
2. If dialog_id = 0 and particular mac_addr are present
3. If no parameter present

Change-Id: I5ce1719da7f9a3988ba6e1f04455a06faf9687c6
CRs-Fixed: 2937999
2021-05-18 08:29:11 -07:00
Utkarsh Bhatnagar
76866c0712 qcacld-3.0: Use cm_is_open_mode() API to check for open security
Use cm_is_open_mode() API to check for open security.

Change-Id: I4d960ee781ee63e73f19f0d5e223fd49c01ba728
CRs-Fixed: 2947818
2021-05-18 08:29:05 -07:00
Madan Koyyalamudi
fe7af8cf8f Release 5.2.0.234J
Release 5.2.0.234J

Change-Id: I71965e3ce43bced1b11ed1d07e8cbac436f02059
CRs-Fixed: 774533
2021-05-18 06:24:35 -07:00
Deeksha Gupta
ee2e556362 qcacld-3.0: Add new parameter in add_dialog_policy
Add support for mac_addr parameter in add_dialog_policy

Change-Id: I085a0003a66a5497018674edaf4ef71ed001583b
CRs-Fixed: 2947832
2021-05-18 06:24:35 -07:00
Manikanta Pubbisetty
4af598a24d qcacld-3.0: add TX packet threshold for DP SWLM
Add TX packet threshold while considering for TX write
coalescing. This helps improve low throughput TCP DL &
UL cases.

Change-Id: I9503a0b28a58dcaddbb08f3a98479bb31cd95285
CRs-Fixed: 2931051
2021-05-18 06:24:31 -07:00
Madan Koyyalamudi
17889c36c1 Release 5.2.0.234I
Release 5.2.0.234I

Change-Id: I31b0ac98eaeb24e1e4d5ced9cf759de5ee0a6d4a
CRs-Fixed: 774533
2021-05-18 04:07:55 -07:00
Tiger Yu
1aa4e36c7e qcacld-3.0: Do not reset CONFIG_IPA3 if target is QCA6390
Do not reset CONFIG_IPA3 if target is QCA6390 to avoid mismatch between
Kbuild & qca6390_defconfig.

Change-Id: Iffe2976576a653a145a15cf798737569be116ec3
CRs-Fixed: 2946663
2021-05-18 04:07:55 -07:00
Tiger Yu
f146a1208c qcacld-3.0: Enable SMMU S1 unmap config for QCA6390
Enable SMMU S1 unmap config flag to do SMMU unmap of
IPA TX/RX doorbell registers as part of IPA cleanup.

Change-Id: I2e6e5312fb54841fde89db64071ded965c1c1bd1
CRs-Fixed: 2855099
2021-05-18 04:07:51 -07:00
Jia Ding
b3b2f0a498 qcacld-3.0: Add 320MHz support in HDD
As part of 11BE 320MHZ bandwidth support, add 320MHz
in HDD layer.

Change-Id: Ibf39b8ff314d9b3a9a2c8ccc0739374c2caeb82a
CRs-Fixed: 2935883
2021-05-18 04:07:46 -07:00
Surya Prakash Sivaraj
1eb074d4a3 qcacld-3.0: Validate the duration and interval for P2P_SET_NOA
The following are the firmware expectations for the parameters
through p2p_set_noa:
If count > 1 , the duration should be smaller than interval.
If count = 1, the duration can be same or smaller as interval.
Hence, set the duration as interval if it is configured
greater than interval.
This commit adds the checks accordingly.
Fails the command if the above conditions do not pass.

Change-Id: Ic273b0167c3551cd4b21d4c6dc7f31ba5329bebc
CRs-Fixed: 2941170
2021-05-18 04:07:42 -07:00
Madan Koyyalamudi
4dd6995df4 Release 5.2.0.234H
Release 5.2.0.234H

Change-Id: Id52ce62e29d2c836963cd545d95238cac7a1f637
CRs-Fixed: 774533
2021-05-17 23:43:36 -07:00
Tiger Yu
91d2958518 qcacld-3.0: Reset iface_context to NULL if max IPA interfaces reached
Reset iface_context to NULL if max IPA interfaces reached to avoid to
cleanup the wrong interface context when setup IPA interface failure.

Change-Id: I2f19d62b9f76f826c2275a0d889b5f5a0a48a01f
CRs-Fixed: 2931966
2021-05-17 23:43:36 -07:00
Madan Koyyalamudi
79f3a39921 Release 5.2.0.234G
Release 5.2.0.234G

Change-Id: I6188005c353c08feb08323614e9a68270f3729ba
CRs-Fixed: 774533
2021-05-17 18:55:54 -07:00
sandhu
7ab9c3057e qcacld-3.0: Add flags for HTT HTC tx based completion on lithium
Added flag for HTT HTC tx based completion. currently
packet are freed using htt htc misc list.

Change-Id: I2e7e4d59cadf30f4bb14eaefc045240d1ebc1aaa
CRs-Fixed: 2922547
2021-05-17 18:55:54 -07:00
Madan Koyyalamudi
dd95a7aff0 Release 5.2.0.234F
Release 5.2.0.234F

Change-Id: I2c009886b114ccd0239f3f958a967c8db9ab55bb
CRs-Fixed: 774533
2021-05-17 16:52:28 -07:00
Liangwei Dong
7de7abf90a qcacld-3.0: Fix sap started on unsupported channel
In wlan_hdd_validate_operation_channel, "status" is override
to QDF_STATUS_SUCCESS after "ucfg_mlme_get_sap_allow_all_channels"
call. Reset "status" to QDF_STATUS_E_INVAL before checking
with supported channel list, otherwise QDF_STATUS_SUCCESS
will be returned for unsupported channel case.

Change-Id: Ibc3396eb89634b0efc77262e90427510d26e0f39
CRs-Fixed: 2946475
2021-05-17 16:52:28 -07:00
Madan Koyyalamudi
6b70862ab1 Release 5.2.0.234E
Release 5.2.0.234E

Change-Id: I03a365b02eafbe933f99f932ee1f4c2df13ad6be
CRs-Fixed: 774533
2021-05-17 13:03:58 -07:00
Lincoln Tran
42e337a873 qcacld-3.0: Restore default power mode when not in 6GHz
When starting SAP, the power mode is set to VLP to comply with
regulatory rules. There is no need to set this when starting SAP in
2GHz or 5GHz bands, so restore the power mode back to LPI. This
allows any concurrent operations to work on the full channel list.

Change-Id: Ic6270d9cf3e20e544a3dbaf4db8bbe1d85753c83
CRs-fixed: 2942809
2021-05-17 13:03:58 -07:00
Madan Koyyalamudi
6dc6e7f951 Release 5.2.0.234D
Release 5.2.0.234D

Change-Id: I11caf5e1a18dfd8cd37e1534b6551a1cf2ca308b
CRs-Fixed: 774533
2021-05-17 03:10:25 -07:00
Ashish Kumar Dhanotiya
41e3dfc713 qcacld-3.0: Add support to accept frequency for ch switch command
Currently channel switch command accepts only channel number as
parameter but with 6GHz changes channel switch can come for the
6GHz channel as well and to support 6GHz channel switch frequency
needs to be accepted as parameter.

To address above issue add support to accept frequency as
parameter for channel switch command.

Change-Id: I38978348c0d70e3e860d4644b4664f8775ecb777
CRs-Fixed: 2931485
2021-05-17 03:10:25 -07:00
Will Huang
920016e72f qcacld-3.0: Update num_transmit_power_env before packing probe response
num_transmit_power_env of tDot11fProbeResponse should also update like
tDot11fBeacon2, otherwise default value is 0, and transmit power
envelope IE(195) will not pack into probe response template.

Fix it by updating num_transmit_power_env of tDot11fProbeResponse to
same as tDot11fBeacon2.

Change-Id: I865ba9d9ad96068c52d3d6434b113cb7662e95c6
CRs-Fixed: 2933031
2021-05-17 03:10:20 -07:00