Commit Graph

17589 Commits

Author SHA1 Message Date
Rakesh Pillai
79098d2cc9 qcacld-3.0: Add INI support to handle latency critical clients
Add a new ini to enable/disable the handling of the
latency critical clients (eg: 11g/a) in the bus
bandwidth timer.

Change-Id: I4b8966aa29ffc2ca236098cb83b8db0e160b776b
CRs-Fixed: 2695042
2020-06-03 13:33:25 -07:00
nshrivas
2a48eadd2d Release 5.2.0.188W
Release 5.2.0.188W

Change-Id: I7272c9ed00e833964558190aad9b75ab0f3a9801
CRs-Fixed: 774533
2020-06-03 09:27:40 -07:00
Min Liu
50ac9a47d4 qcacld-3.0: QCA vendor command for add / delete TSPEC
Add QCA vendor subcommands QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC
to add / delete TSPEC in STA mode.
The attributes defined in enum qca_wlan_vendor_attr_config_tspec
are used to encapsulate required information.

Change-Id: I9553fba1189d562f6f0205e86b281172213344ba
CRs-Fixed: 2686250
2020-06-03 09:27:39 -07:00
Min Liu
faed961a98 qcacld-3.0: Set Wi-Fi configurations - TX AMSDU, RX AMSDU
Add attributes in SET(GET)_WIFI_CONFIGURATION to dynamically
configure capabilities - TX AMSDU, RX AMSDU.

Change-Id: I17d3c5d32987e638805cdaf5fe48ba3036b3ff22
CRs-Fixed: 2687303
2020-06-03 09:27:36 -07:00
nshrivas
3fa762de92 Release 5.2.0.188V
Release 5.2.0.188V

Change-Id: I0a09bac7a064e12a796e73e407d5b51f15c239bb
CRs-Fixed: 774533
2020-06-03 08:08:03 -07:00
Gururaj Pandurangi
7fe6ad582f qcacld-3.0: Validate mac_ctx before using it
Validate mac_ctx before dereferencing it.

Change-Id: Iba786647c5a54e0a67ff7b9cbb0dbaea3bd52d76
CRs-Fixed: 2699734
2020-06-03 08:08:03 -07:00
nshrivas
f63fa412aa Release 5.2.0.188U
Release 5.2.0.188U

Change-Id: Ifff9fa4c2f699bab1f98093eabefe4e2a4ea8738
CRs-Fixed: 774533
2020-06-03 00:45:36 -07:00
Rajesh Chauhan
b4a3dddcc6 Revert "qcacld-3.0: flush batched GRO_NORMAL packets"
This reverts Change-Id: Ib3e851c0822a85c4712a1b817cc19dfecf6d0e7a.
First we need to get ABI snapshot/Whitelist updated for the new
kernel API being used in this change and then only we can promote
this change. To unblock promotion, revert this change for now.

Change-Id: I8aae0fe64623034486c9db6275a16654119c06bd
CRs-Fixed: 2673959
2020-06-03 00:45:36 -07:00
Lincoln Tran
e8fee5584c Revert "qcacld-3.0: Update hdd_data_stall_process_event"
This reverts Change-Id: Id4d2eaaa2262d7fe2dd6241ae4581a3d0cb09805.

This change is incorrect because the caller passes in the
bodyptr directly to parameter. The change incorrectly dereferences
the parameter.

Change-Id: Iaaedae1a3498fc1c10024083ee98ce97c3401f82
CRs-fixed: 2701124
2020-06-03 00:45:32 -07:00
nshrivas
265fe56111 Release 5.2.0.188T
Release 5.2.0.188T

Change-Id: I17e49cff361a42cd32b6db83fd18a39ffd243f92
CRs-Fixed: 774533
2020-06-02 15:19:13 -07:00
ngong
9d23242e68 qcacld-3.0: Check gIPAConfig before setting ipa flag to fw
Currently if kernel enable CONFIG_IPA3, wlan driver will directly
send IPA enabling flag to firmware, not checking gIPAConfig.
It lead to IPA disabled in driver but enabled in fw, causing fw crash
for some target like Genoa. 

Correct logic is to check gIPAConfig before configure firmware.

Change-Id: I6e85c6bf3831029826bf279237eac2cc3a1ff07f
CRs-Fixed: 2698953
2020-06-02 15:19:13 -07:00
nshrivas
e9d4b3c893 Release 5.2.0.188S
Release 5.2.0.188S

Change-Id: Ib87aa2b4bb32a182bd8381c23222c11713c173de
CRs-Fixed: 774533
2020-06-02 13:33:01 -07:00
Jinwei Chen
d3f4ccf4d6 qcacld-3.0: add vdev->osif_rx failure handling for fisa path
Currently there is no vdev->osif_rx result check in fisa path,
so if vdev->osif_rx returns failure, the RX skb may not have been
handled and it may be leaked.

Add vdev->osif_rx failure handling to avoid skb leak.

Change-Id: I6c194c31bbe71cba5c56c2b93f505225de439b72
CRs-Fixed: 2695084
2020-06-02 13:33:01 -07:00
Dundi Raviteja
8cd3c79d59 qcacld-3.0: Add calls to disable pkt capture events
Add calls to disable packet capture events and
delete monitor interface while sta interface is
going down if packet capture mode is enabled.

Change-Id: I4094e072ac723348d4d0d8a4ccefb5bf2b77e6d5
CRs-Fixed: 2647503
2020-06-02 13:32:56 -07:00
nshrivas
9b1c3c0ea9 Release 5.2.0.188R
Release 5.2.0.188R

Change-Id: I06b7e17a863e06e75ed7a51db4d854bce75ffdba
CRs-Fixed: 774533
2020-06-02 08:37:36 -07:00
nshrivas
9458987fb8 Release 5.2.0.188Q
Release 5.2.0.188Q

Change-Id: Iccbc6cd16057203f3b3034102f8d00aae141fc2f
CRs-Fixed: 774533
2020-06-02 07:01:45 -07:00
Nirav Shah
f8dec49049 qcacld-3.0: Check CFG_TGT_DEFAULT_MAX_STA_VDEVS for P2P-CLI mode
In FW CFG_TGT_DEFAULT_MAX_STA_VDEVS considers total no of
STA and P2P-CLI vdevs. Enable CFG_TGT_DEFAULT_MAX_STA_VDEVS
check for P2P-CLI mode.

Change-Id: Ic21cf39628e7ad19102b040ffdf493a14205043a
CRs-Fixed: 2680645
2020-06-02 07:01:45 -07:00
nshrivas
44fa70c1a8 Release 5.2.0.188P
Release 5.2.0.188P

Change-Id: I2f84b8adc4ee5e75d2d44ca08c4e7d576894e2ee
CRs-Fixed: 774533
2020-06-01 23:13:28 -07:00
Bapiraju Alla
7740bf96b9 qcacld-3.0: Log Tx power setting in the driver
Log tx power value in the driver before sending to firmware

Change-Id: I602612433407e89bfa5288fa89a181a0db329f71
CRs-Fixed: 2699480
2020-06-01 23:13:27 -07:00
Bapiraju Alla
498953e600 qcacld-3.0: Update rx retry count in peer stats
Currently, Rx retry count statistic is not supported by firmware.
So host driver also not updating the corresponding statistic in
peer stats. Datapth is updating this counter using retry bit in the
rx MPDU. Update peer Rx retry count value from data path.

Change-Id: I4fd422faa7a766090991c461cd6fd2cc70d2fcc3
CRs-Fixed: 2691704
2020-06-01 23:13:20 -07:00
nshrivas
7229b508f4 Release 5.2.0.188O
Release 5.2.0.188O

Change-Id: Ie8f3bed03886137ff2b9fa82bd2343d446fc1f71
CRs-Fixed: 774533
2020-06-01 21:47:46 -07:00
Srinivas Dasari
698272c0b7 qcacld-3.0: Replace NLA_UNSPEC with NLA_BINARY
NLA_UNSPEC usage is restricted from kernel version 5.4 by adding
a strict check while validating the nla_policy. The advantage
of this is that types not specified in the policy will be
rejected.
Driver can give exception to NLA_UNSPEC by setting
strict_start_type in the policy of a vendor command to NLA_U8
or some greater value. But it's better to set the type to a
valid type so that kernel can validate.
So, use NLA_BINARY with valid length instead of NLA_UNSPEC.

Change-Id: If6d559a3aa7b8719a515e00e271e313c02f8135f
CRs-Fixed: 2692293
2020-06-01 21:47:46 -07:00
nshrivas
30a9a85c61 Release 5.2.0.188N
Release 5.2.0.188N

Change-Id: Ia52189c4f800801164bf53f6f82b612eadcda9c2
CRs-Fixed: 774533
2020-06-01 20:30:00 -07:00
Abhinav Kumar
7f67effb98 qcacld-3.0: Fix connection failure with SAP in WPA3 mode
In case if the EXTERNAL_AUTH_SUPPORT is present natively
in kernel, then the backport flag CFG80211_EXTERNAL_AUTH_SUPPORT
will not be present.

Currently host checks for defined(CFG80211_EXTERNAL_AUTH_SUPPORT)
flag to register ops for external_auth. This results in external
auth fail in the above case.

In the driver all instances of
“defined(CFG80211_EXTERNAL_AUTH_SUPPORT)” should be paired with
|| (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0))

where 4.17.0 is the kernel version where the external auth support
gets added to the upstream kernel.

Change-Id: I67b687b37ab60b581e97ea81243c0d30bbb17acd
CRs-Fixed: 2692697
2020-06-01 20:30:00 -07:00
nshrivas
2841cd9e2c Release 5.2.0.188M
Release 5.2.0.188M

Change-Id: I7472acbb35cd5f77b8aedc07c886fec98f71a536
CRs-Fixed: 774533
2020-06-01 16:28:02 -07:00
Min Liu
bc1a807ec5 qcacld-3.0: Add a sysfs replacement for set_he_bss_clr
Add the sysfs entry for set_he_bss_clr.
Previously these commands would be queried via iwpriv
--> iwpriv wlan0 set_he_bss_clr [value]
it is now changed to support via sysfs:
--> echo [value] > /sys/class/net/wlanxx/he_bss_color

Change-Id: I4700414469be018de9758277c4e095e64cabb376
CRs-Fixed: 2692916
2020-06-01 16:28:02 -07:00
nshrivas
7b3c654516 Release 5.2.0.188L
Release 5.2.0.188L

Change-Id: I9a3f8b9010a7778ed15140b9c9a9d8cb1e758874
CRs-Fixed: 774533
2020-06-01 13:26:54 -07:00
Pragaspathi Thilagaraj
c7a796fd53 qcacld-3.0: Cleanup rrm measurement data based on the index
Currently when rrm measurement is completed for a particular
index, the rrm_cleanup() is called which clears the measurement
data for all the index. This can cause failure with multiple
measurement request where on completion of the first request,
second request data structure will also be made null.

Pass the measurement index to rrm_cleanup() and clear only
that index data.

Change-Id: Ib712c2da3ddfea374d60b250dd474b08093b24c7
CRs-Fixed: 2695836
2020-06-01 13:26:54 -07:00
nshrivas
17c8e52eff Release 5.2.0.188K
Release 5.2.0.188K

Change-Id: I083e7aa73365fef3ae6b7a5eb3d78d89b8f73d64
CRs-Fixed: 774533
2020-06-01 03:01:50 -07:00
nshrivas
118aaaca1a Release 5.2.0.188J
Release 5.2.0.188J

Change-Id: Ib663db7e23f4fe2f97ee87509249d86fc4f48ea3
CRs-Fixed: 774533
2020-06-01 01:37:25 -07:00
Abhishek Ambure
94d53d68a7 qcacld-3.0: Add ini support to send oce subnet id scoring
Introduce an INI "oce_subnet_id_weightage" to indicate firmware
about oce subnet id weightage so that firmware can use subnet id
weightage to calculate candidate AP's score.

Change-Id: Iaf3be1947f8966a2e2c34162d251a31950058231
CRs-Fixed: 2674596
2020-06-01 01:37:25 -07:00
Arun Kumar Khandavalli
7f6b2addb3 qcacld-3.0: Reject interface up when the recovery is inprogress
During the interface UP the driver will take rtnl lock and if the
recovery is going on at the same time it will wait for the recovery
to complete.

If its a modem ssr, the IPA related module would register all the
netdevices which need the rtnl_lock held by the driver.

Reject the interface up when the SSR is inprogress.

Change-Id: I7b2451f16c86cbe86a7c377d112bec12f7eb0252
CRs-Fixed: 2693540
2020-06-01 01:37:20 -07:00
nshrivas
cc268ff2df Release 5.2.0.188I
Release 5.2.0.188I

Change-Id: I7bf214d06f0a0b77706c107df2841d85de9a0467
CRs-Fixed: 774533
2020-05-31 20:57:52 -07:00
Paul Zhang
3f43118702 qcacld-3.0: fix use-after-free in hdd_put_sta_info_ref
sta_info ref is wrongly put in function
hdd_get_cached_station_remote. Modify the typo code
to correct the issue.

Change-Id: Ia0de774603c1570598848f7d699a128a5da6d8f0
CRs-Fixed: 2692694
2020-05-31 20:57:52 -07:00
nshrivas
a1edb0ebc4 Release 5.2.0.188H
Release 5.2.0.188H

Change-Id: I0aa5a877b696c354012478ce07ff71dd07e87ade
CRs-Fixed: 774533
2020-05-31 04:04:18 -07:00
Lincoln Tran
cf98b324aa qcacld-3.0: Update wma_discard_fw_event
Update return type of wma_discard_fw_event to return QDF_STATUS
to match scheduler_msg_process_fn_t.

Change-Id: I1746b170318be30810ddf7cc6be8156a3940b595
CRs-fixed: 2698308
2020-05-31 04:04:18 -07:00
nshrivas
749eebbc06 Release 5.2.0.188G
Release 5.2.0.188G

Change-Id: Iad49a43e86481653366c1dc3da44a028b8d57ad0
CRs-Fixed: 774533
2020-05-31 02:45:14 -07:00
Rajeev Kumar
5ccdee7ce2 qcacld-3.0: Change copy right year of wlan_hdd_sysfs_set_fw_mode_cfg.c
wlan_hdd_sysfs_set_fw_mode_cfg.c is derived from wlan_hdd_wext.c and hence
maintain original copyright year in wlan_hdd_sysfs_set_fw_mode_cfg.c.

Change-Id: I034fbb2bc9ea205ca92ee017c3e9111405306bd7
CRs-fixed: 2698256
2020-05-31 02:45:13 -07:00
nshrivas
b2bfc02e2e Release 5.2.0.188F
Release 5.2.0.188F

Change-Id: Idbcdc07b4161ae596a1eafb7ac958f3525646cdf
CRs-Fixed: 774533
2020-05-29 21:05:43 -07:00
Abhinav Kumar
8c45456a60 qcacld-3.0: Send proper Link Rates to user space
Currently, host consider self NSS capability while sending
link rates statistics to userspace for "iw wlan0/1 link" command.
This results host sends incorrect link rates in case of STA and
AP has different NSS capabilities.

Fix is to send intersection of Self and AP's NSS capability
to userspace.

Change-Id: I7a31998ccb6988aa95de9fa25f49dda20f9f8b96
CRs-Fixed: 2686251
2020-05-29 21:05:42 -07:00
nshrivas
de6f87ce5c Release 5.2.0.188E
Release 5.2.0.188E

Change-Id: I9cd6d6fcfee7d08f4a6493193ffade51f3d2d422
CRs-Fixed: 774533
2020-05-29 18:36:53 -07:00
Lincoln Tran
d2c51be72a qcacld-3.0: Update lim_send_action_frm_tb_ppdu_cfg_flush_cb
Update the return type of
lim_send_action_frm_tb_ppdu_cfg_flush_cb to return QDF_STATUS
to match with scheduler_msg_process_fn_t.

Change-Id: I48e382422f2c970f2f347f1fe716ca974efdd5fb
CRs-fixed: 2698312
2020-05-29 18:36:53 -07:00
nshrivas
1d0a41cb7b Release 5.2.0.188D
Release 5.2.0.188D

Change-Id: I0bcf9f33dd64d35baeb7f175500317aaf21e1dd9
CRs-Fixed: 774533
2020-05-29 17:18:52 -07:00
Ashish Kumar Dhanotiya
1fbe964622 qcacld-3.0: Update freq attributes of ch_params in start ap
Currently frequency attributes mhz_freq_seg1 and mhz_freq_seg0
are not getting updated in start ap before calling set channel
params api of regulatory component from start bss,
regulatory component uses these attributes to set the correct
channel params.
Since these frequencies params are not correct, regulatory
component is returning invalid ch_params for 80+80Mhz operation
which is resulting in failure of start bss for 80+80Mhz.

To address above issue, update the frequency attributes correctly
in start ap.

Change-Id: If0a8e0ed121b2167ff0226d2bd0048a1fa120f31
CRs-Fixed: 2697754
2020-05-29 17:18:49 -07:00
nshrivas
9e36e0b408 Release 5.2.0.188C
Release 5.2.0.188C

Change-Id: I8f23206eb8015c89ebe90ee129ca89cf22eb97f6
CRs-Fixed: 774533
2020-05-29 14:50:46 -07:00
Surabhi Vishnoi
ff7585ee9d qcacld-3.0: Add support to optimize latency using pm_qos
For Voice and Music (V&M) products, extreme latency optimization is
needed while playing music and discovery, higher power consumption
in this mode could be accepted. With CONFIG_WLAN_LL_MODE enabled,
when latency_level is set to ultra low via cfg80211 vendor command,
update request pm qos type PM_QOS_CPU_DMA_LATENCY to level
DISABLE_KRAIT_IDLE_PS_VAL to speed up CPU efficiency and irq response.

Change-Id: Ifb5bc8169f1cd08500c4b4bc0dd65dd0b3667ab6
CRs-Fixed: 2685074
2020-05-29 14:50:46 -07:00
nshrivas
40518c382c Release 5.2.0.188B
Release 5.2.0.188B

Change-Id: Id3d21c123b553dae9c5ecf06c72e4c0706183fe3
CRs-Fixed: 774533
2020-05-29 13:13:31 -07:00
Lincoln Tran
c88a47f84a qcacld-3.0: Update hdd_data_stall_process_event
Update hdd_data_stall_process_event to match scheduler_msg_process_fn_t.
Change the argument to scheduler_msg struct and add return status
to match function type.

Change-Id: Id4d2eaaa2262d7fe2dd6241ae4581a3d0cb09805
CRs-fixed: 2697445
2020-05-29 13:13:31 -07:00
bings
ed94c9349b qcacld-3.0: Fix WLAN_AKM_SUITE_* redefinition build error
Do not define WLAN_AKM_SUITE_OWE if it is defined.
Do not define WLAN_AKM_SUITE_EAP_SHA256 if it is defined.
Do not define WLAN_AKM_SUITE_EAP_SHA384 if it is defined.

Change-Id: Id06961a4c0d03f97279e2b45f9bfc5befb943e66
CRs-Fixed: 2666448
2020-05-29 13:13:27 -07:00
nshrivas
a174527a2c Release 5.2.0.188A
Release 5.2.0.188A

Change-Id: I2729103f3a1580dfdf85eb88a969d0b0627c4c6d
CRs-Fixed: 774533
2020-05-29 03:13:43 -07:00