Commit Graph

16732 Commits

Author SHA1 Message Date
Rajeev Kumar
dd2a53d62c qcacld-3.0: Add policy attribute to SUBCMD_THERMAL_CMD
According to new changes in kernel 5.2 version onwards, driver has to
provide the policy for a NL command to be verified against while
registering wiphy to the kernel.

To satisfy kernel 5.2 requirement add policy to following vendor
command as part of this change:
	QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD

Change-Id: Ia5a5e62b3fe086c3fab58d92d12898f525f774b8
CRs-Fixed: 2631242
2020-03-05 00:19:41 -08:00
nshrivas
8b6b07db0a Release 5.2.0.174J
Release 5.2.0.174J

Change-Id: I4f264f43128d0cf43cfced17d0066bf9142fe84b
CRs-Fixed: 774533
2020-03-04 21:18:44 -08:00
Srinivas Girigowda
8dfd6ad4c6 qcacld-3.0: Add policy attribute to SUBCMD_ENCRYPTION_TEST
According to new changes in kernel 5.2 version onwards, driver has to
provide the policy for a NL command to be verified against while
registering wiphy to the kernel.
To satisfy kernel 5.2 requirement, add policy to following vendor
command as part of this change:
	QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST

Change-Id: I37836165dc8ff89f7179d5024cc3b1516cacf6e6
CRs-Fixed: 2633303
2020-03-04 21:18:44 -08:00
Mohit Khanna
0fe3ebdd3b qcacld-3.0: Add HIF callback API to get BW level
Expose API in HDD, so HIF can callback to get the current bandwidth
level.

Change-Id: If65533a99e5d30ab66c4be20c8eb13b1bd1f033b
CRs-Fixed: 2618015
2020-03-04 21:18:28 -08:00
Mohit Khanna
26c0017421 qcacld-3.0: Enable HAL module in cinfo
Enable QDF_MODULE_ID_HAL in cinfo as a datapath module

Change-Id: I2d10e657db88e00b85a0f2c97c404578f0f909d4
CRs-Fixed: 2618015
2020-03-04 21:18:14 -08:00
nshrivas
80a7f147f0 Release 5.2.0.174I
Release 5.2.0.174I

Change-Id: Ie29413678175a28efb62b7543bf8965972ac272c
CRs-Fixed: 774533
2020-03-04 19:48:16 -08:00
Sourav Mohapatra
bfa435bccc qcacld-3.0: Pass double pointer to hdd_softap_deregister_sta
The function hdd_softap_deregister_sta takes the sta_info as the
argument and calls hdd_sta_info_detach. In hdd_sta_info_detach, the
memory assigned to the sta_info is being freed. For this memory to be
properly freed and set to NULL, the actual memory location must be
passed to the function; which is currently not happening.

Pass the actual memory location by reference using a double pointer so
that the memory cleanup is proper.

Change-Id: If0f846957df0378ea7a13b76bdf9c6ef562ed90e
CRs-Fixed: 2627296
2020-03-04 19:48:16 -08:00
nshrivas
f2e2e19c66 Release 5.2.0.174H
Release 5.2.0.174H

Change-Id: Ib6e5f75b736f9869229aa6eb21f13845ae1883bb
CRs-Fixed: 774533
2020-03-04 15:32:07 -08:00
Pragaspathi Thilagaraj
2459400ed5 qcacld-3.0: Print SSID info when beacon report request is received
Currently the ssid received in the beacon report request is not
printed when beacon report is received from AP in the kmsg.

Fix to print the SSID if its present in the beacon report
request.

Change-Id: Ide4659e955dec756f60b0508eb3be529c43601b3
CRs-Fixed: 2632653
2020-03-04 15:32:07 -08:00
Pankaj Singh
8cf6c634b6 qcacld-3.0: Disable all roam scan in case p2p connection is present
Glitches seen after the STA disconnection because of the roam scan
triggered on a heartbeat failure ( beacon miss ).STA does a partial
scan followed by full scan causing the DUT to go off-channel from
the STA and P2P home channel, causing the music BLIP.

Fix is to disable roaming irrespective of data traffic present
or not on P2P interface and enabled again once P2P is disconnected.

Change-Id: I5ddf946adbfbe99d5b20c23c46b2b4ac0bfac47f
CRs-Fixed: 2632939
2020-03-04 15:31:46 -08:00
nshrivas
f120c86ba3 Release 5.2.0.174G
Release 5.2.0.174G

Change-Id: Icb14bce663aae0c8fb80399c9569d4153f182df8
CRs-Fixed: 774533
2020-03-04 14:10:30 -08:00
Naman Padhiar
c16cd55f65 qcacld-3.0: Add V2 shadow config for WCN6750
Add shadow configuration version 2 for WCN6750.

Change-Id: I7472b22a83ae4d83ac87f3c064de60f1b07d1e4b
CRs-Fixed: 2633612
2020-03-04 14:10:30 -08:00
nshrivas
d035e7fe45 Release 5.2.0.174F
Release 5.2.0.174F

Change-Id: I309f8c84fbd983525230b2442ebede591d22a0a5
CRs-Fixed: 774533
2020-03-04 04:22:56 -08:00
Rajeev Kumar
f4627be10a qcacld-3.0: Add policy attribute to MPTA_HELPER_CONFIG
According to new changes in kernel 5.2 version onwards, driver has to
provide the policy for a NL command to be verified against while
registering wiphy to the kernel.
To satisfy kernel 5.2 requirement add policy to following vendor
command as part of this change:
	QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG

Change-Id: Id83ee15ec7eb43103e44505f44fb9ff48cb23f74
CRs-Fixed: 2634109
2020-03-04 04:22:56 -08:00
gaurank kathpalia
ba1d641b44 qcacld-3.0: Disconnect after roam fail
Correct the condition for disconenction
after roam invoke fail.

Change-Id: Ia77a203477b440fc279e1cf9a08d327d073f32d0
CRs-Fixed: 2628455
2020-03-04 04:22:30 -08:00
nshrivas
b66791e9f4 Release 5.2.0.174E
Release 5.2.0.174E

Change-Id: I759f2ee1a73bbafc014c00a8f9d134391c5bbf14
CRs-Fixed: 774533
2020-03-04 03:00:30 -08:00
Yeshwanth Sriram Guntuka
c35cf29a42 qcacld-3.0: Use appropriate mac addr when fetching sta info
In SAP mode, as part of dhcp inspection, sta info is fetched
using the source address of the packet irrespective of
direction. This results in sta info fetch failure in case
of dhcp tx frames where source address is self mac address
which is not registered as part of SAP start. Due to this,
when sending dhcp ack frame, tx comp flag is not set in nbuf
cb causing dhcp stop ind to be not sent to firmware.

Fix is to use dhcp client mac address to fetch sta info.

Change-Id: Ia61b93d24f3d069b40fe8ffa5ee7b6ba1e30e7c5
CRs-Fixed: 2632275
2020-03-04 03:00:30 -08:00
nshrivas
52749166c0 Release 5.2.0.174D
Release 5.2.0.174D

Change-Id: Id2352fa87edc23bbfc897cd1c9cd79e41ed67f90
CRs-Fixed: 774533
2020-03-04 01:26:45 -08:00
Rajeev Kumar
b15cacfbfc qcacld-3.0: Add policy attribute to SUBCMD_COEX_CONFIG
According to new changes in kernel 5.2 version onwards, driver has to
provide the policy for a NL command to be verified against while
registering wiphy to the kernel.
To satisfy kernel 5.2 requirement add policy to following vendor
command as part of this change:
	QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG

Change-Id: I865ec470e1b24d1e4c5094648435ea7020a01af8
CRs-Fixed: 2634095
2020-03-04 01:26:45 -08:00
Rajeev Kumar
4e80a0a550 qcacld-3.0: Add policy attribute to WIFI_TEST_CONFIGURATION
According to new changes in kernel 5.2 version onwards, driver has to
provide the policy for a NL command to be verified against while
registering wiphy to the kernel.
To satisfy kernel 5.2 requirement add policy to following vendor
command as part of this change:
	QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION

Change-Id: I91a97a17fa27f93f20385a250f098d5b01081023
CRs-Fixed: 2634072
2020-03-04 01:26:38 -08:00
Liangwei Dong
2b91d47b11 qcacld-3.0: Update peer mac addr before set WEP key
In WEP SAP mode, the ping between SAP and client is failed
because in the SAP side the firmware has no unicast key
for peer mac address. The default address in key context is
SAP bssid.
Update the peer mac address before set key to firmware for
the WEP peer.

Change-Id: Ia5ba4612d0cc0f9900c72baf1c37bd278b526389
CRs-Fixed: 2599289
2020-03-04 01:26:19 -08:00
nshrivas
beb588772a Release 5.2.0.174C
Release 5.2.0.174C

Change-Id: I931d0afbc500287bb05e6a68039a2fc24da50411
CRs-Fixed: 774533
2020-03-03 22:19:54 -08:00
Liangwei Dong
75698c2414 qcacld-3.0: Fix Beacon report invalid channel issue
11K test bed sends beacon report request for channel 48 with
invalid reg class 0 to DUT. So, driver gets chan_freq 0 by API
wlan_reg_chan_opclass_to_freq because of reg class 0.
To get correct channel freq for beacon report request, use new
API wlan_reg_country_chan_opclass_to_freq to
get freq from country operating class table firstly by (opclass,
channel number) pair. When the lookup is failed, the API will
try to look up by chan number only.

Change-Id: I5b56804c20d6fade17b2acaa0f7c261feebd6370
CRs-Fixed: 2603989
2020-03-03 22:19:39 -08:00
Dundi Raviteja
b3134da83d qcacld-3.0: Check pmf status while processing mgmt packets
Add pmf status checks while processing management packets
in packet capture component.

Change-Id: I04e1f7eb33573a3f77f53f9ffbdf0781041be100
CRs-Fixed: 2633851
2020-03-03 22:19:17 -08:00
nshrivas
8f7a399011 Release 5.2.0.174B
Release 5.2.0.174B

Change-Id: I27abe587f53a56faba736415281a761c9f8ed351
CRs-Fixed: 774533
2020-03-03 18:53:31 -08:00
Bapiraju Alla
b9c36856fa qcacld-3.0: Periodically print ARP and DNS stats after STA association
Currently no stats were printed related to ARP and DNS frames at STA
after initial association or after roaming complete.

To print these logs, add INI configuration and a periodic timer to
print ARP and DNS stats after initial association or after roaming
complete. This is an optional feature controlled by
'WLAN_FEATURE_PERIODIC_STA_STATS' flag.

Change-Id: I373632cc35584728c5b556bb28eda1077d51fd9b
CRs-Fixed: 2619383
2020-03-03 18:52:46 -08:00
nshrivas
4bf9b0363b Release 5.2.0.174A
Release 5.2.0.174A

Change-Id: I35c2c395513c05fd758f6631108612a239148b80
CRs-Fixed: 774533
2020-03-03 15:54:57 -08:00
Abhishek Ambure
ea0df50852 qcacld-3.0: Update roam count in LFR3 roaming
User get BSS stats for the command response of GETBSSINFO. Driver saves
BSS info of the connected AP in HDD's station context. For every
association completion, driver updates BSS info stats.

In LFR3 roaming, Roam sync state in the CSR layer is set to 1 if STA
associates with new AP because of roaming. Thus for LFR3 roaming, driver
uses roam sync state to update roam count while processing association
completion.

Change-Id: Ia75f4c7b049a0546b2922d890cb3c12f6f4513a2
CRs-Fixed: 2632421
2020-03-03 15:54:56 -08:00
Naman Padhiar
518bb3f170 qcacld-3.0: Set platform driver support for WCN6750
Set platform driver support as true for WCN6750.

Change-Id: I52126f263bbc11725531e86defb69010c77b6b9e
2020-03-03 15:54:44 -08:00
nshrivas
e5ab05b818 Release 5.2.0.174
Release 5.2.0.174

Change-Id: I24e570ac994fa100e0238e043c2968921e3bace5
CRs-Fixed: 774533
2020-03-03 14:16:46 -08:00
nshrivas
d95ac82d6d Release 5.2.0.173Z
Release 5.2.0.173Z

Change-Id: I85f0164ad8588e09e15b83e4bba2e2aef93ad9bb
CRs-Fixed: 774533
2020-03-03 00:48:36 -08:00
Arun Kumar Khandavalli
62814f8ac4 qcacld-3.0: stop the idle restart timer before reading the driver status
If the idle restart is not stopped before reading the driver status
the driver status could be changed in the other thread leading to
different issues.

Stop the idle restart timer before reading the driver status, so
the next action depending on the driver status can be taken correctly.

Change-Id: Ida7fe3fe8144e300344d29cae8188b64f074b3bb
CRs-Fixed: 2626500
2020-03-03 00:48:30 -08:00
nshrivas
198c006aa9 Release 5.2.0.173Y
Release 5.2.0.173Y

Change-Id: Iccfe0a17df22b0d664d1fa37d30d114e5d3118ea
CRs-Fixed: 774533
2020-03-02 20:26:46 -08:00
nshrivas
fd4a85f373 Release 5.2.0.173X
Release 5.2.0.173X

Change-Id: Ibf5928d593643a83c44c177a676b114727a1fae0
CRs-Fixed: 774533
2020-03-02 17:45:25 -08:00
Yue Ma
a37a0fb1d8 qcacld-3.0: Add APIs to prevent and allow PCIe enter L1 state
Add PLD APIs to prevent and allow PCIe enter L1 state and L1ss
states.

Change-Id: If5cfb4938aa1e5db277d6a8a381a6a9b6f961bc2
CRs-fixed: 2621669
2020-03-02 17:45:25 -08:00
nshrivas
aedfdd5db5 Release 5.2.0.173W
Release 5.2.0.173W

Change-Id: I2d46ed22f70b46c83e9694a18fe478cf5ffa90ec
CRs-Fixed: 774533
2020-03-02 16:00:57 -08:00
Pragaspathi Thilagaraj
63eb6363dc qcacld-3.0: Introduce ini for roam_triggers including sta kickout trigger
Introduce ini for roaming_triggers to enable/disable specific
roaming triggers. This will be the master ini to control roaming
triggers. If this ini is set to zero, roaming will not be enabled
on the sta interface unless its enabled via vendor command.
A new roaming trigger - Sta kickout roaming is introduced in
firmware, include this bit support also in the ini.

The value of this ini will be sent over the wmi command
WMI_ROAM_ENABLE_DISABLE_TRIGGER_REASON_CMDID during RSO start.
Reset this value to 0 during RSO stop if RSO stop is due to
disconnect or roam synch failure.

Change-Id: I02f207cdde9d8fb68cd91fab07572baa9e7ac50d
CRs-Fixed: 2631712
2020-03-02 19:12:34 +05:30
nshrivas
d62d38b464 Release 5.2.0.173V
Release 5.2.0.173V

Change-Id: Ie2d814a9a2c814c883a419ef77ee46e8454234dd
CRs-Fixed: 774533
2020-02-29 05:21:04 -08:00
sheenam monga
56b4d46146 qcacld-3.0: Include/Exclude roam reason dynamically in reassoc frame
Currently, if roaming happens roam reason is not sent to AP. AP will
not able to know why roaming happened. As roaming is offloaded to
firmware, firmware will include roam reason vsie based on driver
indication by vdev param
WMI_VDEV_PARAM_ENABLE_DISABLE_ROAM_REASON_VSIE based on
below conditions:

Parse the QCA attribute CONFIG_ROAM_REASON to control
inclusion/exculsion of roam reason vsie dynamically. Vendor subcommand
QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION can control roam
reason vsie inclusion using QCA atrribute CONFIG_ROAM_REASON.
Different operations required to implement this feature can be
specified in QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON, so driver parses
CONFIG_ROAM_REASON, updates enable_roam_reason_vsie and indicates to
firmware by updating vdev param.

a.) If Userspace wants the firmware to include roam reason in reassoc
    frame, it can send QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON with
    value 1 and driver will update enable_roam_reason_vsie  to 1.
    Driver will update vdev parameter
    WMI_VDEV_PARAM_ENABLE_DISABLE_ROAM_REASON_VSIE, so that firmware
    can include roam reason vsie in reassoc frame during roaming.
b.) If this command is not issued, the default behavior of the
    firmware is not to include err reason code in beacon report
    response. Driver will send default value of
    enable_roam_reason_vsie to firmware which is 0.
c.) The userspace requests the firmware to stop roam reason vsie
    reporting when roam reason is not required for AP anymore. If
    userspace doesn't want the roam reason  inclusion, userspace can
    send QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON with value 0 and
    driver will update enable_roam_reason_vsie and notify firmware to
    exclude roam reason.
If userspace requests the driver to get the status of
enable_roam_reason_vsie , to check whether firmware includes roam
reason vsie or not, driver will fill CONFIG_ROAM_REASON attribute and
will update to userspace.

Change-Id: I063c822e99fd6908bd4188b429ffa6a2031cee5d
CRs-Fixed: 2624713
2020-02-29 05:20:40 -08:00
nshrivas
0df7f82004 Release 5.2.0.173U
Release 5.2.0.173U

Change-Id: I44cf604e76344a47d461db54acd7ef2692c2f9db
CRs-Fixed: 774533
2020-02-29 01:08:19 -08:00
bings
839a2e8cd1 qcacld-3.0: update he cap for ft_session->ftPEContext.pAddBssReq
In roaming when preparing pAddBssParams in lim_ft_prepare_add_bss_req,
it should update he cap like lim_sta_send_add_bss_pre_assoc, otherwise
wma_set_bss_rate_flags_he can't be triggered.

Change-Id: I0fe4f7f6e4db076e3e79e6bd81257e44ec3ae682
CRs-Fixed: 2628459
2020-02-29 01:08:18 -08:00
nshrivas
d33c3dd5d0 Release 5.2.0.173T
Release 5.2.0.173T

Change-Id: I2a849f8087e35bb56871d5b3b40a60f79a234991
CRs-Fixed: 774533
2020-02-28 16:31:16 -08:00
Pragaspathi Thilagaraj
710ce8f85c qcacld-3.0: Fix set keys for FILS connection
For FILS connection with FILS auth algo, the keys are derived
at the driver and set key is done in the join response path.
In this path, if the security profile is not WEP, set key is
not done. So for FILS case set broadcast keys returns failure
and unicast keys are also not set.

Check the add_key flag also before returning error in set-keys.
Also store the keys in crypto component so that it can be used
at target-if layer to send the unicast/broadcast keys to firmware.

Change-Id: Ia0feb0c9d213ffe50e42b3e67b7074b19898918e
CRs-Fixed: 2625992
2020-02-28 16:31:16 -08:00
nshrivas
05bae21a0b Release 5.2.0.173S
Release 5.2.0.173S

Change-Id: I14864fb308a9eeb7967c6528c5566d03aa6c3bae
CRs-Fixed: 774533
2020-02-28 09:09:52 -08:00
nshrivas
d2b5ff8cf1 Release 5.2.0.173R
Release 5.2.0.173R

Change-Id: I252de70fd596680181cc8977f274561dd36814fe
CRs-Fixed: 774533
2020-02-28 07:25:52 -08:00
Ananya Gupta
4df4cd18a5 qcacld-3.0: Check peers in other vdev
Update vdev value after every iteration to find the same
peer id.

Change-Id: I30763a1669da3e4637f4017c29955356235bb2bd
CRs-Fixed: 2628586
2020-02-28 07:25:52 -08:00
nshrivas
abd82b85c2 Release 5.2.0.173Q
Release 5.2.0.173Q

Change-Id: I8240ba53db2b51d117d8e4b7caefc9c5c860c7be
CRs-Fixed: 774533
2020-02-28 05:55:55 -08:00
Huashan Qu
1b3be2948e qcacld-3.0: dynamic channel switch implementation
When dynamic channel switch is enabled, trigger acs and switch to best
channel if wlan interference is found in 5g mac.

Change-Id: I56661f5c42a233a0dc0a6400d75cb8f5c0019706
CRs-Fixed: 2599176
2020-02-28 05:55:45 -08:00
nshrivas
95a3f0e53a Release 5.2.0.173P
Release 5.2.0.173P

Change-Id: Id03dceca427f69b0792212b63b7857ef0dca4f3a
CRs-Fixed: 774533
2020-02-28 04:21:32 -08:00
hqu
a68cf9241a qcacld-3.0: Set er_su_disable with peer assoc cmd
Peer assoc cmd always carry er_su_disable with value 0 through
peer_he_ops, it's wrong. When er_su_disable set with value 1
from ref-ap assoc rsp cmd, sta's er_su_disable with peer assoc
cmd should also follow with ref-ap's er_su_disable setting.

Fix is to set er_su_disable from he_op of tpAddStaParams.

Change-Id: Id96f2865ec1ff953478b9519928fe3c766c96e99
CRs-Fixed: 2625546
2020-02-28 04:21:32 -08:00