Commit Graph

18743 Commits

Author SHA1 Message Date
Chaoli Zhou
37019b515c qcacld-3.0: Add vendor command support for GPIO Configuration
Add vendor command support for GPIO configuration.
It adds wma wrapper functions to send wmi command
for GPIO configuration, which are called by cfg80211
API in hdd layer
Change-Id: I9a02072afaab893d12fc9c991c8265b5aa19cd75
CRs-Fixed: 2753571
2020-10-08 15:33:40 -07:00
snandini
8f764b0895 Release 5.2.0.205K
Release 5.2.0.205K

Change-Id: I5180491a4dc604c0e7d526d03ff6c8dcf5ab071a
CRs-Fixed: 774533
2020-10-08 12:23:47 -07:00
Bapiraju Alla
6008b9db41 qcacld-3.0: Send unified ll_stats and get_station request over qmi
Send unified ll_stats and get_stats request over qmi based on INI
configuration.

Change-Id: I0c8f9e6ccb7a4a1588a8086c610ab29f58dfdcd7
CRs-Fixed: 2791039
2020-10-08 12:23:46 -07:00
snandini
974b1d5c52 Release 5.2.0.205J
Release 5.2.0.205J

Change-Id: If5daf1380ee1fff1fa74913cb7114780039aa6d8
CRs-Fixed: 774533
2020-10-07 21:42:22 -07:00
Pragaspathi Thilagaraj
4822851798 qcacld-3.0: Fix RSN not included in FILS connection
When the FILS erp keys are available, the RSN IE is
not included in the assoc request as the function
lim_update_fils_config() returns always if rrk_length is
non zero. Fix this to return only if malloc fails.

Also add additional debugs for RSN IE not included in FILS
authentication frame and remove call to
wlan_cm_update_mlme_fils_connection_info() from
update_profile_fils_info().

Change-Id: I75cc1b04c2fdcbf3e7c55dfac41254a2378233bb
CRs-Fixed: 2789793
2020-10-07 21:42:21 -07:00
snandini
602802fda0 Release 5.2.0.205I
Release 5.2.0.205I

Change-Id: Ib891476d2c5fc5b03aacede1070828a8a5a801ef
CRs-Fixed: 774533
2020-10-07 15:16:18 -07:00
Guisen Yang
7608656e86 qcacld-3.0: Change ROME IPA pipe names
With IPA team's request, in order to match
the pipe setting in the ipa driver of linux
kernel 4.14, we need to change ROME IPA
pipes from IPA_CLIENT_WLAN1_CONS and
IPA_CLIENT_WLAN1_PROD to IPA_CLIENT_WLAN3_CONS and
IPA_CLIENT_WLAN3_PROD. Meanwhile change MCC pipe
to IPA_CLIENT_WLAN2_CONS. Also add one feature
flag to avoid affecting other SPs

Change-Id: I99dd442801b1278742c19e4565da2201e1303607
2020-10-07 15:16:18 -07:00
snandini
fbc1f7a06c Release 5.2.0.205H
Release 5.2.0.205H

Change-Id: I32fd24fd98ff35202138a199c6541baa1da291cd
CRs-Fixed: 774533
2020-10-07 09:26:37 -07:00
snandini
b06d0d28f7 Release 5.2.0.205G
Release 5.2.0.205G

Change-Id: Ib6522d795a41c9fad912c697ce13f677eb101eca
CRs-Fixed: 774533
2020-10-06 23:56:55 -07:00
Jinwei Chen
6e2754da8a qcacld-3.0: Debug same FISA flow frames ring mismatch issue
If same FISA flow frames goes into different REO2SW rings, this will
introduce unexpected FISA behavior result in different issue.
Add assert for DEF build to catch this issue early then easy to
debug further, for PERF build, stop FISA aggregation if REO2SW ring
mismatch happened.

Change-Id: I5320133a9b289fe63a727ac2a5cf4c7c19c19224
CRs-Fixed: 2785871
2020-10-06 23:56:55 -07:00
snandini
c1455e7ecd Release 5.2.0.205F
Release 5.2.0.205F

Change-Id: Id80fd10cf213047de7ac4ddad1c624f6ffa303de
CRs-Fixed: 774533
2020-10-06 19:31:29 -07:00
Rajasekaran Kalidoss
ff2450a4f1 qcacld-3.0: Handle new status code for already suspended TWT session
Firmware sends a new status code to indicate an already suspended
TWT session. Handle this error code and return
QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED to userspace.

CRs-Fixed: 2786986
Change-Id: I7111128c908c14058e5ed0ef94c2eabc778d38bb
2020-10-06 19:31:29 -07:00
Pragaspathi Thilagaraj
050500b032 qcacld-3.0: Fix lim deferred messages not getting processed
When channel Switch is happening and north bound disconnect is
also initiated at same time before vdev restart response is
received, the disconnect command will be activated by serialization
module but the eWNI_SME_DEAUTH_REQ message to lim was deferred.
The deferred message queue at lim was not processed as there was
no wmi command response received.

So process the deferred messages after the gLimProcessDefdMsgs
is set to 1.

Change-Id: I8200407663857349ea2eef0924fe1c345fab8028
CRs-Fixed: 2789632
2020-10-06 19:31:25 -07:00
Utkarsh Bhatnagar
f33c6a7e34 qcacld-3.0: Remove HIDDEN_SSID_RESTART_RSP msg type
Remove SIR_HAL_HIDDEN_SSID_RESTART_RSP and
WMA_HIDDEN_SSID_RESTART_RSP as they aren't used
anywhere.

Change-Id: I89b70786cfc40ad7c781d3ad7e058edcaadfa127
CRs-Fixed: 2791880
2020-10-06 19:31:21 -07:00
snandini
4d6d06542d Release 5.2.0.205E
Release 5.2.0.205E

Change-Id: I6153c80aaca04794a39b6b7266a05069225413e8
CRs-Fixed: 774533
2020-10-06 16:58:08 -07:00
Utkarsh Bhatnagar
83aa989ed4 qcacld-3.0: change HAL msg type macros to enum
The HAL msg type that were defined as macros are converted
to enum halmsgtype. This is done as it is difficult to parse
macros directly in any post processing script.
Since, driver maintains a global list of messages (qdf trace)
which different modules posts to each other. For processing
these list of messages in a common post processing script,
it is required to convert the macros to enum as enum are
easy to process in the script.

Change-Id: I3938ff02a54a2fca9e831ea1f8d9389e8b54df01
CRs-Fixed: 2719659
2020-10-06 16:58:08 -07:00
snandini
eed6ecf04e Release 5.2.0.205D
Release 5.2.0.205D

Change-Id: I2c2c964690b93dac8010d6738c622f073f60b95a
CRs-Fixed: 774533
2020-10-06 14:24:30 -07:00
gaurank kathpalia
65a9397c93 qcacld-3.0: Update BW in case of 2.4ghz ACS
The ini gChannelBondingMode24GHz specifies
that should the driver go for 40Mhz BW
in case of 2.4ghz or not by doing channel
bonding. If disabled (value 0) then driver
is supposed not to pick up 40Mhz for 2.4ghz
channels.
Currently in ACS request if there are 2.4ghz
channels only or in other sceanrios such as
concurrency where other channels are stripped
out, there may become a case where only 2.4ghz
are left out in the freq list which comes from
hostapd, the BW is not updated accordingly and
the results for ACS may still give the BW as 40
in case of 2.4ghz channel selection.

Fix is to modify the BW according to the ini
if there are only 2.4ghz frequencies present
so that driver limits the same while informing
the best channel to the hostapd.

Change-Id: Ib49726bf5e4245a63a696e41fee1d12d9a7a7909
CRs-Fixed: 2789358
2020-10-06 14:24:29 -07:00
snandini
27c43894cf Release 5.2.0.205C
Release 5.2.0.205C

Change-Id: I5683f4cdc51ada6be85f70870acf4c2e7d682d49
CRs-Fixed: 774533
2020-10-06 06:50:33 -07:00
snandini
c7fcfb004f Release 5.2.0.205B
Release 5.2.0.205B

Change-Id: I11614a2e90ead9545163b5b7b26b712362399284
CRs-Fixed: 774533
2020-10-06 04:10:52 -07:00
Abhishek Ambure
af02d10731 qcacld-3.0: Add support to send wfa test config to FW
User sends wfa test configs to host using vendor command
QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Host parses the
vendor command and sends wfa test configs to FW using WMI command
i.e. WMI_WFA_CONFIG_CMDID

Change-Id: I5aa0bc8b0a0064828b48368e47d53a5ad5e7ff2f
CRs-Fixed: 2772013
2020-10-06 04:10:51 -07:00
Ashish Kumar Dhanotiya
7497c7ca6d qcacld-3.0: Add support to handle multiple radio stats event
Currently driver can handle only one radio stats event,
if the size of radio event exceeds more than the size which
can be accommodated in single WMI event in that case FW needs
to send multiple radio stats events.

Add support in host to process multiple radio stats events.

Change-Id: Id2c86f83458d92478fe8d48e1159e2d17c129f58
CRs-Fixed: 2771109
2020-10-06 04:10:47 -07:00
Yu Tian
bf2cbb2761 qcacld-3.0: Flush only GRO when bus change to idle
GRO queue more pkts is enabled in bus vote low, when
bus vote back to idle, these frames may not flushed to
stack, use force flush to reduce latency.

This change I22b5cf994fe02b7e3156a845ee13a5acbf791b22
added FISA flush too, however FISA currently is not handled
in concurrent context, which leads to access violations.

Change-Id: Ia682ec80a196fb913455c63bd165b0a5184b94b7
CRs-Fixed: 2786842
2020-10-06 04:10:43 -07:00
snandini
9f622f902e Release 5.2.0.205A
Release 5.2.0.205A

Change-Id: Iee677d402e30e6ffffadde432d21eb51fec20ed0
CRs-Fixed: 774533
2020-10-06 01:28:08 -07:00
snandini
bb52985b6c Release 5.2.0.205
Release 5.2.0.205

Change-Id: I7473cd05aeb82ff6f9b2deaf15348c2f3e46a334
CRs-Fixed: 774533
2020-10-05 17:50:16 -07:00
gaurank kathpalia
a63f950985 qcacld-3.0: Add public API to get the adaptive 11r capability
Adds public API to get the adaptive 11r capability.

Change-Id: Idaa06d76b68cbce00c63d893dd2c99c8712afc48
CRs-Fixed: 2791138
2020-10-05 17:50:16 -07:00
Abdul Muqtadeer Ahmed
b97b53d237 qcacld-3.0: Avoid use after free for SAP dev
There is a race between regulatory callback from restart SAP and
user space deleting the SAP dev, which can result into access of a
free adapter.

To avoid the above issue the SAP dev should be held before it gets
delete and release after the operation on SAP dev gets complete.

Change-Id: Idf7fc2adeb74ac62d2a63d8bc3ae0b1a0568693c
CRs-Fixed: 2789448
2020-10-05 17:50:12 -07:00
Vevek Venkatesan
bbcf12c70d qcacld-3.0: add cdp ops for IPA Tx buf smmu_unmapping
Add cdp ops for IPA Tx buf SMMU-S1 unmapping and
call unmap from ipa_uc_ol_deinit if IPA uc_loaded,
also assert if mapping/unmapping failed.

Change-Id: I79f293fcf5d6f02e3a01d6c8ff829f4ca87e76e8
CRs-Fixed: 2788811
2020-10-05 17:50:08 -07:00
snandini
35097f574b Release 5.2.0.204Z
Release 5.2.0.204Z

Change-Id: I127b0121f2e803fb2a016f6bd96e440082c90c01
CRs-Fixed: 774533
2020-10-04 23:42:26 -07:00
Veerendranath Jakkam
1a5c9ec6ef qcacld-3.0: Resolve compilation error with 5.7 kernel
With kernel commit "2552d35 - PM: QoS: Rename things related to
the CPU latency QoS", the PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE is
renamed to PM_QOS_CPU_LATENCY_DEFAULT_VALUE.

Update the same in the driver to resolve compilition issues due
to above kernel commit.

Change-Id: I522ebd2802397f6644fecb064971a6480dd9733b
CRs-Fixed: 2788971
2020-10-04 23:42:26 -07:00
snandini
bf675b651a Release 5.2.0.204Y
Release 5.2.0.204Y

Change-Id: I49aa7e49753021a6e4fe9e443b78bbd54fb316d0
CRs-Fixed: 774533
2020-10-02 06:47:18 -07:00
Arun Kumar Khandavalli
b2375e8ce9 qcacld-3.0: Serialize psoc idle shutdown and restart via PLD
Serialize psoc interface inactivity idle shutdown and restart via PLD
such that platform driver can serialize psoc idle shutdown and restart
to driver unload and SSR events to avoid any race conditions.

Change-Id: I177a60eaf83b1c81f08cab2dc8a6bc1497484809
CRs-Fixed: 2776866
2020-10-02 06:47:18 -07:00
Saket Jha
43094a430b qcacld-3.0: Add check for valid last_skb before aggregation
In the FISA UDP aggregation path, flush may be initiated while trying to
add nbuf to end of the list. When flush happens, both head_skb and
last_skb will be set to NULL so make sure last_skb is valid before
adding nbuf to end of the list.

Change-Id: I473540a205c56f2fea3ffb82909cfec31c58a518
CRs-Fixed: 2783758
2020-10-02 06:47:14 -07:00
snandini
516bf73a1d Release 5.2.0.204X
Release 5.2.0.204X

Change-Id: Ia895291949be3fcd81ecd09e12a726989a9fbfce
CRs-Fixed: 774533
2020-10-02 03:37:58 -07:00
Alan Chen
34a13e2033 qcacld-3.0: Add missing nla_policy attributes for VENDOR_SUBCMD_ROAM
Add missing nla_policy attributes for vendor command
QCA_NL80211_VENDOR_SUBCMD_ROAM.

Change-Id: Id834dc14b61c3cf0f4fff1dc332217b1a2a640e7
CRs-Fixed: 2786045
2020-10-02 03:37:57 -07:00
Nirav Shah
032e69194a qcacld-3.0: Enable host optimization for latency based on WLM mode
Enable host optimization for latency based on WLM mode
and ini configuration.

Change-Id: I67f49493f623287d0e420dab379d2d0116603ced
CRs-Fixed: 2789141
2020-10-02 03:37:52 -07:00
Nirav Shah
c3b707bd8d qcacld-3.0: Remove dependency between pm_qos request and LL_MODE
Currently request for pm_qos is defined under
WLAN_FEATURE_LL_MODE. Remove dependency between
two functionality.

Change-Id: I5aac06f28d3546ddfbb521ae20073bf8e05e550e
CRs-Fixed: 2789135
2020-10-02 03:37:46 -07:00
snandini
6d15362c22 Release 5.2.0.204W
Release 5.2.0.204W

Change-Id: I5a91784e41e3ab803a55de2a3a371f87ee144dab
CRs-Fixed: 774533
2020-10-01 23:58:26 -07:00
Nirav Shah
ca13d6a540 qcacld-3.0: Add support to request QoS in low latency mode
Add support to request QoS in low latency mode
with CLD_DEV_PM_QOS feature.

Change-Id: I928825545e88a2e869d23c20542fc7e32bcec00e
CRs-Fixed: 2789111
2020-10-01 23:58:20 -07:00
snandini
423f0ab755 Release 5.2.0.204V
Release 5.2.0.204V

Change-Id: I2884befb3f6ab6772f66100f66d733ae926352d3
CRs-Fixed: 774533
2020-10-01 21:20:39 -07:00
hqu
8b43074f9c qcacld-3.0: Fix compile error for LFR2 when CM_ROAM_OFFLOAD enabled
Fix compile error for LFR2 when CM_ROAM_OFFLOAD enabled.

Change-Id: Ia8a346a93c4b46e1a2daaed426a271d5f9e1f3e3
CRs-Fixed: 2786503
2020-10-01 21:20:38 -07:00
Rajasekaran Kalidoss
7baa7b0782 qcacld-3.0: Add boundary check for next twt size
Next twt size values can be 0 to 3. Add boundary check
for next twt size.

CRs-Fixed: 2786224
Change-Id: I2ee0a1ffcf3f2227ca2e3daed7069326992bc15a
2020-10-01 21:20:34 -07:00
Rajasekaran Kalidoss
1bc3122569 qcacld-3.0: correct the wrong structure used for add and del twt
Correct the Wrong command structure used for cmd_params in
sme_add_dialog_cmd and sme_del_dialog_cmd.

CRs-Fixed: 2785748
Change-Id: Ief2344c61e40ab9b180ceafd02f97ad974f798e1
2020-10-01 21:20:30 -07:00
snandini
ee63ee4e2d Release 5.2.0.204U
Release 5.2.0.204U

Change-Id: I90e0d00bfc50451474974f4aa131eda334537160
CRs-Fixed: 774533
2020-10-01 19:08:48 -07:00
Vevek Venkatesan
0bd4c940e4 qcacld-3.0: fix the error accessing hdd_ctx without NULL check
Fix the error of accessing the hdd context pointer without
NULL check.

Change-Id: Ifbb2ffcd2c4270a96cbad97bf3c320702cf6bc12
CRs-Fixed: 2788159
2020-10-01 19:08:48 -07:00
Jianmin Zhu
77f915b7ea qcacld-3.0: Can't restore to 5G channel when 5G re-enabled
If 5G band disabled, all channels of 5G should be disabled, before SAP
switch to 2G channels, we need save original 5G channel, or when 5G
re-enable,  can't restore back to original 5G channel.

Regression of change-Id: I679ce6f72228b431530953a631c8c8afa4597187.

Change-Id: Iabb932102c37cc7b9d4d97a2e22e781958ed906f
CRs-Fixed: 2789341
2020-10-01 19:08:45 -07:00
snandini
88cf9b318b Release 5.2.0.204T
Release 5.2.0.204T

Change-Id: I359cb32bcb1b400840820c71628f1c193add48e3
CRs-Fixed: 774533
2020-10-01 16:57:58 -07:00
gaurank kathpalia
1fbd7b0de6 qcacld-3.0: use enum wlan_status_code for wlan status code
Use the new enum wlan_status_code for wlan status code and
remove enum mac_status_code.

Change-Id: If42cfdcf99d34ffa77be53382d02288ab8637c10
CRs-Fixed: 2789000
2020-10-01 16:57:57 -07:00
snandini
5d0d3f2124 Release 5.2.0.204S
Release 5.2.0.204S

Change-Id: Ibd18b009ff2ce06bd644fd3a80d87a2d2a36c3ce
CRs-Fixed: 774533
2020-10-01 14:40:44 -07:00
snandini
577a274700 Release 5.2.0.204R
Release 5.2.0.204R

Change-Id: I18cae1b41152559c8caebeb7c3908db4ac832d28
CRs-Fixed: 774533
2020-10-01 12:28:47 -07:00