Commit Graph

17318 Commits

Author SHA1 Message Date
tinlin
c99fa7f76f qcacld-3.0: Fix possible null pointer dereference
roam_info may be null pointer and be explicitly
dereferenced when roam_status is
eCSR_ROAM_LOSTLINK in hdd_dis_connect_hanler.
Add null check for roam_info before
getting roam_info->reasonCode.

Change-Id: I11be7b722921a9be8ed1419251f6cbf19506a11d
CRs-Fixed: 2531563
2019-09-23 14:52:31 -07:00
Tushnim Bhattacharyya
ba6d1e030a qcacld-3.0: Replace channel with frequency in channel_info
Replace channel ID with frequency in struct hdd_channel_info
& oem_channel_info.

Change-Id: I1a14ab40da4824d2861a7ec862cc322a158f0cd1
CRs-Fixed: 2532299
2019-09-23 14:52:27 -07:00
nshrivas
5a62d9a3c6 Release 5.2.0.149N
Release 5.2.0.149N

Change-Id: Ifa125691b244b880fd6782b4ed4eecfc2cc02598
CRs-Fixed: 774533
2019-09-23 12:45:47 -07:00
Arun Kumar Khandavalli
52cca56368 qcacld-3.0: Flush the wmi_rx_work_queue when the ready event fails
If the ready event times out the waiting thread in the error condition
starts closing the modules but in the other
thread the wmi_rx_work_queue could be executing trying to access the
data which being freed in the other thread.

Flush the wmi_rx_work_queue when the ready event times out.

Change-Id: I7d91b3fa5f3468c607ce3669eabf7d2e3789774d
CRs-Fixed: 2524305
2019-09-23 12:45:47 -07:00
nshrivas
27c9d957b8 Release 5.2.0.149M
Release 5.2.0.149M

Change-Id: Icee48a7db25d1edb9090f84b00e8a50ba85c0c76
CRs-Fixed: 774533
2019-09-23 09:26:01 -07:00
Srinivas Dasari
240d327763 qcacld-3.0: Consider def roam scan periods only if not conf'd explicitly
Roam control enable sends default values for roam scan period and
full roam scan period to make sure undesirable values are not
used. But user might want to update values dynamically through
vendor cmd/DRIVER cmd before issuing roam control enable and
doesn't want to overwrite these values with default values.
So, consider default values sent only if user hasn't configured
already. This can be done by comparing configured value with
ini values.

Change-Id: I68ac6a9afbe4a45c1a1ade3286c57f36303c49e9
CRs-Fixed: 2530344
2019-09-23 09:26:00 -07:00
Srinivas Dasari
3a769ca362 qcacld-3.0: Reset inactivity params when roam control is enabled
When roam control is enabled, below inactivity params are expected
to be set 0,
1. roam_scan_inactivity_time
2. roam_inactive_data_packet_count
3. roam_scan_period_after_inactivity

Restore the same when roam scan control is disabled/CLEAR_ALL is
received.

Change-Id: Id9365895cdbccb3465b96ba6eec579da5014caa0
CRs-Fixed: 2529116
2019-09-23 09:25:53 -07:00
nshrivas
048a174ac3 Release 5.2.0.149L
Release 5.2.0.149L

Change-Id: I9596cb7d0e826a0da99f0cf41420aa69da44804f
CRs-Fixed: 774533
2019-09-23 07:28:02 -07:00
Srinivas Dasari
1ec7452b18 qcacld-3.0: Restore all control config params upon CLEAR_ALL
User might modify the roam control config params through
multiple commands as part of roam control config enable.
Currently, only the params which are modified as part of
SUBCMD_CONTROL_SET command are restored. Restore all of the roam
control config params from the default ini values when the
control config is disabled i.e when the CLEAR_ALL is received.

Change-Id: I59ebc2e3018b01889ffb2bcd19b72d6d20fd0517
CRs-Fixed: 2517854
2019-09-23 07:28:01 -07:00
Srinivas Dasari
a5a42fa0ce qcacld-3.0: Update scan_n_probes to neighbor roam info only
Currently, scan_n_probes is updated to global mac ctx when
it's changed through DRIVER command. But the update
should happen only to the neighbor roam info of the
corresponding vdev. Retrieval also should happen based on vdev.

Change-Id: I442eda44c6c0f6a66d86648bbe82bc0dc71422bd
CRs-Fixed: 2530341
2019-09-23 07:27:53 -07:00
Srinivas Dasari
7bedcd175d qcacld-3.0: Update home_away_time to neighbor roam info only
Currently, home scan away time is updated to global mac ctx
when it's updated through DRIVER command. But the update
should happen only to the neighbor roam info of the corresponding
vdev. Retrieval also should happen based on vdev.

Change-Id: I3e746f264c23454c1721a132d267b70157392894
CRs-Fixed: 2530338
2019-09-23 07:27:47 -07:00
Srinivas Dasari
e41d01d667 qcacld-3.0: Update scan max chan time and period to roam info only
Currently, neighbor scan max chan time and neighbor scan timer
period are updated to global mac ctx when it's updated through
DRIVER command. But the update should happen only to the neighbor
roam info of the corresponding vdev.

Change-Id: I264cf9ac7a1c7bf8c4fde25ad134993419db6052
CRs-Fixed: 2530337
2019-09-23 07:27:41 -07:00
Srinivas Dasari
456aa70f29 qcacld-3.0: Update empty scan refresh period to neighbor info only
Currently, roam empty scan refresh period is updated to global
mac ctx when it's updated through DRIVER command. But the update
should happen only to the neighbor roam info of the corresponding
vdev. Retrieval also should happen based on vdev.

Change-Id: Ic0496c326bca459c6ef6da1d84f1fd4645373cb9
CRs-Fixed: 2530335
2019-09-23 07:27:32 -07:00
Srinivas Dasari
7f48ac026d qcacld-3.0: Update roam delta to neighbor roam info only
Currently, roam delta is updated to global mac ctx when it's
updated through DRIVER command. But the update should
happen only to the neighbor roam info of the corresponding vdev.
Retrieval also should happen based on vdev.

Change-Id: I355b9db2e142d4205088627672c3fb27c32d7fbd
CRs-Fixed: 2530333
2019-09-23 07:27:24 -07:00
nshrivas
0691c08d64 Release 5.2.0.149K
Release 5.2.0.149K

Change-Id: Ifedfb872f0dd77f3a17112c5618a45eedd0cafac
CRs-Fixed: 774533
2019-09-23 03:35:35 -07:00
Liangwei Dong
2eb654f21c qcacld-3.0: Replace MAX_CHANNEL by NUM_CHANNELS
When 6GHz introduced, the MAX channel numbers
are conditionally defined by macro NUM_CHANNELS based on
6GHz band supported by driver or not.
Change the driver to use the NUM_CHANNELS for channel
list operation.

Change-Id: I866ac1423b97f9ab74740da263d642f2e3b70445
CRs-Fixed: 2531003
2019-09-23 03:35:34 -07:00
nshrivas
a347938a8b Release 5.2.0.149J
Release 5.2.0.149J

Change-Id: Idacfd73ce1896d2df57be8f37c21a355e6a36ced
CRs-Fixed: 774533
2019-09-23 01:43:54 -07:00
Srinivas Dasari
9249a98bfa qcacld-3.0: Update lookup rssi threshold to neighbor info only
Currently, neighbor lookup threshold is updated to global mac ctx
when it's updated through DRIVER command. But the update should
happen only to the neighbor roam info of the corresponding vdev.
Retrieval also should happen based on vdev.

Change-Id: If0ad4855726bdc42d82852f413f7915892d3dfd6
CRs-Fixed: 2530332
2019-09-23 01:43:53 -07:00
Abhishek Singh
efe21e6b1f qcacld-3.0: Replace find pe session by sme session id with vdev id
Replace pe_find_session_by_sme_session_id with
pe_find_session_by_vdev_id as sme_session_id is vdev id.

Change-Id: I5fa537ff8e391fc18e568fd6f750334268faafa9
CRs-Fixed: 2531681
2019-09-23 01:43:38 -07:00
nshrivas
c1669831a5 Release 5.2.0.149I
Release 5.2.0.149I

Change-Id: I50380053bfc95c9b29dcb95de425de4949dfd323
CRs-Fixed: 774533
2019-09-22 21:16:23 -07:00
Yu Ouyang
523f56e6c3 qcacld-3.0: Fix CNSS_RECOVERY undeclared issue
If without CNSS2 module, CNSS_RECOVERY undeclared issue will occur.

Move function pld_sdio_uevent() to CONFIG_PLD_SDIO_CNSS2 macro,
because it is active only when CONFIG_PLD_SDIO_CNSS2 is defined.

Change-Id: Ic86260ccefad820c47257a8ccbcfae9194b78b8f
CRs-Fixed: 2530671
2019-09-22 21:16:22 -07:00
nshrivas
f6eac52f9d Release 5.2.0.149H
Release 5.2.0.149H

Change-Id: I9e440d94e4739be40cc735f332c709d9b81db53d
CRs-Fixed: 774533
2019-09-21 09:53:26 -07:00
Bala Venkatesh
25b852b999 qcacld-3.0: Avoid NULL pointer dereference
In function hdd_is_connection_in_progress the arguments
out_vdev_id and out_reason can be NULL. For device mode
is SAP or P2P_GO possible NULL dereference can happen.

Add NULL check for out_vdev_id and out_reason before
dereference.

Change-Id: I9c5c88f41f510483a01fe7b355538942360bd641
CRs-Fixed: 2531567
2019-09-21 09:53:25 -07:00
nshrivas
c4384e8127 Release 5.2.0.149G
Release 5.2.0.149G

Change-Id: Iedf5ab6fe3a1ee4025933394d1d09cac3dfd7ff1
CRs-Fixed: 774533
2019-09-21 02:46:54 -07:00
Paul Zhang
c9dbaeea18 qcacld-3.0: Add interface to get / set eLNA bypass
Add interface to get / set eLNA bypass from / to firmware

Change-Id: Idf5d6a838d2596767a1fb00040457af721fba69d
CRs-Fixed: 2498525
2019-09-21 02:46:53 -07:00
nshrivas
d681a1def1 Release 5.2.0.149F
Release 5.2.0.149F

Change-Id: Ibc4d6c80b7d1cd9cb0579c7684071642506ce9a1
CRs-Fixed: 774533
2019-09-20 23:36:09 -07:00
Sourav Mohapatra
3f02b6a70d qcacld-3.0: Add ini support for NDP inactivity timeout
Add an ini configuration that configures the inactivity timeout for NDP
peer. The value is sent to the firmware via the VDEV param
WMI_VDEV_PARAM_NDP_INACTIVITY_TIMEOUT.

Change-Id: Ifffe6bb40df94761d739463cf7e54a0be7e2a375
CRs-Fixed: 2531756
2019-09-20 23:36:09 -07:00
sheenam monga
67ecb07330 qcacld-3.0: Add operating frequency in hdd_config
Currently, operating channel is populated for hdd_config
In 6G channel numbers can be same with 2G/5G
which can lead to erroneous behaviour in case of 6G.

Fix is to add operating frequency list in structure hdd_config
as frequency will always be unique.

Change-Id: I3f21b75c6763054afd42df6ea13d5ce96b0ed0a8
CRs-Fixed: 2517114
2019-09-20 23:36:02 -07:00
nshrivas
c57b61f55d Release 5.2.0.149E
Release 5.2.0.149E

Change-Id: I8a18ecb8d44113f72bccd2ecfe83bec016a87e48
CRs-Fixed: 774533
2019-09-20 04:11:24 -07:00
Liangwei Dong
424738442b qcacld-3.0: Do not block tx if no CAC performed
For STA+SAP on SCC on DFS channel and the DFS master
capability is disabled on SAP by INI. The CAC is skipped
in protocol stack. Do not block tx for SAP in
such condition.

Change-Id: I62a130b246d37d10492d287776c5b51e48d63c5f
CRs-Fixed: 2525465
2019-09-20 04:11:24 -07:00
nshrivas
3a32b2c2c5 Release 5.2.0.149D
Release 5.2.0.149D

Change-Id: Ib2cbc5e7a636704049955e339d1d0d4cf6ab78b4
CRs-Fixed: 774533
2019-09-20 02:48:53 -07:00
Pragaspathi Thilagaraj
7e30ce86c4 qcacld-3.0: Update vdev mlme object nss after pe_session nss update
The nss value in the "iw <dev_name> link" command and
"iw <dev_name> dump station" is updated from the vdev mlme
object vdev_mlme->proto.generic.nss. This nss value is
updated only from lim_process_assoc_rsp_frame() and
lim_extract_ap_capability() only is the ap nss is less than
the session_nss. In roaming case the session_nss is updated
with the AP nss in lim_populate_peer_rate_set() so in assoc
response path the the global mlme vdev nss is not updated.

Update the vdev mlme object nss in lim_process_assoc_rsp_frame()
from the pe_session.

Change-Id: I2575a591f73ee172a83d4681e5f3134d5c9c60b0
CRs-Fixed: 2525710
2019-09-20 02:48:53 -07:00
nshrivas
586324202d Release 5.2.0.149C
Release 5.2.0.149C

Change-Id: Ibfc840d83bd34e6e52d92e4fbd39511171c09a3b
CRs-Fixed: 774533
2019-09-20 01:06:04 -07:00
Hangtian Zhu
c7642605cc qcacld-3.0: Add CONFIG_MULTI_IF_LOG to support multi if log
This is a propagation of qcacld-2.0 commit 98821c7dcf49d ("qcacld-2.0:
Add CONFIG_MULTI_IF_LOG to support multi if log"). Add CONFIG_MULTI_IF_LOG
to support multi if log by assigning the specific netlink protocol
when dual wlan cards are loaded.

Change-Id: I3ea9574899c23a8d2ebbdea5b958cc3ad7947fe5
CRs-Fixed: 2525483
2019-09-20 01:06:04 -07:00
nshrivas
c9f78a60f8 Release 5.2.0.149B
Release 5.2.0.149B

Change-Id: I9d34b5b755573f9704d7886d9d2f22f4bf098c64
CRs-Fixed: 774533
2019-09-19 20:54:47 -07:00
Saket Jha
9953150a8f qcacld-3.0: Featurize legacy Helium DP
Memory optimization of legacy Helium DP (ol_*.*,htt_*.*)

Change-Id: I8f3a1f7edeeb8f793c4d3c74d22231d86ff124a6
CRs-Fixed: 2508723
2019-09-19 20:54:47 -07:00
nshrivas
aff4fcb8fb Release 5.2.0.149A
Release 5.2.0.149A

Change-Id: I51af4888195e27d0db501172cf9ed4443c6513a7
CRs-Fixed: 774533
2019-09-19 18:55:48 -07:00
Gururaj Pandurangi
9a762e6d84 qcacld-3.0: Fix to update ROAMSCANPERIOD value
Fix GETROAMSCANPERIOD function to update the ROAMSCANPERIOD
value.

Change-Id: Ieda1f71b1210bf2a64c55c9aba06f86a91bdf271
CRs-Fixed: 2526740
2019-09-19 18:55:47 -07:00
nshrivas
bbf19c9879 Release 5.2.0.149
Release 5.2.0.149

Change-Id: I81ef2f414b922ea22bd21fb2304e6e08db8fc7c2
CRs-Fixed: 774533
2019-09-19 17:28:20 -07:00
Tushnim Bhattacharyya
da631543bd qcacld-3.0: Fix next scan command logic
If a candidate is found do not mark the next scan command
as failure.

Change-Id: If47befbac946941fdc73161a6dd48d36f3ef566e
CRs-Fixed: 2530378
2019-09-19 17:28:20 -07:00
nshrivas
01bdceb6bc Release 5.2.0.148Z
Release 5.2.0.148Z

Change-Id: Ie0fd1a10e13038beb25778416aaf38ee8766cf2c
CRs-Fixed: 774533
2019-09-19 16:07:15 -07:00
Abhishek Singh
c70afa3f53 qcacld-3.0: Remove duplicate bss_idx from struct pe_session
The bss_idx represent vdev id in pe session. pe session already
have smeSessionId/vdev_id to represent this.

Thus remove duplicate bss_idx from struct pe_session.

Change-Id: I18c59d49233dd547f38d7f8a23be5ebbe7d72c30
CRs-Fixed: 2531014
2019-09-19 16:07:14 -07:00
nshrivas
36f2d37fac Release 5.2.0.148Y
Release 5.2.0.148Y

Change-Id: Ia61571cbed34cafe5e53ed0b011dca229bff4ee8
CRs-Fixed: 774533
2019-09-19 14:52:53 -07:00
Abhishek Singh
78b974008a qcacld-3.0: Remove unused bssId from struct sDphHashNode
The bssId in struct sDphHashNode represent vdev_id and same can
be used from pe session which already has this info so remove
bssId param.

Change-Id: I47a7f27e95bfaa9ecd617cb531895601a27dfbf5
CRs-Fixed: 2530965
2019-09-19 14:52:52 -07:00
nshrivas
a3ddef7efd Release 5.2.0.148X
Release 5.2.0.148X

Change-Id: Iaf9c934a01e65e9506e506772dc74e90106051e3
CRs-Fixed: 774533
2019-09-19 13:36:52 -07:00
gaurank kathpalia
081c66cfde qcacld-3.0: Free Sap acs ch list memory in stop adapter
Currently the SAP memory is not freed as part of stop
adapter as the sap ctx is mem zero in deinit ctx, hence
the addr to free in NULL
Fix is to extract the the sap config from adapter and
then free the sap ch list memory from it.

Change-Id: I8c0bf66765c34f0936d694d260ce1544791beecc
CRs-Fixed: 2530985
2019-09-19 13:36:51 -07:00
Abhishek Singh
6243a002ea qcacld-3.0: Cleanup unused params from tpAddStaParams
Many legacy params of tpAddStaParams are unused, thus
cleanup the unused params from tpAddStaParams.

Change-Id: I1be957d2f34d2202bcc1d44e69ad5cba0812c60b
CRs-Fixed: 2530961
2019-09-19 13:36:43 -07:00
nshrivas
8869e56f08 Release 5.2.0.148W
Release 5.2.0.148W

Change-Id: I9697a8d67125f1160005e1f03d1d15acbe900cd2
CRs-Fixed: 774533
2019-09-19 12:12:40 -07:00
Kiran Kumar Lokere
987377e3ea qcacld-3.0: Refactor start bss request to channel frequency
Refactor the start bss request to use channel frequency instead
of channel number.

Change-Id: Ic936fe060a5b2bc8d058709950417f3939a3c3d4
CRs-Fixed: 2518026
2019-09-19 12:12:39 -07:00
Kiran Kumar Lokere
b2ea027c0e qcacld-3.0: Add 6GHz support in SAP mode
Add support to populate 6GHz IE in SAP mode.

Change-Id: Ib9ec2e571bc8c6bb7e591fca191eda208efdcdbd
CRs-Fixed: 2516531
2019-09-19 12:12:29 -07:00