Commit Graph

16487 Commits

Author SHA1 Message Date
Abhinav Kumar
b96b746a50 qcacld-3.0: Don't enable WOW_BEACON_EVENT by default for STA
While processing QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START vendor
cmd, the expectation is FW should not wakeup host if host is in
wow mode. Wakeup of HOST happens purely based on Nth beacon
WMI event WMI_VDEV_PARAM_NTH_BEACON_TO_HOST config to firmware
where host gives Nth value and MSB bit to indicate whether
to wake up host or not. MSB bit is 1 means fw should not wakeup
host(By default MSB bit is 0).

WOW_BEACON_EVENT registration on host is required only in case
if HOST sends WMI_RMV_BCN_FILTER_CMDID in order to allow fw to send
connected AP beacons. Currently, HOST sends NTH BEACON CMD to fw with
MSB bit of Nth value equal to 1 in order to allow send connected AP
beacons to HOST only if HOST is not in wow mode.

Fix is to remove default WOW_BEACON_EVENT registration for STA on host.

Change-Id: I4717925fbcb38efb14f3336706f93d90f7a3888e
CRs-Fixed: 2496594
2019-08-01 16:24:04 -07:00
nshrivas
b13304f06f Release 5.2.0.141Z
Release 5.2.0.141Z

Change-Id: I59ffc5c3ba675dba4cfb18d5301f1c76c25fd3d4
CRs-Fixed: 774533
2019-08-01 06:47:43 -07:00
Bala Venkatesh
d6c82e59d9 qcacld-3.0: Disable tx beam forming for NDI vdev
Do not set tx beam forming related ie's in ht cap, vht cap,
he cap when set IE command is sent to FW for NDI vdev.

Change-Id: If629eedeab5d35b1799c6eb5ee7d71726ada262a
CRs-Fixed: 2499132
2019-08-01 06:47:43 -07:00
Tushnim Bhattacharyya
72d812089c qcacld-3.0: Define MAX_BCN_PROBE_IN_SCAN_QUEUE in Kbuild
Add MAX_BCN_PROBE_IN_SCAN_QUEUE in the defaul_defconfig file.

Change-Id: Ic477daa892bad4ae52585492c006d5a4bf60ed3b
CRs-Fixed: 2495604
2019-08-01 06:47:39 -07:00
nshrivas
2ff8286039 Release 5.2.0.141Y
Release 5.2.0.141Y

Change-Id: I759752b64a59f8bccb5a5c9c2db6708c19f18cbc
CRs-Fixed: 774533
2019-08-01 02:54:38 -07:00
bings
6b7c21b4b6 qcacld-3.0: Flush scan block work when stop adapter
adapter->scan_block_work is workqueue, which may be scheduled after
driver is removed.
To fix this issue, flush the workqueue and clean up blocked scan
request.

Change-Id: I0e9cb1b3f2fdceb25ad3566766000b78e1bf0ca1
CRs-Fixed: 2500369
2019-08-01 02:54:37 -07:00
nshrivas
c210c9e16c Release 5.2.0.141X
Release 5.2.0.141X

Change-Id: I56d9b4ea06581671e12b6f34744a17a5b0272f4e
CRs-Fixed: 774533
2019-08-01 00:02:18 -07:00
Nirav Shah
a43f6dc3cf qcacld-3.0: Featurize DHCP indication for SAP
Featurize DHCP indication for SAP and disable it
for QCN7605 as this feature is broken for HL
Data Path.

Change-Id: If1db649131d887a2aab18461187403b4b9a2c5b4
CRs-Fixed: 2496032
2019-08-01 00:02:17 -07:00
nshrivas
9e56544f67 Release 5.2.0.141W
Release 5.2.0.141W

Change-Id: Id12f04296b8f2f88149b6fd912c405f68e7b68c4
CRs-Fixed: 774533
2019-07-31 20:51:05 -07:00
bings
186fdd20c3 qcacld-3.0: Drop assoc req if SAP is not UP
If SAP is not up, it is meaningless to handle assoc req.

If assoc req is handled, ref peer may be created without deleted in
DFS CAC state, which causes FW does not work.

Change-Id: Ia489fa8cfb4406e782fc240c553f5e3074982380
CRs-Fixed: 2487946
2019-07-31 20:51:04 -07:00
nshrivas
6da1e87ae0 Release 5.2.0.141V
Release 5.2.0.141V

Change-Id: Ic3729bf257cfb38b56a1e323d10734b92c34f912
CRs-Fixed: 774533
2019-07-31 17:09:24 -07:00
Srinivas Dasari
2239790ebb qcacld-3.0: Append vendor specific IEs received to assoc request
wpa_supplicant/framework sends different vendor specific IEs in
connect request. Currently driver is parsing the IEs and appending
specific IEs to the assoc request frame. But all vendor specific
IEs are supposed to be sent in the assoc request. Extract all vendor
specific IEs and append at the end of the frame.
MBO IEs are expected to be present at the end of the frame.
So append rest of the vendor IEs just before MBO IE.

Change-Id: I3d49c72a31d142ef3b14b439af2ae4cd8be059ea
CRs-Fixed: 2498976
2019-07-31 17:09:24 -07:00
nshrivas
1515d1f584 Release 5.2.0.141U
Release 5.2.0.141U

Change-Id: I4548638eecc9e8ed60537705967b0314239fa37f
CRs-Fixed: 774533
2019-07-31 13:34:09 -07:00
Srinivas Dasari
a5935ee910 qcacld-3.0: lim_strip_ie to extract multiple IEs of given type
Currently lim_strip_ie strips the matched IEs from given buffer
but return only last matched IE. All the previous IEs matched to
the given type are lost. Fix this to strip and extract all IEs
matched to given type.
This is to address the case when multiple vendor specific IEs are
given from userspace. Current implementation returns only
last vendor specific IE. This is to fix the same

Change-Id: I64ca5d2e679b8457dc2cbaf7b4b12dc0a840260d
CRs-Fixed: 2499592
2019-07-31 13:34:08 -07:00
Abhinav Kumar
42622bc171 qcacld-3.0: Avoid kernel print while handling FILS discovery frame
Currently in case of SAP mode, Host gets FILS discovery frame
in every 20TU for the first 3 mins. These frames are not required
in host and will be dropped. But Host has pe_warn print in order
to indicate this action frame is Unhandled.

Fix is to change level of log (warning to debug) in order
to avoid spamming in kernel message buffer.

Change-Id: I3ec585a37b190041ef2f88a03e201aa7a5ff7938
CRs-Fixed: 2499907
2019-07-31 13:34:04 -07:00
nshrivas
f0bcf5471c Release 5.2.0.141T
Release 5.2.0.141T

Change-Id: I01c995a121a18851061f11f641b10be630f9857e
CRs-Fixed: 774533
2019-07-31 12:18:08 -07:00
Abhinav Kumar
8ed7afffc2 qcacld-3.0: Send BTM config and 11k offload for all roam reason
Issue is : In case of STA + STA, Host sends BTM config enable on
both STA. This results assert in FW as at a time FW supports BTM
only on one vdev.

Following are the fix:
1. Send 11k offload and BTM config enable to fw irrespective of
roam reason. Enable of both while RSO start and disable of both
while RSO stop should be symmetric.

2. Currently, Host sends RSO_UPDATE_CONFIG for blacklisting case
if the vdev is in connected state irrespective of RSO start is
sent or not. Added check to make sure RSO_UPDATE_CONFIG should
not go if driver_disabled_roaming flag set.

Change-Id: Ib92089906a2e1690ec6181ac184bc008ccfbc928
CRs-Fixed: 2497813
2019-07-31 12:18:08 -07:00
nshrivas
5d58df209b Release 5.2.0.141S
Release 5.2.0.141S

Change-Id: I3a6dcd5362bef61fd06f89894298c5ea76317a40
CRs-Fixed: 774533
2019-07-30 20:21:06 -07:00
Vignesh Viswanathan
2f7701a13e qcacld-3.0: Add separate FTM Coldboot Calibration Mode
Add separate Coldboot calibration mode (10) for Coldboot Calibration
done during FTM Mode in PLD.

Change-Id: I7e4bb5209d87613bb49a0a958d8e691c73fdcfe1
CRs-Fixed: 2499766
2019-07-30 20:21:05 -07:00
nshrivas
03bab0399a Release 5.2.0.141R
Release 5.2.0.141R

Change-Id: I859a251de7c373d758efa8c8e3fdf9eed9fc4b1d
CRs-Fixed: 774533
2019-07-30 16:22:53 -07:00
wadesong
24c869aa97 qcacld-3.0: Replace channel list with freq list
1) freq_list value population:

   Allocate memory for freq_list within tagCsrChannelInfo
   whenever ChannelList is allocated for the same struct.

   Populate channel frequencies into freq_list whenever
   ChannelList is populated for the same struct.

   Free the memory used by freq_list whenever ChannelList's
   memory is to be freed for the same struct.

2) Special treatment for sme_rrm_send_scan_result:

   To ease the freq_list population within function
   sme_rrm_send_scan_result, a parameter(freq_list) has
   been added into the parameter list of it.

   Meanwhile, all callers of the same function have been
   modified to pass freq_list to it.

3) Fix a number of camel cases detected by checkpatch.

Change-Id: I732b084d3e1edfc4f26e7ed44be1c6e826be8602
CRs-Fixed: 2496716
2019-07-30 16:22:52 -07:00
wadesong
ca97809547 qcacld-3.0: Remove unused fields in bss_description
Remove some unused fields in struct bss_description.

Also remove the unnecessary padding fields within
the same struct, as compiler will do automatic
padding for us.

Change-Id: Id754391e20e4dce6261a8df54b12ccdcf31ba5c9
CRs-Fixed: 2497872
2019-07-30 16:22:48 -07:00
nshrivas
2f530b44ca Release 5.2.0.141Q
Release 5.2.0.141Q

Change-Id: Ibbabbe34ec1409dd0a01c0b91ae487802fd7786f
CRs-Fixed: 774533
2019-07-30 10:55:41 -07:00
Arun Kumar Khandavalli
6ba1569220 Revert "qcacld-3.0: Create lim session for monitor mode for legacy targets"
The change 2812433 needs revert it got merged with still some
pending comments.

Change-Id: I4555d60bf0c8cea1b3a812063ee24956b07c0d8b
CRs-Fixed: 2499426
2019-07-30 10:55:40 -07:00
nshrivas
9a93483f83 Release 5.2.0.141P
Release 5.2.0.141P

Change-Id: I8601e338e0c252a63739a6570c6cd2a5ffa26c06
CRs-Fixed: 774533
2019-07-30 09:11:36 -07:00
bings
39e70dbcbe qcacld-3.0: Initialize local variable old_credit before using it
In some platform, it reports error "old_credit is used uninitialized".
Initialize old_credit before using it.

Change-Id: I06351bba0abdfc5efb32406d1d245f8d8c658684
CRs-Fixed: 2495209
2019-07-30 09:11:36 -07:00
Sriram Madhvapathi
ecb0bcde59 qcacld-3.0: Add sdio abstraction layer support for QCN7605
The SDIO HIF for QCN7605 requires to use the SDIO Abstraction Layer.
Used the SDIO CNSS2 PLD layer api's to interface with SDIO AL

Change-Id: I839a580941e4651e3dcff4f87cda26cc567687fc
CRs-Fixed: 2275631
2019-07-30 09:11:31 -07:00
nshrivas
a519b8be94 Release 5.2.0.141O
Release 5.2.0.141O

Change-Id: I24701865c157f80e0e110df481904cef18c1dc00
CRs-Fixed: 774533
2019-07-30 07:58:06 -07:00
jiad
b5d9cdb0ff qcacld-3.0: Support CNSS2 as dlkm
Support CNSS2 as kernel dynamic loadable module.

Change-Id: I2d341de8d7a1f23dbd9074b41606b59f64dbfa9b
CRs-Fixed: 2498780
2019-07-30 07:58:06 -07:00
nshrivas
46cabec27c Release 5.2.0.141N
Release 5.2.0.141N

Change-Id: Ib13a7c6b36eb45676ca0452ad98e71fc188bae00
CRs-Fixed: 774533
2019-07-30 02:43:47 -07:00
Alok Kumar
d6de641aa6 qcacld-3.0: Remove work create for peer_unmap_timer_handler
This is revert of Change-Id: I9a9554ef0aa9288bf5abe22cd2513d8cc41c29d4

When peer_unmap_timer_handler runs for multiple peers, same work
is INITed for multiple peers as this work is not per peer based.
This will update the work param i.e. peer gets updated each time,
which leads in deletion of wrong peer.

Remove the work INIT and scheduling of "peer_unmap_timer_work_function"
as cds_trigger_recover() has already taken care of atomic context.

Change-Id: Ida0a50f27cfe4c08763b359dab51c82e757ec100
CRs-Fixed: 2498498
2019-07-30 02:43:47 -07:00
nshrivas
c04843276d Release 5.2.0.141M
Release 5.2.0.141M

Change-Id: I72ac1424ac92d502ebd96b7b07f47b55ae1e669f
CRs-Fixed: 774533
2019-07-29 20:10:58 -07:00
Manikandan Mohan
4e66c9a73a qcacld-3.0: Move NAN cfg params init to PSOC open
NAN config param initialization from CFG component is done
during PSOC object created notification. But as per component
design it must be done at psoc open to avoid CFG component
not initialized case. Thus update nan component to reorganize
NAN cfg params init.

Change-Id: I9636b527b796202e55a57c28d604795a705de026
CRs-fixed: 2489286
2019-07-29 20:10:58 -07:00
nshrivas
2fa572f8ff Release 5.2.0.141L
Release 5.2.0.141L

Change-Id: I62e3203b1516f470121ab8ef82f071a1dcce1ad4
CRs-Fixed: 774533
2019-07-29 13:46:43 -07:00
wadesong
59e727ce43 qcacld-3.0: Add channel frequency into struct hdd_mon_set_ch_info
Add channel frequency(freq) into struct hdd_mon_set_ch_info and
populate its value where channel in the same structure is
populated.

Remove a few camel cases detected by checkpatch.

Change-Id: I5f0d64a88c054476739bc06887bffd37238b10fc
CRs-Fixed: 2496707
2019-07-29 13:46:42 -07:00
nshrivas
5affbce271 Release 5.2.0.141K
Release 5.2.0.141K

Change-Id: I7e47089d760368190922e337ef01e3a23cb61441
CRs-Fixed: 774533
2019-07-29 11:23:07 -07:00
Arun Kumar Khandavalli
88709de4cb qcacld-3.0: Create lim session for monitor mode for legacy targets
For the latest chipsets because of architecture change the
lim session for monitor mode is not required but for the
older chipsets using the mainline the lim session has to be created.
If the session is not created the channel setting to capture
the packets on the monitor interface fails.

Create the monitor session in lim for older targets.

Change-Id: Ide44201e91c2d92cddff66f563898015f9e28ca7
CRs-Fixed: 2498775
2019-07-29 11:23:06 -07:00
Ashish Kumar Dhanotiya
64b3fa9645 qcacld-3.0: Fix memory leak in driver dump
Currently when driver gets a command to dump the
driver info, it allocates the memory and retrieves
the information in that allocated memory. Maximum data
that can be copied to user space buffer is equal to
one PAGE_SIZE. In the command driver gets the size of
the data which user space wants to read, minimum of the
user space requested size or one PAGE_SIZE of the data
is copied to user space buffer and current position of
the driver buffer till which the data is copied is
updated to user space is also updated.

Driver copies the retrieved information to the user
space buffer as explained above and updates the position
pointer to the user space. In the next request driver
expects from user space to request the remaining data
from the updated position in last request, once all the
data is copied to user space, driver frees internally
allocated memory.

In case if driver does not get the request to read
remaining data after first request, it does not free
the memory. Current handling of this memory is done
in init domain after stop modules, but since this
memory is allocated in active domain, driver should free
the memory in active domain.
Since with current implementation memory allocated in
active domain is not freed in active domain, memleak is
getting detected.

To resolve above issue, move mem cleanup logic for
driver dump info command from init domain to active domain in stop
modules.

Change-Id: Idb4f35f0a599ad55eebe13348b68562fa401fd7e
CRs-Fixed: 2489877
2019-07-29 11:23:03 -07:00
nshrivas
9ec20d3e85 Release 5.2.0.141J
Release 5.2.0.141J

Change-Id: I20f4a332cf2286164f89c426a241872baa1ab5c4
CRs-Fixed: 774533
2019-07-29 09:55:32 -07:00
hqu
ed450ee3ec qcacld-3.0: Replace operationChannel for tagCsrRoamConnectedProfile
Replace operationChannel with op_freq for tagCsrRoamConnectedProfile
in files:
csr_api_roam.c
csr_api_scan.c
csr_neighbor_roam.c

Change-Id: Ibb8df79ed7ed4c837e569a7e320a705bbcf522e4
CRs-Fixed: 2497121
2019-07-29 09:55:32 -07:00
hqu
ea4d062c37 qcacld-3.0: Replace operationChannel for tagCsrRoamConnectedProfile
Replace operationChannel with op_freq for tagCsrRoamConnectedProfile
in files:
sme_api.c
csr_util.c
sme_qos.c
wlan_hdd_assoc.c

Change-Id: I299faea16b4ef2f058f1e9d1d5840b6b849ac95a
CRs-Fixed: 2497676
2019-07-29 09:55:28 -07:00
Min Liu
00956e8408 qcacld-3.0: Replace channel with freq in hdd_context
Replacing channel with freq in the following structures:

hdd_context: last_acs_channel_list -> last_acs_freq_list
sap_context: channelList -> freq_list
sap_acs_scan_complete_event: channellist -> freq_list

Change-Id: If04ba42831b5134952e0d71a18b207d0a6f3c5b2
CRs-Fixed: 2497615
2019-07-29 09:55:25 -07:00
nshrivas
81a5f427b2 Release 5.2.0.141I
Release 5.2.0.141I

Change-Id: I5889460896e2082499f7c02414ba68c6f5a67f33
CRs-Fixed: 774533
2019-07-29 06:29:33 -07:00
Rakshith Suresh Patkar
7d24ef494c qcacld-3.0: Enable SMMU S1 TRANSLATION for SM7150
Enable SMMU S1 TRANSLATION flag for SM7150

Change-Id: I5ad9b7fec096897b45e9297e42cb31ce3a204d0a
CRs-Fixed: 2425317
2019-07-29 06:29:32 -07:00
nshrivas
955b9dcc57 Release 5.2.0.141H
Release 5.2.0.141H

Change-Id: I8f1a7d4c8b6b59e5bdad4c7f0920665a0dba5255
CRs-Fixed: 774533
2019-07-28 23:45:53 -07:00
Wu Gao
e73c388139 qcacld-3.0: Enable log of direct buffer rx and spectral component
Set default log level mask for direct buffer rx and spectral comonent.

Change-Id: Idc74b0ec194954e08cce286a92e8b7a16d944178
CRs-Fixed: 2495231
2019-07-28 23:45:52 -07:00
nshrivas
039ec36e8d Release 5.2.0.141G
Release 5.2.0.141G

Change-Id: If4b77a6ed2bbebf071ace53216a1004a6636f50a
CRs-Fixed: 774533
2019-07-27 18:21:18 -07:00
hqu
7f10f558c4 qcacld-3.0: Define ext_vdev_ptr and ext_pdev_ptr with specific type
Define ext_vdev_ptr and ext_pdev_ptr with specific type, remove void
pointer usage for part of mlme code.

Change-Id: Ie71d59386224e4671bdae071aa7425a998d5e242
CRs-Fixed: 2488192
2019-07-27 18:21:17 -07:00
nshrivas
79f37e4573 Release 5.2.0.141F
Release 5.2.0.141F

Change-Id: I038b8592123cf95a9340bf36b7ba1deaeb875a54
CRs-Fixed: 774533
2019-07-27 13:42:14 -07:00
hqu
28f68df635 qcacld-3.0: Remove void pointer usage for part of DP code
Add code to use cdp_vdev instead of void pointer for
txrx_vdev and ol_tx_data.

Change-Id: I3d3b7cc8012981a7c883c8113d88fa387711d41e
CRs-Fixed: 2483388
2019-07-27 13:42:14 -07:00