Commit Graph

16511 Commits

Author SHA1 Message Date
gaurank kathpalia
cdc3b574d1 qcacld-3.0: Modify NUD tracking ini for disconnect/roam
Modify the nud tracking ini so that the driver
does a disconnection/roaming after NUD failure
is detected.
According to the ini specified, the driver would
either disconnect or do roaming.

Change-Id: I6af1c819322a702605d92ada735298a124127533
CRs-Fixed: 2497153
2019-08-05 10:55:40 -07:00
tinlin
7db7a5d167 qcacld-3.0: Set peer phymode not higher than sap's
Associating peer's phymode is not allowed to be highter
then sap's. If it is, set the peer phymode equal to sap
phymode.

Change-Id: Ia8152ce27fb8ddf2bbff5139d3b8d89c811d7ed0
CRs-Fixed: 2500383
2019-08-05 10:55:36 -07:00
wadesong
21d7effc7f qcacld-3.0: Populate frequency list
Do more frequency list population in a number of functions
to make sure the resulting tCsrChannelInfo structures
have the right channel frequency info.

Meanwhile, enlarge the buffer allocated for freq_list in
csr_roam_copy_profile to make sure all channel frequencies
can be replicated.

Change-Id: Ia8b90581211d657851e1d8fc2556dcb633c8001a
CRs-Fixed: 2500236
2019-08-05 10:55:32 -07:00
Tushnim Bhattacharyya
c55e9a75c4 qcacld-3.0: Define MGMT_DESC_POOL_MAX in Kbuild
Add MGMT_DESC_POOL_MAX in the defaul_defconfig file.

Change-Id: I996c90f48db9add25dc4feec4f1f4d1cbfc2e16f
CRs-Fixed: 2495584
2019-08-05 10:55:27 -07:00
Abhishek Ambure
7470976006 qcacld-3.0: Refactor vdev create code
Refactor vdev create code to target_if common code. Remove legacy
code for vdev create.

Change-Id: I57caf0c5fa2da7b6ba640a9d2edb72363959c585
CRs-Fixed: 2460786
2019-08-05 10:55:23 -07:00
Abhishek Ambure
2ac5dec407 qcacld-3.0: Add target_if common code in Kbuild
Add target_if common code and enable feature flags needed
to resolve compilation errors.

Change-Id: Ie3ceb2b94dfb580d7d5ddfedefb00cee69434590
CRs-Fixed: 2454757
2019-08-05 10:55:18 -07:00
nshrivas
2209902530 Release 5.2.0.142G
Release 5.2.0.142G

Change-Id: I223cd51d04f5e66fefae14877bb3b42ba49ce1bf
CRs-Fixed: 774533
2019-08-05 09:31:37 -07:00
Abhishek Singh
8586573201 qcacld-3.0: Handle bss peer add failure in vdev state machine
In case bss peer add failure vdev state machine is in
substate  WLAN_VDEV_SS_START_START_PROGRESS and thus
WLAN_VDEV_SM_EV_CONNECTION_FAIL will not be handled and thus vdev
SM will not move to init state and pe session is not deleted.

This lead to vdev ref leak for the ref taken by pe create session.

Fix this by sending WLAN_VDEV_SM_EV_START_REQ_FAIL event when
vdev SM is in WLAN_VDEV_SS_START_START_PROGRESS state and continue
cleanup.

Change-Id: I4c559333a6bd018e3382f9781883acf314434cf2
CRs-Fixed: 2502817
2019-08-05 09:31:37 -07:00
nshrivas
1d2fbeca0c Release 5.2.0.142F
Release 5.2.0.142F

Change-Id: Ib7b8bd85057d3eea9a631982a1734c4d191c020f
CRs-Fixed: 774533
2019-08-05 07:49:51 -07:00
nakul kachhwaha
987f6b13dc qcacld-3.0: Properly configuring OpClass into TDLS Peer
OpClass in TDLS peer is configured using gTDLSPrefOffChanNum
and gTDLSPrefOffChanBandwidth INIs. Values of OffChanBandwidth
INI can't distinguish 40+ and 40- BW which is required to fetch
the correct Opclass for a given channel from regdb. Adding
function which will convert OffChanBandwidth value into required
value before fetching opclass. This is required for TDLS 5.9 Cert
Test Case.

Change-Id: Iba27034335309472d16a6aeef819995504674fc5
CRs-Fixed: 2457369
2019-08-05 07:49:51 -07:00
nshrivas
0248c92a83 Release 5.2.0.142E
Release 5.2.0.142E

Change-Id: I6436b4e6941fc64b39425f217bc1044daa3680d6
CRs-Fixed: 774533
2019-08-05 02:57:20 -07:00
Ashish Kumar Dhanotiya
017e502efa qcacld-3.0: Add support to get last available vdev info
FW sends vdev stats on vdev down, current host
implementation does not process this event as host is
only processing the stats events for which stats are
requested.
On vdev down FW sends the last available vdev stats and
based on that host updates it's RSSI on disconnect.
With CP stats infrastructure host is not processing
this event and is not updating rssi on disconnect.

To resolve this issue, add support to get last available
vdev stats from cp stats component with the help of a
callback registration.

Change-Id: If0741281140509624f6fdda4a270d99e2f58b61a
CRs-Fixed: 2493965
2019-08-05 02:57:19 -07:00
Ashish Kumar Dhanotiya
b0f0364ca5 qcacld-3.0: Add frequency in struct sSirMacChanInfo
As part of 6GHz regulatory update, channel numbers are
getting updated to corresponding frequencies, in this
update add frequency element in struct sSirMacChanInfo.

Change-Id: I1a18111a2b073164677b32fb6febc947df043bf2
CRs-Fixed: 2500361
2019-08-05 02:57:14 -07:00
nshrivas
74c6ef5913 Release 5.2.0.142D
Release 5.2.0.142D

Change-Id: I16a4156f69431600cdc2a8045126f8fc0bda811c
CRs-Fixed: 774533
2019-08-04 06:23:10 -07:00
guangde
963710d6e8 qcacld-3.0: enable legacy coex feature
Because newest firmware codes already been changed, the previous
coex configure command are invalid. Firmware need host driver
to enable WMI_SERVICE_THREE_WAY_COEX_CONFIG_LEGACY service during
wlan init. Add a new parameter "gThreeWayCoexConfigLegacyEnable" to
initial config file. If this parameter value is zero,set coex
priorities command will return error.

Change-Id: Ief1617e2ba5363e276c55135198613a0e54b71d5
CRs-Fixed: 2482734
2019-08-04 06:23:09 -07:00
nshrivas
a17a11619e Release 5.2.0.142C
Release 5.2.0.142C

Change-Id: Ie3868fd70a0c776835f60a128921b67c9075ea80
CRs-Fixed: 774533
2019-08-02 03:13:41 -07:00
Bala Venkatesh
961c9b8cba qcacld-3.0: Remove bss peer in case of vdev stop response failure
In case of failure in vdev stop response from FW, Along with
triggering SSR call the del_bss_response so that FW can clear
the bss peer.

Change-Id: Ibbf43f15796a9a13f922091d49fa6a22838aeaaf
CRs-Fixed: 2498497
2019-08-02 03:13:41 -07:00
nshrivas
df2870f0db Release 5.2.0.142B
Release 5.2.0.142B

Change-Id: I0ca2fa3cb475aef3784e7bf4c3c73e6efad8e707
CRs-Fixed: 774533
2019-08-02 02:04:34 -07:00
Will Huang
cac7e09e7d qcacld-3.0: Replace channel ID with frequency (bss_description 4)
Remove channelId from struct bss_description, and remove the
code where value assignment to channelId take place.

Change-Id: If37aca5f3e2211a73d546444aad2e5f9a4bada0a
CRs-Fixed: 2497438
2019-08-02 02:04:33 -07:00
nshrivas
e8507828be Release 5.2.0.142A
Release 5.2.0.142A

Change-Id: I28539a754e1b9e187a0aea20d1de14a96eadef35
CRs-Fixed: 774533
2019-08-02 00:43:41 -07:00
Paul Zhang
9d117c8b85 qcacld-3.0: Replace channel with channel frequency
Replace pre_cac_chan with pre_cac_freq and mon_chan
with mon_chan_freq in struct hdd_adapter.

Change-Id: I413ff83c244e1ebb7deaa2dec52df76b4b957f53
CRs-Fixed: 2496812
2019-08-02 00:43:41 -07:00
hqu
5af7254cec qcacld-3.0: Remove operationChannel from tagCsrRoamConnectedProfile
Remove operationChannel from structure tagCsrRoamConnectedProfile,
remove the code where value assigning to operationChannel take place.

Change-Id: If6c034e39c63fd78e6f08ff3daa85e0432438cff
CRs-Fixed: 2499775
2019-08-02 00:43:36 -07:00
Paul Zhang
427962da57 qcacld-3.0: Replace chan with chan_freq
Replace chan with chan_freq in hdd_chan_change_params.

Change-Id: I6e3b4de0e1322cb35500aa86fa4119c60faee36e
CRs-Fixed: 2496790
2019-08-02 00:43:32 -07:00
nshrivas
d992df85fe Release 5.2.0.142
Release 5.2.0.142

Change-Id: I9a9dc46d68cd863ea0d0553be4db61736cd382c7
CRs-Fixed: 774533
2019-08-01 16:24:05 -07:00
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