Commit Graph

18148 Commits

Author SHA1 Message Date
nakul kachhwaha
dcd3e2a624 qcacld-3.0: Add weightage to valid non-pcl channels
In scenarios where p2p is going to be the first connection,
while performing group negotiation, pass up the allowed non-pcl
channels with valid weight so that supplicant can include these
channels as well during negotiation.
Passing interface mode to policy_mgr_get_valid_chan_weights and
populating the channel list based on policy_mgr_is_concurrency_allowed
api for the given mode and assign WEIGHT_OF_NON_PCL_CHANNELS for all
allowed channels.

Change-Id: I8ff08163e6490642f9c2ebd9ca08f1275a2bb1b8
CRs-Fixed: 2734756
2020-07-31 07:43:28 -07:00
snandini
9a3c6c6682 Release 5.2.0.196A
Release 5.2.0.196A

Change-Id: I0f56c163bde5a825f9c344e4ab56cdfcc46ab278
CRs-Fixed: 774533
2020-07-31 03:44:45 -07:00
Arun Kumar Khandavalli
c4ead2606e qcacld-3.0: check for firmware state during the init sequence
During the init sequnce host and firmware exchange the capability
messages, if there is any timeout driver currently induces the fatal
to debug the issues.

If the reason for the timeout is beacaue is because of firmware is
already recovering gracefully return resulting in probe failure.

Change-Id: I487aeae23db37a0ad2d991bae113b221e19a439a
CRs-Fixed: 2742638
2020-07-30 22:15:49 +05:30
snandini
94e093ac4d Release 5.2.0.196
Release 5.2.0.196

Change-Id: Ieb9896324fdeb4502963010a1826a4b4d4763821
CRs-Fixed: 774533
2020-07-30 02:05:43 -07:00
Will Huang
2b266c257a qcacld-3.0: Add roam scan stop reason check to support LFR2.0 BTM
If it is LFR2.0 roaming and BTM trigger, original procedure is always
stopping roaming scan with reason REASON_OS_REQUESTED_ROAMING_NOW,
After roaming stop configured, it will check the stop reason and post
eWNI_SME_ROAM_SCAN_OFFLOAD_RSP to invoke host handover to new AP.

Currently the roaming scan logic is changed, if roaming scan not in
enabled state, it will not invoke roaming scan stop, so host handover
cannot invoke when BTM.
And even roaming scan was enabled, the stop reason was override to
REASON_SME_ISSUED in csr_post_rso_stop(), also cannot invoke handover.

Fix it by check the stop reason against REASON_OS_REQUESTED_ROAMING_NOW,
which indicate it is LFR2.0 reassociation invoked by supplicant.

Change-Id: I39a84d06b9c696179da1b854985a23b874a399c5
CRs-Fixed: 2737888
2020-07-30 02:05:43 -07:00
snandini
a4e3dccdef Release 5.2.0.195Z
Release 5.2.0.195Z

Change-Id: Ia6486ff5bd927a045ff0eacacd3a7748b12dfb27
CRs-Fixed: 774533
2020-07-29 15:42:52 -07:00
Kiran Kumar Lokere
61be3ced4f qcacld-3.0: Fix the user power save config settings
Set the user power save configuration setting in NL power save
command handler.

Change-Id: I8f4d1955071af08a5c0511a4c01c46d79e70e1b0
CRs-Fixed: 2743237
2020-07-29 15:42:52 -07:00
snandini
97dfd6654d Release 5.2.0.195Y
Release 5.2.0.195Y

Change-Id: If327b0967c53ea75a3f3b56e8f9128520c81e5b2
CRs-Fixed: 774533
2020-07-29 13:41:14 -07:00
Alan Chen
20dc484032 qcacld-3.0: Add changes to trigger PCIe gen speed change
Add changes to trigger PCIe gen speed change during wifi on.

Change-Id: I0de3b8e73daafafc832968400fd48ee3f9c3b51d
CRs-Fixed: 2742863
2020-07-29 13:41:14 -07:00
snandini
a8def84378 Release 5.2.0.195X
Release 5.2.0.195X

Change-Id: I9d74596a145125efc75406d5925ddba50b14b2b5
CRs-Fixed: 774533
2020-07-29 00:23:16 -07:00
snandini
14641e691c Release 5.2.0.195W
Release 5.2.0.195W

Change-Id: Idc604a33083f26ba50d3e0b1bb998503c01a7abf
CRs-Fixed: 774533
2020-07-28 22:20:07 -07:00
Liangwei Dong
198eb3bdea qcacld-3.0: Fix AP state mismatch between hostapd and driver
AGO/AP is started and beaconing, but the hostapd_cli status cmd still
show "dfs". This will happen when the STA connected on DFS
channel and AGO/AP is starting on same DFS channel.
By design the AGO/AP CAC is skipped due to STA+SAP DFS concurrency.
If we skip CAC timer, we will need to indicate the CAC event
even though driver doesn't perform CAC, otherwise hostapd will
stuck in "DFS" state.

Change-Id: I7961d0b976fd84fc1f29449d98eb150d1463a92f
CRs-Fixed: 2733624
2020-07-28 22:20:06 -07:00
snandini
90bf2af3f6 Release 5.2.0.195V
Release 5.2.0.195V

Change-Id: Ic0cb871235b0dc1b9e6f8fdbaf86f8ee5d952e35
CRs-Fixed: 774533
2020-07-28 15:41:09 -07:00
Kiran Kumar Lokere
222d174cdd qcacld-3.0: Add support to inject disassoc frames
Add support to inject disassoc frames with user configured pmf
options.

Change-Id: I40df805f8d6ef62dab48477c26cb9b0fc6b17929
CRs-Fixed: 2665042
2020-07-28 15:41:05 -07:00
Alan Chen
1b4b46f32f qcacld-3.0: Add a driver module parameter for PCIe gen speed
Add a driver module parameter to configure PCIe gen speed.

Change-Id: Ieab47ec3c2450f503c3c5eda6f5dee4ee70b33e4
CRs-Fixed: 2732188
2020-07-28 15:41:01 -07:00
snandini
675c584a4f Release 5.2.0.195U
Release 5.2.0.195U

Change-Id: I52eb4195e8b8244f16745e7667f78c0de4ca870c
CRs-Fixed: 774533
2020-07-28 13:41:31 -07:00
Subrat Dash
d17ad81d80 qcacld-3.0: Featurize qtimer sync based tsf capture
It will enable periodic capture of tsf and qtime pair.
The qtime will be used as reference for determining
instantaneous tsf.

The 'cat tsf’ command to fetch tsf will print the tsf
at that instant as well along with qtime and host time.

CRs-Fixed: 2736030
Change-Id: I11eb70d4ae710ef2bf50ebee708801fa67d0396c
2020-07-28 13:41:31 -07:00
snandini
8c3223abff Release 5.2.0.195T
Release 5.2.0.195T

Change-Id: I8cec1236f8932fde3884a81c0fcdad8e7b499caa
CRs-Fixed: 774533
2020-07-28 06:29:58 -07:00
sheenam monga
b13ca20247 qcacld-3.0: Add support for missing akm suites
Issue: Currently host supports WLAN_AKM_SUITE_FT_8021X_SHA384,
RSN_AUTH_KEY_MGMT_CCKM and RSN_AUTH_KEY_MGMT_OSEN AKM
in sta mode but doesn't advertise these akm suites which
may cause issue for FT_8021X_SHA384, RSN_AUTH_KEY_MGMT_CCKM
and RSN_AUTH_KEY_MGMT_OSEN supported connection.

Fix: update wiphy->iftype_akm_suites and advertise missing akm
suites.

Change-Id: I43762c38e15746f50f897a6026b1b96fd571ec4d
CRs-Fixed: 2713183
2020-07-28 06:29:58 -07:00
snandini
5545c89c98 Release 5.2.0.195S
Release 5.2.0.195S

Change-Id: I1f73fd586fc3f672c87c969902cbcd98e7f03315
CRs-Fixed: 774533
2020-07-28 00:02:19 -07:00
Kiran Kumar Lokere
14807ac807 qcacld-3.0: Clear roam invoke progress in connect/disconnect
Clear roam invoke in progress flag in connect start and disconnect
events.

Change-Id: I49d64671f74b86c516d286c4b2aad69eda744b52
CRs-Fixed: 2715093
2020-07-28 00:02:19 -07:00
snandini
c2a5f490f9 Release 5.2.0.195R
Release 5.2.0.195R

Change-Id: I558caed1cbeff987943592b036cd9b0e91795a0e
CRs-Fixed: 774533
2020-07-27 22:00:27 -07:00
gaurank kathpalia
b6dc56c8cc qcacld-3.0: Limit the BTM timeout duration for next connection
- Limit the timeout value of the BLM entry if it has big comeback
 value and allow connection to that BSSID.
- Fix the BLM entry time stamp boundary checks.

Change-Id: I07bf7b1fce1c1e8d349c4fc0a9b0fed07f237197
CRs-Fixed: 2741689
2020-07-27 22:00:27 -07:00
snandini
70cd9f5cde Release 5.2.0.195Q
Release 5.2.0.195Q

Change-Id: I541dc75582f5e6bc81e83f93dc5f571da369a265
CRs-Fixed: 774533
2020-07-27 20:00:43 -07:00
Abhinav Kumar
352a22a199 qcacld-3.0: Fix use of Uninitialized Variable
Possible use of uninitialized Variable "report" in
rrm_process_beacon_req.

Fix is to initialize "report" pointer to NULL,
before use.

Change-Id: I1dcbec60b0028d52046ce28836df83a04e2ed830
CRs-Fixed: 2734078
2020-07-27 20:00:43 -07:00
snandini
3685bc1280 Release 5.2.0.195P
Release 5.2.0.195P

Change-Id: I06f4984abed66a54cff40f3be1c426fd4ef8d435
CRs-Fixed: 774533
2020-07-27 18:02:19 -07:00
Sachin Ahuja
e03b460045 qcacld-3.0: Flush the recovery work as a part of idle shutdown
During idle shutdown(T1 Thread), Driver sends the PDEV
suspend command to FW. If ACK is not received, driver initiates
the work for self recovery. As a part of self recovery(T2 thread)
driver allocates  the memory and sends the force fw hang cmd and
wait for the event.
T1 thread continues and stop all the modules and check for mem leaks.
Since t2 thread is not completed and free the memory, the crash
happens as a part of mem leak check.

Fix this race condition by cancelling and flushing the recovery work
in cds close.

CRs-Fixed: 2730021
Change-Id: Ieffff621e0838b341531c5b7feda1277ee4f70fd
2020-07-27 18:02:19 -07:00
snandini
268932238e Release 5.2.0.195O
Release 5.2.0.195O

Change-Id: I2a4f84ef32e828d3d7889b31bf22ad8e8f6f8a19
CRs-Fixed: 774533
2020-07-27 14:01:30 -07:00
Pragaspathi Thilagaraj
eb46090d19 qcacld-3.0: Print current RSSI of AP after roam scan is complete
In wma_get_trigger_detail_str() driver prints the roam trigger
detail for Low rssi and Periodic scan triggers, the RSSI value of
the current AP is the value before roam scan is triggered. But
the firmware considers the rssi of the current AP after roam scan
is complete to calculate the next RSSI threshold. So there could
be mismatch in the current rssi value and next rssi threshold
when roam_info->rssi_trig_data.threshold is used to print the
current AP rssi.

Use roam_info->current_rssi to print the current connected AP
rssi in the roam trigger logging.

Change-Id: Ib154bb3cbdfe13dbcdd8c8830cdafb6daefa34b5
CRs-Fixed: 2739346
2020-07-27 14:01:29 -07:00
snandini
3aa1c07288 Release 5.2.0.195N
Release 5.2.0.195N

Change-Id: Ia20943eda4e6bdc5641ce5834410cd57fd6db24f
CRs-Fixed: 774533
2020-07-27 12:03:11 -07:00
Pragaspathi Thilagaraj
5fb48b5750 qcacld-3.0: Connection manager add ucfg API for sme roam operations
Add changes to handle north bound roaming operations/
configurations in connection manager. Add equivalent connection
manager api for userspace triggered roaming operations & driver
internally triggered roaming offload operations:
sme_enable_roaming() - ucfg_cm_rso_init_deinit : Driver
internally triggered
sme_config_fast_roaming() - ucfg_user_space_enable_disable_rso:
Userspace triggered
sme_start_roaming() - ucfg_cm_enable_rso() - Driver internally
triggered
sme_stop_roaming() - ucfg_cm_disable_rso() - Driver internally
triggered
sme_abort_roam_scan() - ucfg_user_space_abort_roam_scan() -User
space triggered

Change-Id: I65130f69f2afff61b9ef7334ec365d3ce7519930
CRs-Fixed: 2741055
2020-07-27 12:03:11 -07:00
snandini
364c0b641e Release 5.2.0.195M
Release 5.2.0.195M

Change-Id: Id432c26c128ecdcec758eb525ac5febfd78a305b
CRs-Fixed: 774533
2020-07-27 09:03:39 -07:00
Wu Gao
6a576f4039 qcacld-3.0: Use ucfg API to get spectral version
Since there is common API to get spectral version, so use ucfg API to
get spectral version directly and remove unused codes.

Change-Id: Icfd4c68a035166dcaa32478128107249df2c4c95
CRs-Fixed: 2575839
2020-07-27 09:03:35 -07:00
snandini
e85067da20 Release 5.2.0.195L
Release 5.2.0.195L

Change-Id: I986545694c7db9b8addbd39a5044c567a4acae88
CRs-Fixed: 774533
2020-07-27 04:54:12 -07:00
Alok Kumar
6352dafbf6 qcacld-3.0: Force stop bus bw timer during hdd_wlan_stop_modules
Currently, bus bw timer is not stopped if STA disconnection is
timed out. Due to this hdd_bus_bandwidth_deinit fails.

Force stop the bus bw timer during hdd_wlan_stop_modules to avoid
hdd_bus_bandwidth_deinit to fail.

Change-Id: Idcdf011383838f1dc061f3e0f32ada97e617a8c9
CRs-Fixed: 2739304
2020-07-27 04:54:12 -07:00
snandini
9b93826e2b Release 5.2.0.195K
Release 5.2.0.195K

Change-Id: I8f5e852f8f1a720d58b26d4d58ebb9ba66abc116
CRs-Fixed: 774533
2020-07-27 02:42:24 -07:00
snandini
9589e79718 Release 5.2.0.195J
Release 5.2.0.195J

Change-Id: Ia5193ed56f333bd63d66bccb8a3a942a4721966f
CRs-Fixed: 774533
2020-07-26 02:07:59 -07:00
snandini
296b7d56ed Release 5.2.0.195I
Release 5.2.0.195I

Change-Id: I6e139747d9c13bcc577b155b107426556dc713d0
CRs-Fixed: 774533
2020-07-25 06:02:25 -07:00
snandini
d24f29e1a0 Release 5.2.0.195H
Release 5.2.0.195H

Change-Id: I0c92640b977d49817ed1a0122d796a3801a429c8
CRs-Fixed: 774533
2020-07-24 20:01:18 -07:00
Pragaspathi Thilagaraj
48907a3cf6 qcacld-3.0: Set beacon report last fragment after all measurements
As part of beacon report request , currently driver sets last
beacon report indication data field to be 1 for last frame of
every channel. This is incorrect as per spec as the
expectation is to set this only after all channels of all
beacon measurement requests are done.

Add change to set the last beacon report fragment bit only
after measurement is complete on all channels for all the
measurement request index for a beacon report request. If
last channel has empty result and AP supports last beacon
report indication, then send empty report with last beacon
report indication element.

Change-Id: Ic8902b61c5a370ec828022cd73dffdef9eb37f32
CRs-Fixed: 2720249
2020-07-24 20:01:18 -07:00
snandini
89a010c6ef Release 5.2.0.195G
Release 5.2.0.195G

Change-Id: I3c5fb17b610bfae17fa405f3b087126b5118f1dd
CRs-Fixed: 774533
2020-07-24 17:51:11 -07:00
Jianmin Zhu
3e3b907f84 qcacld-3.0: Legacy tx flow control fails and log floods
In DUT sta mode, when tcp/udp stream between sta and PC ethernet at same
subnet, dst mac addr of each tx skb is not bssid, but ethernet mac of the
PC. Since only self peer and bssid peer are created on DUT, the ethernet
mac addr of the PC can't be found from peer list at all by
ol_txrx_peer_find_hash_find_get_ref, ol_txrx_peer_get_ref_by_addr and
ol_txrx_get_vdev_by_peer_addr return NULL. For each tx skb, 2 txrx log
will print and be saved to storage by cnss_diag, throughput is impacted
and LEGACY_TX_FLOW_CONTROL doesn't work too.

Fix: In sta mode, use connected bssid to find dp peer and vdev.

Log sample:
18769633: [soft_i][0x650c858e][08:11:05.109017]wlan: [0:IH:TXRX] PDEV
not found for peer_addr:a0:36:9f:21:18:88
18769633: [soft_i][0x650c85b3][08:11:05.109019]wlan: [0:IH:TXRX]
ol_txrx_get_tx_resource: Invalid peer address: a0:36:9f:21:18:88

Change-Id: Ib87bbe5cbb1c8d0aa31d06b32dc98d9b3b9456b3
CRs-Fixed: 2715377
2020-07-24 17:51:11 -07:00
snandini
7fdb03c063 Release 5.2.0.195F
Release 5.2.0.195F

Change-Id: I9334ca64b04d6e82413dc487c21577b98156f298
CRs-Fixed: 774533
2020-07-24 15:18:02 -07:00
Yeshwanth Sriram Guntuka
ff26ab3fe4 qcacld-3.0: Add support to control GRO per vdev at runtime
Add support to enable or disable GRO per adapter at
runtime based on the ingress qdisc registered for the
net device. Disable GRO when ingress qdisc is configured
and enable GRO when there is no ingress qdisc configured.

Change-Id: Ie9ced2c92d176c040bc44da4cee93db55c6a335a
CRs-Fixed: 2739414
2020-07-24 15:18:02 -07:00
Yeshwanth Sriram Guntuka
84e341f395 qcacld-3.0: Add support to control fisa per vdev at runtime
Add support to enable or disable fisa aggregation per
vdev at runtime.

Change-Id: I4f19e09631de921b3e006fbe026ea728e95e3f83
CRs-Fixed: 2739427
2020-07-24 15:17:59 -07:00
snandini
44f7f0d09f Release 5.2.0.195E
Release 5.2.0.195E

Change-Id: I6a966984b49bb3b5b9f13dd4f14107ba7c15aaba
CRs-Fixed: 774533
2020-07-24 13:10:00 -07:00
snandini
b605d0ab03 Release 5.2.0.195D
Release 5.2.0.195D

Change-Id: I8851fc7c2226306d66eeee7be4e64c092ab27010
CRs-Fixed: 774533
2020-07-24 07:10:11 -07:00
snandini
5f84626eb3 Release 5.2.0.195C
Release 5.2.0.195C

Change-Id: Id03b99c0f24db31dec000130838f8a60f25dd033
CRs-Fixed: 774533
2020-07-24 02:00:57 -07:00
Kiran Kumar Lokere
701a6b6358 qcacld-3.0: Add RRM beacon request support for MBSSID feature
Add RRM beacon request support for MBSSID feature.

Change-Id: Ibe0ce7c2b11b5ee4ee0b9bbe10c8c191e2d40897
CRs-Fixed: 2715104
2020-07-24 02:00:57 -07:00
Kiran Kumar Lokere
be109fb59c qcacld-3.0: Add mandatory security checks for 6GHz connection
Check the required security types allowed for 6GHz connection and
do not allow the connection if the secutiry check fails.

Change-Id: Ic680c4600b3f17151e42f8708ff8810e5d16e52e
CRs-Fixed: 2715086
2020-07-24 02:00:53 -07:00
Wu Gao
5356e7c203 qcacld-3.0: Pass vdev object when starting spectral scan
It starts spectral scan without vdev object, and uses the first vdev
as current vdev. which cause vdev mismatch in some platform. So pass
vdev object when starting spectral scan.

Change-Id: I7571d2f3716079969de872372779aa28d60c82ce
CRs-Fixed: 2716454
2020-07-24 02:00:49 -07:00
snandini
a5086127fb Release 5.2.0.195B
Release 5.2.0.195B

Change-Id: I347e6b16b3aed2787a0583236f73b7f1f45be6fc
CRs-Fixed: 774533
2020-07-23 17:23:55 -07:00
Gururaj Pandurangi
c66e0c9b04 qcacld-3.0: Enable 5.9 ghz channels for US
Add new channel 177 to wiphy struct ieee80211_channel
hdd_etsi13_srd_ch and rename the struct to
hdd_5dot9_ghz_ch.
Add a new ini fcc_5dot9_ghz_chan_in_master_mode to
enable/disable new 5.9 GHz channels 169, 173 and 177
in master mode.

Change-Id: I68dc3be18277ca0e416a579327f406279458899e
CRs-Fixed: 2693707
2020-07-23 17:23:55 -07:00
gaurank kathpalia
00c6081c69 qcacld-3.0: Remove support of BLM in assoc comeback case
Remove the support of BLM in case of assoc
comeback assoc reject as anyway the driver
retries the assoc again after a specific time.

Change-Id: I8b49472d59ab8d41f591159cbf897b2e8c7e877c
CRs-Fixed: 2738544
2020-07-23 17:23:51 -07:00
Manjunathappa Prakash
e456bda47b qcacld-3.0: Add sanity check on FISA aggregate skb->data_len
Add sanity check on head_skb->data_len, head_skb->data_len should be
equal to equal to sum of all frag_skb->len. Assert and drop such invalid
length skb aggregate.

Change-Id: Ie6d2eea1b41fbb2909d34d18d0629844b4be9af3
CRs-Fixed: 2728294
2020-07-23 17:23:47 -07:00
snandini
6488c77960 Release 5.2.0.195A
Release 5.2.0.195A

Change-Id: I66431d015c3367eabac7f2d96a03e232b321b2c6
CRs-Fixed: 774533
2020-07-23 07:00:03 -07:00
Min Liu
05f9fabca5 qcacld-3.0: Replace band_info with reg_wifi_band
Replace enum band_info with reg_wifi_band in APIs to set phy mode
for support of 6GHz.

Change-Id: I834a8ae61270a6e8ee43d15beb0825c21c5a6d06
CRs-Fixed: 2733417
2020-07-23 07:00:03 -07:00
hqu
f36840cce8 qcacld-3.0: Move rso related process to connection manager [PART 2]
Add new code to implement below functions for connection manager
roam part:
WLAN_ROAMING_IN_PROG/WLAN_ROAM_SYNCH_IN_PROG related handler.
Filling below WMI cmd parameters related process:
WMI_VDEV_PARAM_BMISS_FIRST_BCNT
WMI_VDEV_PARAM_BMISS_FINAL_BCNT
WMI_VDEV_PARAM_ENABLE_DISABLE_ROAM_REASON_VSIE
WMI_ROAM_ENABLE_DISABLE_TRIGGER_REASON_CMDID
WMI_ROAM_SCAN_PERIOD

Change-Id: I28439393a57c72012f9de51f24050f95366294bc
CRs-Fixed: 2738353
2020-07-23 06:59:59 -07:00
Bapiraju Alla
ede5f59a27 qcacld-3.0: Add debug infra for sta_info ref count
Host driver uses reference count get and put implementation to
synchronize sta_info access. But it is very difficult to debug issues
where these reference count get and put are not used properly.

To address this, add a debug infra to identify the API where sta_info
ref count get and put handling is incorrect.

Change-Id: If384798f353ee66e149b4caabdc359379c69d072
CRs-Fixed: 2733933
2020-07-23 06:59:56 -07:00
Lincoln Tran
327afe4640 qcacld-3.0: Update from band_info to band bitmap
Currently the band_capabability from mlme_cfg is a bitmap over
reg_wifi_band. Update the checks so that it is compared with
a bitmap, instead of with band_info.

Change-Id: Ibad0231f1f6e5c555e6e5be5a5662fd26c549037
CRs-fixed: 2738440
2020-07-23 06:59:51 -07:00
Lincoln Tran
15a06789ee qcacld-3.0: Add condition for restarting SAP
Currently, when SAP is being restarted on a phymode change,
the logic will run unconditionally. Add a check to see if SAP
is up first before attempting to restart it.

Change-Id: I7c02b3c62d265c6e4989901bc108d53689425f0c
CRs-fixed: 2734308
2020-07-23 06:59:47 -07:00
Rachit Kankane
3c6bd4eed3 qcacld-3.0: Add runtime support for Inter-Band MCC
To handle no-inter-band MCC scenarios for dual MAC non-DBS solutions,
add changes to detect capability at run-time based on service bits.
If the service is set then code for only intra-band MCC will be
exercised.

Change-Id: If62068f8f05c17278d279f36ec11bc9ca123dfbd
CRs-Fixed: 2730359
2020-07-23 06:59:43 -07:00
snandini
9f90d5663f Release 5.2.0.195
Release 5.2.0.195

Change-Id: I60a7bf18cd826c491de66c6e4020c8a119f65a6d
CRs-Fixed: 774533
2020-07-22 21:35:07 -07:00
gaurank kathpalia
7cdc1d2e27 qcacld-3.0: Restructure connection manager structures
Restructure connection manager structures.

Change-Id: I97d1e1cf6ad6f8d4457fbb8370c7345bec64387c
CRs-Fixed: 2737150
2020-07-22 21:35:07 -07:00
Abhishek Singh
e34b54a7b7 qcacld-3.0: Remove older scan filter params
Remove older unused scan filter params and code related to it.

Change-Id: Ia1c9612e2be22ef2dada8be01cc404ec15318359
CRs-Fixed: 2737925
2020-07-22 21:35:03 -07:00
snandini
7d1262b85e Release 5.2.0.194Z
Release 5.2.0.194Z

Change-Id: I12762949f2fd6d3b1d97c3980a173636a9b2d0ca
CRs-Fixed: 774533
2020-07-22 14:02:08 -07:00
Yu Tian
23d1479dd4 qcacld-3.0: enable bus statistics for 3rd party
enable feature WLAN_FEATURE_DP_BUS_BANDWIDTH non MSM
platform.

Change-Id: I968a73e669ff3e6536ee76fa8229dc0a7d9ced2d
CRs-Fixed: 2729947
2020-07-22 14:02:08 -07:00
snandini
de8d41921d Release 5.2.0.194Y
Release 5.2.0.194Y

Change-Id: Ida1e88abf0bca20c9cce0b94ef00ffdaed91e6d1
CRs-Fixed: 774533
2020-07-22 11:55:27 -07:00
Srinivas Dasari
2fa59bd789 qcacld-3.0: Restart NDI adapter as part of SSR
Currently, NDI adapter is not restarted when SSR happens. Start the
adapter as part of recovery so that it creates NDI vdev.

Change-Id: Ifa159b53e7e9571404f1d9cecd62755fe5e8c600
CRs-Fixed: 2707460
2020-07-22 11:55:27 -07:00
Srinivas Dasari
7586ee3a5e qcacld-3.0: Send NAN disable indication to userspace upon SSR
Currently, host driver sends NAN disable request to firmware and
firmware sends NAN disable indication as a response. Host driver
forwards this indication to framework. But when SSR happens,
driver needs to send this NAN disable indication to framework
as firmware lost the NAN context. This allows framework to
initiate NAN again. Send the NAN disable indication with success
status code to framework after recovery.

Change-Id: Ic2139e159f0c1d9c1fb5c39597ce18e0787e809b
CRs-Fixed: 2735047
2020-07-22 11:55:24 -07:00
Yeshwanth Sriram Guntuka
e0fe1711e5 qcacld-3.0: Register STA tx completion cb to update stats
Register STA tx completion callback with dp as part of
vdev registration to update successful ack stats.

Change-Id: I27f36336f0e37d43cc2cdff204c0217667a48b13
CRs-Fixed: 2682020
2020-07-22 11:55:20 -07:00
Yeshwanth Sriram Guntuka
621395dfc7 qcacld-3.0: Send flag as part of tx complete notification
Add support to send tx status flag as part of notify tx
completion.

Change-Id: Ifcfbc6d5e43fc1e7723cd3e2e20e07c2d198a7f9
CRs-Fixed: 2724843
2020-07-22 11:55:16 -07:00
snandini
77d61d4be6 Release 5.2.0.194X
Release 5.2.0.194X

Change-Id: I4559d630f55f6c377da6ea845ff6bb6eb046ffe4
CRs-Fixed: 774533
2020-07-22 07:45:07 -07:00
Abhishek Ambure
271ca1d079 qcacld-3.0: Don't set mon iface chan if iface is down during SSR
After SSR host reinits and as a part of start all adapters host
starts monitor mode and sets the channel. To set the channel for
monitor mode, host send vdev start command to fw, at the same time
host checks for interfaces down during SSR. If the monitor mode is
down during SSR, host stops monitor mode adapter and sends vdev
delete command to fw. As a result, fw doesn't respond to vdev start
command and host receives only vdev delete response. Thus vdev
response timer timeout and host triggers self recovery.
Hence do not set monitor mode channel if monitor interfaces is down
during SSR.

Change-Id: Ia381de3e0797e597158f028d7bded5fc33019150
CRs-Fixed: 2733706
2020-07-22 07:45:06 -07:00
snandini
e304a9d7ff Release 5.2.0.194W
Release 5.2.0.194W

Change-Id: I41995f27c0d609742af510613c58726dc045d43a
CRs-Fixed: 774533
2020-07-22 05:33:21 -07:00
Sachin Ahuja
e9b335d67b qcacld-3.0: Avoid crash when psoc trans is rejected
Crash is seen when the mode change and shutdown happens in
parallel. Mode change is the driver trans and shutdown is a
psoc trans. If mode change is going on and shutdown req comes
then shutddown trans is rejected. Currently driver crashes
whenever psoc trans is rejected.

Avoid BUG_ON when the psoc trans is rejected.

CRs-Fixed: 2732103
Change-Id: Iad1ab4f188702ed581e3b41c1cdef1c495015048
2020-07-22 05:33:21 -07:00
Amruta Kulkarni
9b00b5d67e qcacld-3.0: Associate to 5ghz AP in HE mode
5ghz AP broadcasts beacon frame with no HT caps but
VHT and HE caps are present.STA should connect to AP
in HE mode, but STA connects in 11a mode.Fix is to
check if AP supports HE connect in 11ax mode.

Change-Id: Id9e4f620e395d4ca2617af190b677003d1f9e4cf
CRs-Fixed: 2724747
2020-07-22 05:33:18 -07:00
Abhishek Ambure
6f71dff9a9 qcacld-3.0: Handle disconnect request for SA Query timeout
FW sends a disconnect request to HOST while roaming failure
through event WMI_VDEV_DISCONNECT_EVENTID per vdev id. For disconnect
reason SA query timeout in WMI_VDEV_DISCONNECT_EVENTID, add support
to handle disconnect request from FW.

Change-Id: If911b18476d021bfe62eb10b4db3c2eec2a37743
CRs-Fixed: 2736242
2020-07-22 05:33:14 -07:00
wadesong
4d1b659512 qcacld-3.0: Override phy mode in sap roaming profile
Wlan phy mode in sap roaming profile will become invalid when
the following corner case happens:

  1) sta starts in 5G channel x;
  2) sap starts in 5G channel y, leading to mcc;
  3) sap moves to 2.4G band on the other mac;

In the above case, sap channel frequency will be set to 2.4G,
but the phy mode in its roaming profile will not change.

Override the sap phy mode in its roaming profile so it aligns
with channel frequency again.

Change-Id: I0b243c1d312f77bf4a4d782f6b9d0d75928d0277
CRs-Fixed: 2736429
2020-07-22 05:33:10 -07:00
snandini
1bcf933b1c Release 5.2.0.194V
Release 5.2.0.194V

Change-Id: I3835196951adf336c1b9a80fc968148b09d3ee4c
CRs-Fixed: 774533
2020-07-22 03:21:27 -07:00
Ashish Kumar Dhanotiya
b64f4c342a qcacld-3.0: Prevent stainfo against double detach
Currently there is no way to know if an stainfo is
already detached and driver can detach stainfo
again which may lead to put sta ref count twice in
some race condition.

In current scenario SAP receives the deauth from station,
disconnects the station and puts the sta reference taken
against station attach.
In parallel to the deauth from station if SAP gets the
disconnect from user space, it gets the sta reference
and moves ahead with the disconnect process, in this
process again does detach and does the put sta ref
taken as part of the sta attach, in this way it puts the
sta info twice.

To address above issue add logic to check if stainfo is
already detached or not, if sta info is not already
detached, detach the sta info and do the put ref.

Change-Id: I00c75c4d850931fb2a347d740002c21fae50785a
CRs-Fixed: 2735151
2020-07-22 03:21:27 -07:00
snandini
15fa577edf Release 5.2.0.194U
Release 5.2.0.194U

Change-Id: Iace26e6ec1c5201b82039bb1a3d1591bef4d8c42
CRs-Fixed: 774533
2020-07-21 04:00:54 -07:00
Surabhi Vishnoi
fbbe6aa86d qcacld-3.0: Add condition to check LLM mode while updating pm_qos
Currently, the pm_qos request and cpu mask is updated in bus bandwidth
work handler. In low-latency mode also, cpu mask and pm qos request is
updated. In cases when low latency mode is enabled and cpu mask is set
to all, the bus bandwidth work handler may overwrite the settings done
in LLM mode.

To resolve this issue, add a condition to check if llm_enabled is set
while updating the pm qos request.

Change-Id: I42c131c943128702de95f545c99e35978586d417
CRs-Fixed: 2733979
2020-07-21 04:00:54 -07:00
snandini
535b8ad36e Release 5.2.0.194T
Release 5.2.0.194T

Change-Id: I795da64be20a608eae737566c74b75e61003e006
CRs-Fixed: 774533
2020-07-21 00:00:25 -07:00
Abhishek Ambure
d6ac4613c9 qcacld-3.0: Add support to send MSCS ie in assoc req
MSCS enables the establishment of classification using layer 2 and/or
layer 3 signaling to classify incoming individually addressed MSDUs
into streams. The MSCS Descriptor element defines information about
the parameters used to classify streams.
Host gets MSCS IE in set IE user request. Host adds the support to set
MSCS ie in assoc req.

Change-Id: I9c458326ffba3bad58ba27a611f5753afcf0531a
CRs-Fixed: 2732722
2020-07-21 00:00:25 -07:00
snandini
4fbc0dbf41 Release 5.2.0.194S
Release 5.2.0.194S

Change-Id: I41034ca8f632ec08924b9a8c9ed40e5184b2d864
CRs-Fixed: 774533
2020-07-20 21:54:09 -07:00
snandini
302283db60 Release 5.2.0.194R
Release 5.2.0.194R

Change-Id: Ie3d96f365ca7e3fa8f983aec4049e9490eae22b9
CRs-Fixed: 774533
2020-07-20 19:26:28 -07:00
Amar Singhal
abc1e6922d qcacld-3.0: Check if operating frequency is zero
Operating frequency may not have been filled up yet, from connectiion
profile. Check for the same.

Change-Id: I5f3c28fb855920c6038ce0714e9e0b3c4c21e7ef
CRs-Fixed: 2731261
2020-07-20 19:26:28 -07:00
snandini
cbcd9c4696 Release 5.2.0.194Q
Release 5.2.0.194Q

Change-Id: I3f83c807fd911aac74681c5af605a8486e767151
CRs-Fixed: 774533
2020-07-20 17:15:39 -07:00
gaurank kathpalia
9f7c94b95b qcacld-3.0: Consider old peer phymode to set the new phymode
If peer phymode is not same as vdev phymode on channel switch the
peer phymode is updated with vdev phymode.

It should consider the prev peer phymode to calculate the new
phymode.

Change-Id: I33b57ad991a5899742e7aa4334089762cd325c59
CRs-Fixed: 2736158
2020-07-20 17:15:38 -07:00
Jianmin Zhu
eb5898e905 qcacld-3.0: Fix data stall after sta roaming disabled and reconnection
When reassociate, roaming is disabled by wpa_supplicant, but RSO stop
reason REASON_SUPPLICANT_DISABLED_ROAMING is ignored and roam scan mode
isn't cleared to 0 before vdev WMI_ROAM_FW_OFFLOAD_ENABLE_FLAG flag is
cleared. Then host can't receive peer unmap/map event when wlan disconnect
and reconnect, host dp peer id isn't updated, Rx frames are dropped for
peer id mismatch.

Fix: When roaming is disabled, make sure roam scan mode is cleared to 0
before vdev WMI_ROAM_FW_OFFLOAD_ENABLE_FLAG flag is cleared.

Change-Id: Ia471998cf631948d8ffa701e67fcee22eebb0fa0
CRs-Fixed: 2734351
2020-07-20 17:15:35 -07:00
snandini
9462782f9b Release 5.2.0.194P
Release 5.2.0.194P

Change-Id: I96b354c96a3db5e727dee82226d74d94f25a9ffd
CRs-Fixed: 774533
2020-07-20 07:52:24 -07:00
Rakesh Pillai
9f72aa9c82 qcacld-3.0: Fix use-after-free when skb is copied
When we receive a packet from the network stack for
transmission, we make a copy of this skb and free the
shared skb before trying to trasnmit it.

Currently the mac address used for tdls operations is
taken as a pointer to the original skb, which gets freed
after the skb_unshare.

Copy the mac address into a local stack memory instead
of using a pointer to the skb data to avoid the
use-after-free condition.

Change-Id: I9f0e6260476d5a41b7209a6a599f50a548b953b5
CRs-Fixed: 2733445
2020-07-20 07:52:22 -07:00
snandini
1d8047fe1d Release 5.2.0.194O
Release 5.2.0.194O

Change-Id: Ic18da589e613bb4cf4b00d130af102c14dfe0773
CRs-Fixed: 774533
2020-07-20 04:46:45 -07:00
Manjunathappa Prakash
73abd412bb qcacld-3.0: Handle raw frames and invalid flow_idx frames
Enable handling to drop the raw Rx frames as both driver and stack
is not expected to handle them.
Handle invalid FISA flow index which is out of valid FISA flow_id range,
This can happen if we are looking at wrong or invalid TLV, in such case
it is OK deliver frame without FISA aggregation.

Change-Id: I746d4ad1ea5ba6d60cbadddb55803626abfb2868
CRs-Fixed: 2733978
2020-07-20 04:46:39 -07:00
snandini
498137d553 Release 5.2.0.194N
Release 5.2.0.194N

Change-Id: I17ac8ac10ba83328e1ed45695cec53ef6323da86
CRs-Fixed: 774533
2020-07-19 06:22:36 -07:00
Pragaspathi Thilagaraj
ef4302f003 qcacld-3.0: Don't allow roam invoke if roaming offload is not initialized
Roam invoke is done by driver if reconnect to same bssid is
received or driver FASTREASSOC command is received from the
supplicant. If roaming module is not initialized at firmware,
then still we send roam invoke to firmware and firmware sends
roam invoke failure as part of which disconnection occurs.

Check if roaming module is initialized at firmware, else return
failure for the reassociation request from userspace.
Send failure only if the kernel version is greater than 4.9,
since the fix to handle reassociation failure is available from
this version.

Change-Id: I0feae326be751e50f7327c91739cd7dddab500e9
CRs-Fixed: 2724686
2020-07-19 06:22:36 -07:00
snandini
67ed9e240b Release 5.2.0.194M
Release 5.2.0.194M

Change-Id: I953b7c5e65b60995bdf6fc66689a0a5b66cad4aa
CRs-Fixed: 774533
2020-07-18 22:30:26 -07:00
Jianmin Zhu
aa74dc19cf qcacld-3.0: back to back roaming disable cmds block wpa supplicant for 2s
If 2 roaming disable commands are sent by wpa supplicant back to back,
2nd won't send RSO STOP to target since RSO STOPPED already, and
disable_lfr_event can't be completed any more since no RSO event from
target until 2s timeout, wpa_supplicant thread and nl80211 are blocked in
wlan_hdd_cfg80211_set_fast_roaming for 2s too.

Fix:
If roaming is stopped by wpa_supplicant already and to be disabled again,
return QDF_STATUS_E_ALREADY in sme_config_fast_roaming.

Change-Id: I7d15a4d4bd8e13ff410a7023f80b418eea435fcc
CRs-Fixed: 2733945
2020-07-18 22:30:26 -07:00
snandini
5ae41b1834 Release 5.2.0.194L
Release 5.2.0.194L

Change-Id: I49f0baff1aaa4761a6a6610e680925be6d793260
CRs-Fixed: 774533
2020-07-18 18:13:46 -07:00