Commit Graph

16702 Commits

Author SHA1 Message Date
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
nshrivas
dbbca19444 Release 5.2.0.173O
Release 5.2.0.173O

Change-Id: Icc6e11ad9292771b8c62aa32baa5bb13d93cd9a2
CRs-Fixed: 774533
2020-02-28 00:19:49 -08:00
Jingxiang Ge
57c4bf2896 qcacld-3.0: Fix wlan_start_comp reset earlier issue
Issue happens when loading driver fail, it will enter pld_deinit,
as wlan_start_comp maybe reset before waiting in
wlan_hdd_state_ctrl_param_write, so once driver is unloaded,
the completion timeout happens 20s later, it will access invalid
wlan_start_comp.

Move init wlan_start_comp when creating wlan node, so it will not
cause completion timeout.

Change-Id: I9a8f43cdf9aa4c777272b7c28f1160e993c4dce4
CRs-Fixed: 2630479
2020-02-28 00:19:49 -08:00
nshrivas
12a95adb2d Release 5.2.0.173N
Release 5.2.0.173N

Change-Id: Iac6395dc1cf79f30ca7b5dd1678e2391a484302c
CRs-Fixed: 774533
2020-02-27 20:16:06 -08:00
Lincoln Tran
d28cdecf0d qcacld-3.0: Fix potential NULL dereference in wma_set_he_txbf_params()
Add check to catch null pointer dereference

Change-ID: I0ab1f297dbf6d2a6acaf7fb4b67c1d73170e295a
CRs-Fixed: 2628057
2020-02-27 20:16:06 -08:00
Vevek Venkatesan
7567bc26ee qcacld-3.0: map DSCP CS6(48) to UP AC_VO(7)
Changing the mapping of Differentiated Services Code
Point named CS6(48) to the User Priority AC_VO(7).

Change-Id: I167d8c6327a8b3c292f98baafb5baccfdfdfc277
CRs-Fixed: 2629716
2020-02-27 20:15:50 -08:00
nshrivas
8e9267fafe Release 5.2.0.173M
Release 5.2.0.173M

Change-Id: I1dfbd6261d5ca78876166ab734f228a240219601
CRs-Fixed: 774533
2020-02-27 18:49:44 -08:00
Yu Wang
caaa32ef90 qcacld-3.0: fix compilation error
The interface wlan_hdd_disconnect() was changed, add 'reason' parameter.

Change-Id: Icdd0e71a8ecbe5aaeffbb29b51c9fef33ab77ff8
CRs-Fixed: 2534768
2020-02-27 18:49:44 -08:00
nshrivas
c3e4b93d4c Release 5.2.0.173L
Release 5.2.0.173L

Change-Id: Iad66d6377954b733a92a62d553e65835320e6218
CRs-Fixed: 774533
2020-02-27 13:16:04 -08:00
Kiran Kumar Lokere
f01581d180 qcacld-3.0: Fix issue in populating VHT capabilities for TDLS
If AP-STA connection is non-VHT mode then VHT capabilities are not
included in TDLS frames as the session is not VHT capable.
Correct the condition to populate VHT capabilities for TDLS.

Change-Id: I993e495255d7b82e32500e051cc2b296df00aa03
CRs-Fixed: 2627299
2020-02-27 13:16:04 -08:00
nshrivas
586e34054b Release 5.2.0.173K
Release 5.2.0.173K

Change-Id: Ic0c26dbca9814789df23d37d802f611f0bd31617
CRs-Fixed: 774533
2020-02-27 11:44:49 -08:00
Vulupala Shashank Reddy
af204caea6 qcacld-3.0: Add support to include ACK status and tx retry count
Extend radiotap header to append ACK status and tx retry count
for packets sent to virtual mon interface.

Change-Id: If110a7de736c3efc0d477617089669104c6f1690
CRs-Fixed: 2627707
2020-02-27 11:44:49 -08:00
nshrivas
239d58974a Release 5.2.0.173J
Release 5.2.0.173J

Change-Id: I8e3619585eceb7b4deb04867f1589d4d60a78c2f
CRs-Fixed: 774533
2020-02-27 10:16:22 -08:00
Vulupala Shashank Reddy
13b07929c6 qcacld-3.0: Fix OUT OF SYNC for Mgmt Tx Pkts on Virtual Mon Interface
For the MON Interface, sometimes Mgmt Tx Pkts are captured after Rx
Pkts get captured in tcpdump. This is happening because Tx Pkts are
sent to mon after waiting for Tx completion.

Now Mgmt Tx frames are sent twice to MON interface, one without
waiting for Tx completion with magic number as status field, so
that the Tx Pkts get captured in tcpdump before Rx Pkts and normal
Tx Pkts get captured, which is after Tx completion will remain same.

Change-Id: Idfc65087bd62cd8ef64306501b600caec424ba02
CRs-Fixed: 2627716
2020-02-27 10:16:21 -08:00
Vulupala Shashank Reddy
d493c152c9 qcacld-3.0: Record the channel number for pktcapture mode
For packet capture mode, record the channel number on
which STA vdev is operating on.

Change-Id: Id52536b5b238dc1e4fe4c612a651c6fe8ddc17d3
CRs-Fixed: 2627713
2020-02-27 10:15:57 -08:00
nshrivas
b43e1bc3ee Release 5.2.0.173I
Release 5.2.0.173I

Change-Id: I3a34fbc02ecac080e8b03a61df5a2c17d6e3df27
CRs-Fixed: 774533
2020-02-27 06:28:59 -08:00
nshrivas
2bd73abba7 Release 5.2.0.173H
Release 5.2.0.173H

Change-Id: I8b518dc419b5fe039983401b26f0a175471e2f6c
CRs-Fixed: 774533
2020-02-26 22:38:38 -08:00
Srinivas Dasari
ef0a3e18c6 qcacld-3.0: Log disconnect reason with info level
Currently, driver logs the internal reason code and IEEE80211
reason code with debug level. But internal and IEEE80211 reason
codes are same if the disconnect reason code is in the range of
IEEE80211 reason codes. So the log info would be redundant.
Log internal reason code and corresponding vendor reason code
to be specific. Log this with INFO level so that it's logged to
default kernel logs.

Change-Id: I7b85285b626b492da5e55756c020428e498e56c5
CRs-Fixed: 2629630
2020-02-26 22:38:38 -08:00
nshrivas
4221c958d1 Release 5.2.0.173G
Release 5.2.0.173G

Change-Id: Ic0ced0366f67ec62dfa4f2b5bc4ae5c8f37aba3c
CRs-Fixed: 774533
2020-02-26 20:46:31 -08:00
Nirav Shah
80338b1553 qcacld-3.0: Disallow TKIP/WEP with HT supported client
As softap, send assoc failure if HT supported client try to associate
as WEP/TKIP pairwise key.

Change-Id: Ifcf13eaf3d0d8a48f7e32b675bd53a98611af964
CRs-Fixed: 2616083
2020-02-26 20:46:31 -08:00
nshrivas
9916bd2bbc Release 5.2.0.173F
Release 5.2.0.173F

Change-Id: I0ba52b24591c47608517a451955f575dd239558e
CRs-Fixed: 774533
2020-02-26 18:05:17 -08:00
Abhishek Ambure
da80602fa6 qcacld-3.0: Restore default RSO configs in driver only on disconnect
Restore default RSO configs in host driver on disconnect, as vdev state
in the firmware is VDEV_STOP no need to update default RSO configs
in firmware.

Change-Id: I061dbfcc5e3fb5350a7fe240d8b1405e1548d7d5
CRs-fixed: 2627107
2020-02-26 18:05:16 -08:00
nshrivas
6742cc69fa Release 5.2.0.173E
Release 5.2.0.173E

Change-Id: Ic6e14000fcb08687f85184eea13e9d644edf1a52
CRs-Fixed: 774533
2020-02-26 16:33:37 -08:00
Abhishek Singh
a7d74b38d6 qcacld-3.0: Remove unnecessary enter exit from PMO functions
Remove unnecessary enter exit from PMO functions.

Change-Id: I5b15d5d943f91fad68dfdf98a0f343e6c1379364
CRs-Fixed: 2628634
2020-02-26 16:33:23 -08:00
nshrivas
4e52b4793e Release 5.2.0.173D
Release 5.2.0.173D

Change-Id: I4eb00463908acecde46a1892c454d7c070d26bea
CRs-Fixed: 774533
2020-02-26 14:56:29 -08:00
Surabhi Vishnoi
4eaa25c659 qcacld-3.0: Add sysfs entry to display ftm time sync offset
Add the sysfs entry ftm_time_sync in STA mode to show the offset
derived for the STA(slave) with respect to connected AP(master).

Change-Id: I05b16ccdb983c53fb86eeb14ba98bd3cc9a2dce6
CRs-Fixed: 2621152
2020-02-26 14:56:29 -08:00
nshrivas
21ca52c9e4 Release 5.2.0.173C
Release 5.2.0.173C

Change-Id: I67fecb1a43e2daee4f32eaefa9c90c2526b62c01
CRs-Fixed: 774533
2020-02-26 11:39:46 -08:00
Amar Singhal
76fa967535 qcacld-3.0: Register for blacklist event from roam offload
BTM blacklist event is not an extscan event. Instead, register it from
roam offload.

Change-Id: I58ff19f0e95e098625f79d5ca3c990df2d516dfd
CRs-Fixed: 2626176
2020-02-26 11:39:46 -08:00
Abhishek Singh
d5712927b2 qcacld-3.0: Improve logging in driver
Improve logging in driver by avoiding unnecessary error prints
and combining logs.

Change-Id: Ibab9067aa1bce992f36fca22a5aed88e8d85ba25
CRs-Fixed: 2627549
2020-02-26 11:39:28 -08:00
hqu
9ab959e9b1 qcacld-3.0: Fix double free for master_freq_list
Bring up dual SAP with acs mode in 5G band, when the first SAP start
on DFS channel, the second SAP will choose the same DFS channel with
wlan_hdd_sap_cfg_dfs_override(), but it misses
free/malloc/copy operation for master_freq_list so that the second
SAP use the same master_freq_list pointer as the first SAP, when stop
dual SAP it will cause master_freq_list double free
from sap_undo_acs().

Fix is to add free/malloc/copy operation for master_freq_list.

Change-Id: I2fa2e37899ca0a5ce25941b82b46c5672a27d8eb
CRs-Fixed: 2629301
2020-02-26 11:39:10 -08:00
nshrivas
c7d351f031 Release 5.2.0.173B
Release 5.2.0.173B

Change-Id: I90ea18d781dbf514dd2e9f41597521d94ef280be
CRs-Fixed: 774533
2020-02-26 10:06:39 -08:00