Commit Graph

20647 Commits

Author SHA1 Message Date
sheenam monga
de799e364a qcacld-3.0: Consider he params from beacon if missing in assoc resp
Issue: Currently, host calculates he_caps based on assoc resp
he caps. In case assoc resp doesn't have he_caps host will
set peer mode vht and vdev mode he which may cause issue due
to different peer and vdev modes.

Fix: Consider beacon he params if he params not present in
assoc resp to keep vdev and he param same.

Change-Id: Id3df1eae85d30334d5d877c6ddd737989813f7c8
CRs-Fixed: 2769783
2020-09-04 18:53:39 -07:00
snandini
33c5314198 Release 5.2.0.201L
Release 5.2.0.201L

Change-Id: I6bbae6df6e872a29ab6da9ff5238c62b3afdea08
CRs-Fixed: 774533
2020-09-04 11:42:12 -07:00
Yeshwanth Sriram Guntuka
0515d4be15 qcacld-3.0: Reset dfs_cac_block_tx flag on channel switch event
After the pre-CAC is done, SAP is switched to DFS channel. Post
this if a radar event is received, tx is blocked for the vdev
and channel switch to non-DFS channel is triggered. The
dfs_cac_block_tx flag is not reset on successful channel switch
to non-DFS channel causing packets received from network stack
to be dropped.

Fix is to reset dfs_cac_block_tx flag on receiving channel
switch response event.

Change-Id: I4e5fe0490d4c81b45c648a50c0b8508a7c11fa5a
CRs-Fixed: 2764008
2020-09-04 11:42:12 -07:00
Abhishek Singh
8d182461d5 qcacld-3.0: Fix whunt reassoc TC with ROAM_OFFLOAD_V1
Fix whunt reassoc TC with ROAM_OFFLOAD_V1.

Change-Id: I020b9c7f5a0da8ae8cf17e875bf1f40db240ca0c
CRs-Fixed: 2769761
2020-09-04 11:42:05 -07:00
snandini
9afb952076 Release 5.2.0.201K
Release 5.2.0.201K

Change-Id: I319445165d97d1961ab995e11534f58e17ccb365
CRs-Fixed: 774533
2020-09-04 05:28:19 -07:00
Abhinav Kumar
267c385f2b qcacld-3.0: Enable SU Bformee in vendor VHTIE by default
Set default value of INI enable_subfee_vendor_vhtie to 1
to enable SU Bformee in vendor VHTIE by default.

Change-Id: I8a916495dd5c6ddfe78840dc6f35976fbdbbf8ba
CRs-Fixed: 2769257
2020-09-04 05:28:19 -07:00
snandini
94b0c1c692 Release 5.2.0.201J
Release 5.2.0.201J

Change-Id: I7329e0f1491c91b266cfc3343a51886c8b2ca207
CRs-Fixed: 774533
2020-09-03 23:29:58 -07:00
wadesong
0427a3aaac qcacld-3.0: Fix some whunt build errors
1) In function hdd_process_genie(), there is a chance for
   the 2 incoming parameters, encrypt_type and
   mc_encrypt_type, not initialized due to an error
   condition.

2) Remove some of the local variables that are not used
   anymore in the following functions:

   __wlan_hdd_cfg80211_del_station
   hdd_features_init
   hdd_cleanup_present_mode
   hdd_update_regdb_offload_config
   __wlan_hdd_cfg80211_scan
   hdd_softap_stop_bss

Change-Id: If719b0fc4b09dc5fc88479a4a5ce327ebbc00168
CRs-Fixed: 2768860
2020-09-03 23:29:58 -07:00
snandini
24f7277391 Release 5.2.0.201I
Release 5.2.0.201I

Change-Id: I40d60fa60a60c5fd41886b72c34f03acde289848
CRs-Fixed: 774533
2020-09-03 21:30:24 -07:00
Ashish Kumar Dhanotiya
345f131dc4 qcacld-3.0: Update current sta info inside lock
Currently when next sta info get is done, the for loop updates
current sta info outside of the lock, which may lead to
undefined behavior.

To address above issue update the current stats info inside
the lock.

Change-Id: Idf33b9271379d34696f35c714bdf2d42446bd688
CRs-Fixed: 2755355
2020-09-03 21:30:24 -07:00
Amar Singhal
d5f37aa8bd qcacld-3.0: Calculate secondary channel frequency properly
While calling wlan_reg_set_channel_params_for_freq, calculate
secondary channel frequency properly.

Change-Id: I1fef09d47774eab12f774d86e8eced983bccd366
CRs-Fixed: 2766702
2020-09-03 21:30:19 -07:00
Will Huang
762cc0fd12 qcacld-3.0: Remove condition never will hit
Variable roam_now in function csr_neighbor_roam_process_handoff_req()
is initialized as 0 and never be assigned a new value, so it will
always fall to csr_scan_for_ssid() when roaming happen with LFR2.0
enabled.

CERT case MBO-5.2.6 requires BTM reassociation happen within a short
time, otherwise AP will disassociate it and fails this case, it takes
more time if we do roaming scan after BTM response and roaming
candidate bss is ready.

When it is propagated from legacy branch, roam_now is a return value
from csrNeighborRoamProcessScanResults(), but after converged, this
function has no return value, and none zero roamable_ap_count can
indicate candidate ap is ready and we can roam now.

Change-Id: I5f2bd85abf0f7c1488ae729fc48332a92b4d133d
CRs-fixed: 2762476
2020-09-03 21:30:15 -07:00
snandini
311890e3b2 Release 5.2.0.201H
Release 5.2.0.201H

Change-Id: I5a02afb4092c9743576ffdfc8acb3b56c92d1a34
CRs-Fixed: 774533
2020-09-03 19:27:31 -07:00
Pragaspathi Thilagaraj
36907e74d5 qcacld-3.0: Add changes to send WMI_CHAN_LIST_CMD in connection mgr
Add changes to send WMI_CHAN_LIST_CMD in connection mgr

Change-Id: I79f96c400314be4e8a0b1aad5ecfe04e638d552d
CRs-Fixed: 2768812
2020-09-03 19:27:30 -07:00
Wu Gao
571fda61f9 qcacld-3.0: Fix typo about LFR configurations
This is a change for typo about LFR configuration. It uses ini -
"mawc_roam_ap_rssi_threshold", the correct is
"mawc_roam_rssi_high_adjust".

Change-Id: I7e29287b84559f58f13d191d6288534196b894da
CRs-Fixed: 2768752
2020-09-03 19:27:26 -07:00
Srinivas Girigowda
8fb7e79124 qcacld-3.0: dp: Remove redundant __func__ from the logs
The logging macros implicitly takes care of embedding function name
in the log, hence there is no need to include __func__ again.
Getting rid of redundant __func__ reduces driver memory footprint.

Change-Id: I878671f03be0727bca3bca5dfd82eae4e353c6e1
CRs-Fixed: 2768575
2020-09-03 19:27:23 -07:00
Srinivas Girigowda
87b638fadb qcacld-3.0: Remove redundant __func__ from the logs
The logging macros implicitly takes care of embedding function name
in the log, hence there is no need to include __func__ again.
Getting rid of redundant __func__ reduces driver memory footprint.

Change-Id: Idf4685539991f65205f19b27551cef699230c82e
CRs-Fixed: 2768575
2020-09-03 19:27:18 -07:00
Sandeep Puligilla
e15b17acf0 qcacld-3.0: Kbuild change to enable interface manager
Build file changes to compile interface manager files

Change-Id: I8370e49853d83a6b8adcc130d7aa92ead00f4ff5
CRs-Fixed: 2759251
2020-09-03 19:27:14 -07:00
snandini
5f50b5e329 Release 5.2.0.201G
Release 5.2.0.201G

Change-Id: If43f8d556374736fcb5dfb5d10147133cd8d8c83
CRs-Fixed: 774533
2020-09-03 15:25:00 -07:00
Abhishek Ambure
346c895e6d qcacld-3.0: Clean up station stats for get station vendor cmd
User requests station stats using QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO
command. Presently host request peer stats from FW when user request
station stats for STA mode. FW doesn't support peer stats for STA mode.
Hence clean up the code for get station vendor command for STA mode.

Change-Id: Ie815690edae543dbedbf73f13c4c157197efad87
CRs-Fixed: 2768301
2020-09-03 15:25:00 -07:00
gaurank kathpalia
cb27dfd2e4 qcacld-3.0: Add support for sme_abort_roaming for ROAM_OFFLOAD_V1
Adds support for sme_abort_roaming for ROAM_OFFLOAD_V1.
Also fix compilation error for ROAM_OFFLOAD_V1.

Change-Id: I06247b1118b7dee32ff392b247e2e08e32dbaf9f
CRs-Fixed: 2768397
2020-09-03 15:24:56 -07:00
Sachin Ahuja
0dc264f36e qcacld-3.0: Search class from global opclass also
While querying for the channel width, the opclass is
extracted from the country opclass. If opclass is not
found then 20Mhz channel width is considered for connection.
This fails the cert test case when AP sends the global
opclass in ECSA.

Change is done to search in the global opclass if the
opclass is not found in the country specific opclass.

CRs-Fixed: 2768075
Change-Id: I24b585af7174a31fe800d6453bbfe18dc5f24af1
2020-09-03 15:24:52 -07:00
snandini
f0a8792a0d Release 5.2.0.201F
Release 5.2.0.201F

Change-Id: I59ccba529a519093992b6d6008e05d1ae18eaec4
CRs-Fixed: 774533
2020-09-03 04:04:03 -07:00
Ashish Kumar Dhanotiya
918c7e4c07 qcacld-3.0: Add feature flag for line number logging
Currently line number is not useful in the logs and to print
the line number consumes lot of memory in driver text area size.
To reduce the driver size add feature flag to enable/disable
line number logging in the driver.

Change-Id: Ie11e3425cb61edad09c0da0337d0daa18e2a56d6
CRs-Fixed: 2766244
2020-09-03 04:04:03 -07:00
snandini
11ce7680ea Release 5.2.0.201E
Release 5.2.0.201E

Change-Id: I6414feee03424d465387aa0de07e6632649c2362
CRs-Fixed: 774533
2020-09-03 01:58:21 -07:00
Min Liu
f928593fb2 qcacld-3.0: Add QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT
Add QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT

Change-Id: I0c44109b678c8886869752940d5dc600ad7a4e9e
CRs-Fixed: 2758487
2020-09-03 01:58:21 -07:00
Bapiraju Alla
b47ae637aa qcacld-3.0: Remove unnecessary error prints in get channel callback
Remove error prints in get_channel callback. These prints are
filling up the kmesg and don’t provide any info.

Change-Id: I224b53ebe73c803b2ff9c2e9512af9eab53f8d79
CRs-Fixed: 2767148
2020-09-03 01:58:17 -07:00
snandini
9cf77e05ef Release 5.2.0.201D
Release 5.2.0.201D

Change-Id: Ie0fb646e80881f8d95b54f5768eb4c1fcc55f6ff
CRs-Fixed: 774533
2020-09-02 23:51:54 -07:00
Yeshwanth Sriram Guntuka
9ce83d4015 qcacld-3.0: Set type to NLA_NESTED for DATA_PKT_INFO attribute
DATA_PKT_INFO attribute has type set to u32 in the
driver NL policy while wifihal has the type set to
NLA_NESTED. This results in the NUD stats set request
to not reach driver.

Fix is to set DATA_PKT_INFO attribute type to NLA_NESTED.

Change-Id: Iba8e69a1fc017df65f30b441e4d6d3862ffc2263
CRs-Fixed: 2765559
2020-09-02 23:51:54 -07:00
gaurank kathpalia
6cb80095fc qcacld-3.0: Cleanup assoc disallowed related code
Cleanup legacy assoc disallowed related code
and take the params from connection manager.

Also update the connection manager config in
case of change of config in relation to
assoc disallowed.

Change-Id: I558b5b7f3b3c422d2882630d16e0f3dfd1898d09
CRs-Fixed: 2767490
2020-09-02 23:51:50 -07:00
snandini
cfac506fe9 Release 5.2.0.201C
Release 5.2.0.201C

Change-Id: Ice42ef97bf94a120a78d811e27126c41b639f56e
CRs-Fixed: 774533
2020-09-02 13:51:29 -07:00
Nisha Menon
60960c90b1 qcacld-3.0: Map IPA tx buffers as part of IPA ready callback
Register IPA ready callback with IPA driver. The callback
sets ipa_is_ready flag in the host driver and kick starts
the ipa init sequence as part of which the Tx buffers are
mapped to IPA.
None of the IPA APIs are invoked until IPA ready registration
is complete.

Change-Id: I4dda8fd083c71400532139174f834b757e05e5a6
CRs-Fixed: 2752235
2020-09-02 13:51:29 -07:00
snandini
e6f63c46f5 Release 5.2.0.201B
Release 5.2.0.201B

Change-Id: Idfbd9e0743e4a9b4c11d3999c026fcc4090fcbc6
CRs-Fixed: 774533
2020-09-02 06:52:37 -07:00
Abhishek Ambure
32e06f1124 qcacld-3.0: Add support to set/reset BLM suspend state
Once host sends WMI_WOW_ENABLE_CMDID then host components must not send
any WMI command to FW. In suspend state if host sends WMI command then FW
crashes.
Hence add support to set/reset suspend state of Blacklist manager.
Thus Blacklist manager checks the suspend state and then only sends WMI
command to FW.

Change-Id: I2581d38a485c4f930a6e2dfb951c0fdc2306fa3b
CRs-Fixed: 2765404
2020-09-02 06:52:36 -07:00
snandini
4ecf9d0ce3 Release 5.2.0.201A
Release 5.2.0.201A

Change-Id: Id13e7e011c882e73bce84b80585b0cebf2700e36
CRs-Fixed: 774533
2020-09-02 00:21:03 -07:00
gaurank kathpalia
249f7a6467 qcacld-3.0: Take care of hw mode change in Connection mgr
Set hw mode before initiating connection request
and send vdev start to FW.

Change-Id: I76e17465b3e40762df62d6c08deb9066ff98a6a7
CRs-Fixed: 2763362
2020-09-02 00:21:03 -07:00
snandini
701f38f6ff Release 5.2.0.201
Release 5.2.0.201

Change-Id: I77e1a4008e20c6d3e0b22115e46307e970b481a3
CRs-Fixed: 774533
2020-09-01 22:20:38 -07:00
Abhinav Kumar
aad917a899 qcacld-3.0: Remove unused INI gFirstScanBucketThreshold
Currently INI: gFirstScanBucketThreshold is not used
while LFR2/LFR3 roaming.

Remove unused INI gFirstScanBucketThreshold

Change-Id: Ifa909fc57d3ac3da696369fcffc390826f393b44
CRs-Fixed: 2767372
2020-09-01 22:20:38 -07:00
snandini
d211305a4b Release 5.2.0.200Z
Release 5.2.0.200Z

Change-Id: I41010c5fcaa4d76f04531585c77951891d675e26
CRs-Fixed: 774533
2020-09-01 20:21:27 -07:00
Utkarsh Bhatnagar
617c89ade1 qcacld-3.0: Limit the BA window buffer size
In case where peer itself exhibits BA window size more
than the allowed value, crash can happen. So, limit the
BA window size to maximum allowed BA buffer size in case
peer BA req buffer size is more than it.

Change-Id: Ie695b9787b555616a5443077147d4bc3a3aefb78
CRs-Fixed: 2766363
2020-09-01 20:21:27 -07:00
Utkarsh Bhatnagar
cfa6d18bcf qcacld-3.0: Remove redundant logging in sir_convert_beacon_frame2_struct
Remove redundant log prints in sir_convert_beacon_frame2_struct()

Change-Id: I21fff68bb683209393d0daf6ed48c9f05c6d4b9c
CRs-Fixed: 2767421
2020-09-01 20:21:22 -07:00
snandini
07e3361cc5 Release 5.2.0.200Y
Release 5.2.0.200Y

Change-Id: Ia559f72f3353501c6cc5559e10f4653d7ca4fc2e
CRs-Fixed: 774533
2020-09-01 18:14:30 -07:00
gaurank kathpalia
178c824347 qcacld-3.0: Have a kernel version check in BIGTK support
Check for kernel version along with feature support
for BIGTK feature support.

Change-Id: Ife033276a7464656a0ba027af0c6e0bf05480ebe
CRs-Fixed: 2763296
2020-09-01 18:14:30 -07:00
Wu Gao
8022a5b74e qcacld-3.0: Only update channel list for STA mode
When DUT as STA and connected to 2G band AP, and trying to connect to
2G band P2P GO as P2P client. It filters out all 2G band before get
scan result. which casue P2P connection failed. So won't call
wlan_cm_dual_sta_roam_update_connect_channels and allow 2G channels
if opmode isn't STA. This change removes codes about getting filter
for NULL profile case since pProfile has been checked and it won't be
NULL.

Change-Id: I9e83e25c19740a3eebc460af0a660b1315556b4f
CRs-Fixed: 2762443
2020-09-01 18:14:26 -07:00
Pragaspathi Thilagaraj
170c20e443 qcacld-3.0: Add support for roam scan mode command in connection mgr
Add changes to send roam scan mode over RSO start/stop/update_cfg
from connection manager. Update the roaming params and roam scan
params to new structure.

Refine send_roam_scan_offload_mode_cmd_tlv().

Change-Id: I6adce2e8a24ece93a079032d0e66760393fcdccd
CRs-Fixed: 2766023
2020-09-01 18:14:21 -07:00
Arun Kumar Khandavalli
b971c50f23 qcacld-3.0: configure sgi through cfg80211
Add the cfg80211 configuration support for sgi

Previously the bitrate mask is added via the iwpriv

iwpriv wlan0 shortgi 8

will be configured via below through iw

iw dev wlan0 set bitrates ht-mcs-2.4  7 sgi-2.4 8

Change-Id: I31d4ff34fd55c74e814fc23b2960bf36e645da72
CRs-Fixed: 2760059
2020-09-01 18:14:17 -07:00
Utkarsh Bhatnagar
87f20e8d31 qcacld-3.0: Consider only self capability for RRM
Do not update the RRM capabilities based on the peer
association response frame as it is a self capability.

Also, in case of passive scan for RRM beacon report, add
10 ms to the dwell time so that chances of receiving
beacon increases.

Change-Id: I2230e9b08996093cd6f312b5c48d84645d8895c8
CRs-Fixed: 2760810
2020-09-01 18:14:13 -07:00
gaurank kathpalia
a1e965e789 qcacld-3.0: Change PCL for throughput case in case of STA+GO
Currently the driver goes for SCC when STA is
present on 2.4Ghz and the GO comes up.

In case the user wants throughput then
GO should go for VHT80 in 5ghz even in
case of STA present on 2.4ghz so that
it leads to better throughput.

Change-Id: I211858b42d3de407f6047609f966f95720644109
CRs-Fixed: 2763812
2020-09-01 18:14:09 -07:00
snandini
b8de2ffeeb Release 5.2.0.200X
Release 5.2.0.200X

Change-Id: Id5a17e3dbff33b6ced011d8c0f19741ecfda8a4f
CRs-Fixed: 774533
2020-09-01 14:23:49 -07:00
Bapiraju Alla
c9daf6161f qcacld-3.0: Update channel self Rx time to the user space
Currently, channel rx time is not being updated to user space as
part of link stats. Instead channel tx_time is being overwritten
with the same value. Due to this user space is not getting channel
rx_time in the link stats.

Update channel rx time in the channel link stats.

Update representation of tx_time and rx_time in the ll_stats debugfs
output to align with other stats.

Change-Id: I850adb11169eb24c81f1e31a4ff498f4e20ab9c6
CRs-Fixed: 2765485
2020-09-01 14:23:49 -07:00