Commit Graph

23072 Commits

Author SHA1 Message Date
Liangwei Dong
3346c4503f qcacld-3.0: Fix some channel parameters missing
Assign the sap_ctx->ch_params from the whole struct of
config->ch_params. This is to fix some fields missing
in sap_ctx->ch_params, such as "mhz_freq_seg0".

Change-Id: Id6e6be50635001faf45c84d136976cc27f41c7d5
CRs-Fixed: 2962952
2021-06-08 03:16:13 -07:00
Utkarsh Bhatnagar
d1e140e687 qcacld-3.0: Fill last disconnect reason on disconnect
Fill last disconnect reason on disconnect and reset on connect.

Change-Id: Ibc3cde1e6bc2a9abbdb6c5b2caee9bea844269cd
CRs-Fixed: 2963284
2021-06-08 03:16:08 -07:00
Kiran Kumar Lokere
5100c14d73 qcacld-3.0: Config support for WMM based TXOP feature
Add configuration support for WMM based TXOP feature.

Change-Id: Ide52b7d4b7bca590515e8697506d2b52744a7fa6
CRs-Fixed: 2947604
2021-06-08 03:16:03 -07:00
Ashish Kumar Dhanotiya
5556c511b2 qcacld-3.0: Allow SAR safety feature for DBS as well
Currently SAR safety feature works only for sar version 2
and it does not work for dbs.

To support SAR safety feature for DBS update sar version
check to block it only for sar version 1.

Change-Id: Iff9ab94fc0667cce7a0d1ab44d7393dacfb2745b
CRs-Fixed: 2959558
2021-06-08 03:15:58 -07:00
Yu Ouyang
039a731b6f qcacld-3.0: Not advertise wiphy_wowlan_support when registering wiphy
If WoW not support, not advertise wiphy_wowlan_support when registering
wiphy device. To make sure wiphy_suspend can follow the flow of
WoW not support.

Change-Id: I4bbaec9ba4268099507567b4e03cee51ee1d11f7
CRs-Fixed: 2961094
2021-06-08 03:15:52 -07:00
Madan Koyyalamudi
3a359aa2b0 Release 5.2.0.236A
Release 5.2.0.236A

Change-Id: Ia0c77a6aea668e9d29491c8a384f80becc1f6adb
CRs-Fixed: 774533
2021-06-08 01:08:27 -07:00
Jyoti Kumari
08eb756a51 qcacld-3.0: Don't use wlan_chan_to_freq
As part of regulatory cleanup, wlan_chan_to_freq() is removed.

Use wlan_reg_legacy_chan_to_freq()/wlan_reg_chan_band_to_freq()
instead of wlan_chan_to_freq().

Change-Id: I9d105863f8d6384c97e8219b89a230c863e29d19
CRs-Fixed: 2933440
2021-06-08 01:08:27 -07:00
Yu Wang
c15ffec425 qcacld-3.0: reject NAN request if any other connection is in progress
Processing multiple connection requests at the same time may break
concurrency checking and result in unexpected behavior, to avoid
that, reject NAN extended request if any other connection is in
progress.

Change-Id: I95a6a5ab27a923c42af76355033267fe7ca453eb
CRs-Fixed: 2959292
2021-06-08 01:08:22 -07:00
Pragaspathi Thilagaraj
22019b0a18 qcacld-3.0: Add support to retain WTC params across disconnection
The WTC parameters are stored in MLME vdev private object.
So the parameters are cleared once vdev delete is done.

Move the WTC parameters to psoc->mlme_cfg to retain the
values across disconnections.

Change-Id: Icecfbef19af994f8a05622501d435bfb63beca50
CRs-Fixed: 2959715
2021-06-08 01:08:17 -07:00
Subrat Dash
242f56b2a4 qcacld-3.0: Enable peer map v2 feature only for wds mode
Set peer map v2 in the target resource config only when
the wds mode is enabled in the ini "wds_mode".

CRs-Fixed: 2958287

Change-Id: Ifbedc8c29e8c6278875ad13c6fe6b0fb557feece
2021-06-08 01:08:12 -07:00
Madan Koyyalamudi
a93a2cd1e9 Release 5.2.0.236
Release 5.2.0.236

Change-Id: I5441c2396a5cfb92f1a2ef882cd878ca54c4a7ad
CRs-Fixed: 774533
2021-06-07 22:54:33 -07:00
Srikanth Marepalli
e4323e039d qcacld-3.0: Enhance the EAPOL handshake offload INI per AKM
Existing INI disable_4way_hs_offload is defined as a boolean
that controls the EAPOL Handshake to be offloaded to Firmware or
Not. There is no way to specify the EAPOL offload per AKM.

Hence extended the support of EAPOL handshake offload to firmware
per AKM by converting this INI to a bitmap integer.
With ini value as 0 by default Firmware takes care of 4-way HS
during roam for all AKMs except for SAE and OWE. If
this ini value is 1 then Host takes care of EAPOL for all AKMs.

Having the backward compatibility, added a new value to ini.
If this ini value is set to 2 and also if the SAE EAPOL offload
service bit is set by Firmware then the behavior is same as ini
with 0 except that Firmware takes care of 4-way HS for SAE roam
as well. And for OWE it is still handled by supplicant.

To achieve this, new roam offload flag is introduced to indicate
Firmware about SAE roam EAPOL offload, So that in Roam sync
indication Firmware will inform the status as connected but not
authenticated so that supplicant can take care of 4-way EAPOL HS.

Change-Id: I8b65a1768fad91fac7e427712d3ccf4586176f5f
CRs-Fixed: 2955029
2021-06-07 22:54:32 -07:00
Madan Koyyalamudi
5e096bd05f Release 5.2.0.235Z
Release 5.2.0.235Z

Change-Id: Ic62dfaaab83cb75cfc21cd30014e5a84be2916f6
CRs-Fixed: 774533
2021-06-07 19:20:46 -07:00
Rakesh Pillai
7fdb9e21a7 qcacld-3.0: Refactor fisa packet history for BE
Refactor fisa history to not directly access "struct rx_pkt_tlvs". This
is needed since rx_pkt_tlv size may be different for Li and Be
architectures.

CRs-Fixed: 2891099
Change-Id: If7359680538128c7b093aef9f2991756a2f753f7
2021-06-04 10:43:32 -07:00
Mohit Khanna
78a1c3a8b4 qcacld-3.0: RX Pkt capture changes for WCN7850
Change direct RX TLV usage to using HAL APIs to populate RX packet
capture params.

CRs-Fixed: 2888534
Change-Id: Ib20e72ddb214e2579d2eabb92630604dc5b88526
2021-06-04 10:43:31 -07:00
Rakesh Pillai
7f45b14f24 qcacld-3.0: Add rx tlv access changes
Add the changes in FISA/pkt-capture APIs due to the
modifications in the hal APIs to get rx tlv params.

Change-Id: I5b1827079ca2e056da0db5e396ca90aec57f559b
CRs-Fixed: 2888534
2021-06-04 10:43:31 -07:00
Manjunathappa Prakash
5eaac03dc9 qcacld-3.0: Add Kbuild support for RX BE/Li files
Add support in Kbuild file to compile RX files for BE/Li targets.

CRs-Fixed: 2891099
Change-Id: I4cf3a2139a41d10f08f9839ce9156cb7484c62e9
2021-06-04 10:43:31 -07:00
Mohit Khanna
9398ceada7 qcacld-3.0: Kbuild changes for target specific DP TX files
Add Kbuild support to compile DP TX files in DP/li and DP/be
directories

CRs-Fixed: 2891099
Change-Id: Ie97cad037b29069b2cdc25555d1c75817079bd93
2021-06-04 10:43:31 -07:00
Rakesh Pillai
b3e1a44d0b qcacld-3.0: Init-Deinit changes for WCN7850
Changes to initialize/deinitalize WCN7850 from HDD layer.

CRs-Fixed: 2888534
Change-Id: Ia9e44f9fe0b4b6977c55c380756af0656203e4f5
2021-06-04 10:43:31 -07:00
Rakesh Pillai
e86da7276c qcacld-3.0: Changes to enable BE/WCN7850 flags
Changes to enable compilation for beryllium target(chip WCN7850).

CRs-Fixed: 2888534
Change-Id: I7b3d252fc8550883a2d24b6beb2b78f482f5004b
2021-06-04 10:43:23 -07:00
Madan Koyyalamudi
f5e500643c Release 5.2.0.235Y
Release 5.2.0.235Y

Change-Id: Iee939670e5efded8b89251355d106d84acc46295
CRs-Fixed: 774533
2021-06-04 00:28:23 -07:00
Abhishek Ambure
f8fd2ad264 qcacld-3.0: Add support to send cfr data via nl events
User configures CFR data transport mode using vendor command
QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG and attr
QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE. Host sends
CFR data to userspace via relayfs if transport mode set is
QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS else if transport mode is set
to QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, host sends CFR data
via NL events. By default transport mode is relayfs.
To get CFR data as unicast NL events, user configures PID of a
process using vendor attr
QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID. By default CFR
data NL events are broadcast.

Change-Id: Ifc2694fa3b21dc01f25da2219deb367375a48475
CRs-Fixed: 2953290
2021-06-04 00:28:23 -07:00
Huashan Qu
4974b6676c qcacld-3.0: Decrement connection count when reassoc to the same bssid
In LFR2.0, number of connection count isn't decremented when reassoc
to the same bssid, it will cause connection count wrongly calculated.
Need to decrement this count in such roaming scenario.

Change-Id: I849bd6a469567df737b3565555b950a501850ae0
CRs-Fixed: 2961292
2021-06-04 00:28:18 -07:00
Jyoti Kumari
7b38805edc qcacld-3.0: Handle SAP concurrency in CSA and NAN/NDI case
TWT is supported in STA/SAP vdevs and it's allowed only in
DBS/Standalone case and not in SCC/MCC. Disable SAP TWT if
1. Concurrency occurs in SAP + NAN/NDI vdev
2. SCC/MCC occurs after CSA

Change-Id: Id1400bd5555d2f48590d7d3ad7c70162d1dd92fb
CRs-Fixed: 2942959
2021-06-04 00:28:13 -07:00
Jyoti Kumari
4301f71222 qcacld-3.0: Handle SAP TWT concurrency scenario
TWT is allowed only in DBS/Standalone case and not in SCC/MCC.
Handle TWT if any session request comes in SCC/MCC or DBS case
as per below:
1. If TWT session request comes on standalone SAP then peer
   client will initiate the session and not from userspace
   (SAP DUT)
   a. Send twt responder enable command and
   b. Send twt requestor disable command to firmware
2. If session request comes on standalone STA then
   a. Send twt requestor enable command and
   b. Send twt responder disable command to firmware
3. If two vdevs are up and SCC/MCC exist
   a. Send beacon template with twt responder disable command to
      SAP vdev
   b. Send twt requestor disable command to STA vdev
4. If two vdevs are up in case of DBS
   a. Send requestor enable command for STA vdev
   b. Send beacon template with responder enable command for SAP
      vdev
5. If 3 port concurrency comes then
   a. Send requestor disable command to STA vdev and
   b. Send beacon template with responder disable command to SAP
      vdev

Change-Id: I65994702bb72d5006bd66b2ef57a0704a67410f7
CRs-Fixed: 2938961
2021-06-04 00:28:09 -07:00
Madan Koyyalamudi
8871a3f841 Release 5.2.0.235X
Release 5.2.0.235X

Change-Id: Icc652e3e19d2d6d7547b3d8d7921d5f3c861c9a7
CRs-Fixed: 774533
2021-06-03 22:16:28 -07:00
Huashan Qu
4827a8421e qcacld-3.0: Fix some LFR2.0 issues for connection manager path
Fix some LFR2.0 issues for connection manager path as below:
1: Add ptr null pointer and len check before access
rsp->connect_ies.bcn_probe_rsp.
2: Remove aged AP threshold check so that roam process can find
candidate AP with more probability.
3: Set cm_ctx->vdev to cmd_info.vdev in
cm_remove_preauth_cmd_from_serialization().
4: Add more debug logs for preauth part.

Change-Id: I4b0766bba40e3ebc3d01bdd4ae59aec1ec3a21d9
CRs-Fixed: 2961151
2021-06-03 22:16:28 -07:00
Madan Koyyalamudi
6d325913c5 Release 5.2.0.235W
Release 5.2.0.235W

Change-Id: I2737b804c91669e1ec3db5ae1afce1048cc6841b
CRs-Fixed: 774533
2021-06-03 17:06:05 -07:00
Ashish Kumar Dhanotiya
6afc566756 qcacld-3.0: Move call to hdd power stats callback inside lock
Currently when host receives power stats from fw, before
processing these stats it check for the hdd callback and
processes these stats only if hdd callback is registered.
This callback is checked in
wma_unified_power_debug_stats_event_handler function before
processing of the fw event and outside of any lock. After
processing stats, this hdd cb is invoked, there is an issue
with this approach that while processing these stats if timeout
happens in hdd then hdd sets its callback as NULL and now after
processing stats wma handler invokes this hdd cb which is already
NULL, leading to null pointer dereference.

To avoid above issue, add sme callback and move null check for
hdd cb and call to hdd cb inside sme lock which is the same lock
used while setting hdd cb to null on timeout.

Change-Id: I2203083a17ca3404c5c5af98ddc48ba127e6aee2
CRs-Fixed: 2950633
2021-06-03 17:06:05 -07:00
Madan Koyyalamudi
0867dc801f Release 5.2.0.235V
Release 5.2.0.235V

Change-Id: I5767ee7d8ddfa635c94edd5cc6d9633df3ea4860
CRs-Fixed: 774533
2021-06-03 14:52:56 -07:00
Utkarsh Bhatnagar
26403151ff qcacld-3.0: Remove duplicate code in connection manager
Remove duplicate code in connection manager and call
same API from connect complete and roam complete.

Change-Id: If7e9e1069acb1dede9433d16ef96f37029ff716d
CRs-Fixed: 2960921
2021-06-03 14:52:56 -07:00
Tiger Yu
942f53bb4f qcacld-3.0: The disconnection_status_lock is not initialized for SAP mode
The mutex disconnection_status_lock is not initialized for SAP mode but
destroyed in hdd_cleanup_adapter.

The fix is intializing this lock when the adapter is opend for all modes.

Change-Id: I906722641482c1ad0bcb89fcfe35ded23a15203e
CRs-Fixed: 2958599
2021-06-03 14:52:51 -07:00
Madan Koyyalamudi
8f8460395e Release 5.2.0.235U
Release 5.2.0.235U

Change-Id: Iffa825d7f7f334db3a63c16496d6e1e36e662815
CRs-Fixed: 774533
2021-06-03 05:52:48 -07:00
Naman Padhiar
04f511151f qcacld-3.0: Return correct value from PLD layer
For APsI pld_get_mhi_state() and pld_is_pci_ep_awake() return
proper value for buses other than IPCI where these APIs are not
supported.

Change-Id: I2dfe8118d29aa2bc75484ff4d708b21eba264350
2021-06-03 05:52:48 -07:00
Madan Koyyalamudi
57082e64f9 Release 5.2.0.235T
Release 5.2.0.235T

Change-Id: Id365e693c8f9351f51e6ab5c764a64d631a962f3
CRs-Fixed: 774533
2021-06-03 03:44:24 -07:00
sheenam monga
825a35d84d qcacld-3.0: Don't send DS param IE for 6G band
Currently, host sends DS param to fw based on
channel number but channel number may be same
in case of 6G and 2G due to which IEs can be
included in case of 6G which is not required.

Fix is to send DS param based on freq to
avoid addition of IEs in case of 6G band.

Change-Id: Ib711731fda3cfb0117478e6b1e026f40639a7fbb
CRs-Fixed: 2942323
2021-06-03 03:44:23 -07:00
Sandeep Puligilla
0b5da86b67 qcacld-3.0: Add MLO manager to build system
Add MLO manager files to build system.

Change-Id: I911a4ddbd93e100cb95c71a3e8cd6a5609c97e0b
CRs-Fixed: 2958473
2021-06-03 03:44:16 -07:00
Madan Koyyalamudi
c755ceaff3 Release 5.2.0.235S
Release 5.2.0.235S

Change-Id: I2f583432c3ebfc97aa55f5bae7d23c2f7cb7b164
CRs-Fixed: 774533
2021-06-02 22:54:34 -07:00
bings
5102c78190 qcacld-3.0: fix mlo build error
Fix build error when enable WLAN_FEATURE_11BE_MLO

Change-Id: I73855838972a9edd6307dd1e55b05152c5435d69
CRs-Fixed: 2958496
2021-06-02 22:54:34 -07:00
Madan Koyyalamudi
d7800b9bd7 Release 5.2.0.235R
Release 5.2.0.235R

Change-Id: If0de57631e2e94f591c469ad43eea058cabc5240
CRs-Fixed: 774533
2021-06-02 15:54:12 -07:00
Qun Zhang
086ebbc79e qcacld-3.0: notify TKIP mic failure to upper layer under fragement case
It's also needed to notify supplicant when TKIP michael mic failure was
detected under fragement case, so supplicat can start 60s protect policy
for association.

Change-Id: I9383d653ac957425e09a60a2f495e575741d073a
CRs-Fixed: 2942680
2021-06-02 15:54:12 -07:00
Huashan Qu
12787cff21 qcacld-3.0: Add lim_join_req null check in lim_set_mbssid_info()
pe_session->lim_join_req is NULL for LFR2.0 roaming case, need to
add null check before access. If null get mbssid_info from
pe_session->pLimReAssocReq.

Change-Id: I17314a52f3b3fbc57908a7f3f8a369229baf02fd
CRs-Fixed: 2958899
2021-06-02 15:54:06 -07:00
Madan Koyyalamudi
5a804d0d6a Release 5.2.0.235Q
Release 5.2.0.235Q

Change-Id: I443ba1ac54357c82c65659331b38d0dfc9d920ba
CRs-Fixed: 774533
2021-06-02 13:48:17 -07:00
bings
45b6c593c3 qcacld-3.0: Get pe session from vdev_mlme_obj if mlo does not provide
MLO mgr does not have pe session information, when it delivers vdev mlme
event, the event_data_len is 0 and event_data is NULL.

In the vdev mlme op if event_data is NULL, we should get pe session from
vdev_mlme_obj.

Change-Id: I78072cfd80d05d032a734f33a5b5f090739bd0b3
CRs-Fixed: 2950291
2021-06-02 13:48:17 -07:00
Utkarsh Bhatnagar
1169039038 qcacld-3.0: Send TDLS STA notify only when connect is success
Send TDLS STA notify only when connect is success.

This is required as incase connection, it will increment
tdls_soc_obj->set_state_info.set_state_cnt.
It that connection results in failure, then also, without
this check this count will increment.
For subsquent connections, in tdls_send_update_to_fw()
because of incremented count, it will be treated as
FW Set State is already sent and will not send it
which will result in FW crash while adding TDLS peer.

Change-Id: Ic3bedfb1357ac703f98d2d0285dcc85605bab97e
CRs-Fixed: 2955401
2021-06-02 13:48:12 -07:00
Madan Koyyalamudi
d5289a96ab Release 5.2.0.235P
Release 5.2.0.235P

Change-Id: I91695fa3127a7fd8e3fc947a16f3db61d5afb49d
CRs-Fixed: 774533
2021-06-02 11:40:39 -07:00
Ananya Gupta
c5ab429e08 qcacld-3.0: Increase timeout for vdev_del_event
Race condition occurred as rx_thread did not get scheduled
before timeout and gro flush happened in vdev context. At
the same time, rx thread got scheduled and add skb to the
napi queue resulting in crash.
To fix this, Increase the timeout value so rx_thread gets
time to wake up, do gro flush and reset the vdev_del_event.

Change-Id: I2075eda91b1568cce3083869f510fc212dd721f8
CRs-Fixed: 2949803
2021-06-02 11:40:39 -07:00
Madan Koyyalamudi
eb79d5b84e Release 5.2.0.235O
Release 5.2.0.235O

Change-Id: I631902ffccfd7a76420a30477cd0ba363bb76dd1
CRs-Fixed: 774533
2021-06-02 09:01:46 -07:00
Liangwei Dong
41b381e1f9 qcacld-3.0: Validate mac context in CSA bw selection API
Add sanity check mac context before using it in API
wlansap_get_csa_chanwidth_from_phymode.

Change-Id: I8df501e850b606615c899321fc23636ad985ab23
CRs-Fixed: 2955278
2021-06-02 09:01:46 -07:00
Naman Padhiar
8e73a4a3b5 qcacld-3.0: Add support for new uevent from ICNSS2
Add support in PLD layer to handle uevent ICNSS_SMMU_FAULT.

Change-Id: Idf89467f9041281f824ad4c9b2386cbfcee27105
2021-06-02 09:01:41 -07:00