Commit Graph

1558 Commits

Author SHA1 Message Date
Jianmin Zhu
acf4ec7a1e qcacld-3.0: Remove WLAN_REG_IS_5GHZ_CH
Remove WLAN_REG_IS_5GHZ_CH in cld

Change-Id: I7525f4490f865721bee3213fdffd586082724e4a
CRs-Fixed: 2883683
2021-02-26 05:58:12 -08:00
bings
e7b16132a2 qcacld-3.0: Remove g_prefer_5g_scc_to_dbs
Remove g_prefer_5g_scc_to_dbs, and update PCL table
pm_second_connection_pcl_dbs_2x2_table.

For STA + GO concurrency if the second connection is GO,
perfer SCC to DBS, which makes GO get high throughput.

Change-Id: I0bf68662fc363a66c778904f9c12714407cd738a
CRs-Fixed: 2881383
2021-02-26 01:30:18 -08:00
Utkarsh Bhatnagar
68961616e9 qcacld-3.0: Fill MCS rates of peer for TDLS
Fill MCS rates of peer for TDLS change station.

Change-Id: I9d3306ec6ec2d876dadede60a616b2fcaf46236a
CRs-Fixed: 2886245
2021-02-25 16:29:18 -08:00
Utkarsh Bhatnagar
fb5ff5a539 qcacld-3.0: Introduce 11ax capabilities for tdls
Introduce HE cap IEs in addstareq. Also, Add
HE capabilities in frames for TDLS Setup Req,
Setup Rsp, Discovery Rsp. Add He Operations
in TDLS setup Confirm.

Implement APIs under feature WLAN_FEATURE_11AX
which will be used to:
1) Fill HE capabilities in TDLS Discovery Response,
   TDLS Setup Request, TDLS Setup Response.
2) Fill HE operations in TDLS Setup Confirm.
3) Convert he_capa capabilities from station
   parameters to tdls tDot11fIEhe_cap type.
4) Set Chan width based on session, peer
   capabilities.

Change-Id: If36b1a3c3eed0e6026043494a097673f9d74b580
CRs-Fixed: 2883443
2021-02-25 04:03:32 -08:00
gaurank kathpalia
006888171e qcacld-3.0: Move ESE channel list code to connection manager
Move ESE channel list code to connection manager.

Change-Id: I885ba96eaff435a8f3f4366d6d201e6f2d648e6e
CRs-fixed: 2885327
2021-02-25 01:48:47 -08:00
CNSS_WLAN Service
fe9ccbca6d Merge "qcacld-3.0: Move LFR2 code under connection manager flag" into wlan-cld3.driver.lnx.2.0 2021-02-22 22:28:35 -08:00
gaurank kathpalia
dd6f134f2d qcacld-3.0: Move LFR2 code under connection manager flag
Move LFR2 code under connection manager flag.

Change-Id: Ic82817a3265af0342cf317ec4f9f086f1a70bef0
CRs-fixed: 2883189
2021-02-22 19:55:21 +05:30
gaurank kathpalia
a06175edf3 qcacld-3.0: Add roaming support in hdd for conenction manager
Add roaming support in hdd for conenction manager.

Change-Id: Id93e3411ab8dedca89768042b5fc96b318447846
CRs-fixed: 2881820
2021-02-19 13:44:53 -08:00
Abhishek Ambure
e546874794 qcacld-3.0: Set OCV flag in wiphy ext feature
Host checks if firmware advertises Operating channel validation(OCV)
support bit in service ready then updates OCV flag in wiphy ext feature.

Change-Id: I92f872a07e6f7142e602e6a9e5f5edcecc0aab0b
CRs-Fixed: 2880821
2021-02-19 05:39:51 -08:00
gaurank kathpalia
0e06319d7e qcacld-3.0: Refactor connection manager connect code
Refactor connection manager connect code.

Change-Id: I34379170595637159ba13970fec8b9bff3620cc3
CRs-Fixed: 2880933
2021-02-18 23:58:14 -08:00
Vevek Venkatesan
d01d8ce465 qcacld-3.0: add NULL check before calling rps_enable cb
Add a NULL check before calling rps_enable callback
from ipa_set_rps_per_vdev and also add a check to avoid
disabling rps twice.

Change-Id: Ib63b2cda99aa332905df640ffa2d401c22845ad2
CRs-Fixed: 2876490
2021-02-18 14:14:02 -08:00
Pragaspathi Thilagaraj
1cbfd5f909 qcacld-3.0: Update ciphers in RSO command from crypto component
Currently driver fills unicast, multicast & auth mode values from
csr session which is not updated after roaming to AP with different
security profile. This causes incorrect values in AP profile command.
Send correct authmode/unicast and multicast ciphers in AP profile
command to firmware.

Also modify the below 2 ini default values as:
candidate_min_rssi_for_beacon_miss=-75
candidate_min_rssi_for_disconnect=-75

Change-Id: I33cc9f516447071e977768f01738eea7a2ecd99c
CRs-Fixed: 2879943
2021-02-18 12:06:47 -08:00
gaurank kathpalia
404eabd9ab qcacld-3.0: Move Sta specific code under connection manager macro
Move Sta specific code under connection manager macro.

Change-Id: I37e0c382aa9b8403647f12feb39bbfc1201515c6
CRs-Fixed: 2880716
2021-02-18 10:01:28 -08:00
Lincoln Tran
369c4ae107 qcacld-3.0: Store NDI beamform service bit
Store the NAN NDI beamform service bit in the NAN capability struct and
add API to access that value.

Change-Id: I429fc870b5287bd40855b9277d14b19574974a46
CRs-fixed: 2876730
2021-02-18 05:34:58 -08:00
Amruta Kulkarni
e4df806aa6 qcacld-3.0: Support roam invoke request in connection manager
Add change to support roam invoke request in connection manager

Change-Id: I87bd39263c7c210fa87250aca59ef5f2f89d4c67
CRs-Fixed: 2869211
2021-02-18 03:12:04 -08:00
Lincoln Tran
11071a6438 qcacld-3.0: Modify PCL for indoor channels
Currently the preferred channel list is not updated to have indoor only
channels removed. Add functionality to remove the indoor channels from
the PCL.

Change-Id: I31df737a3688f6c64c2eb5fa5ab0cea1d36869e5
CRs-fixed: 2874092
2021-02-17 14:00:56 -08:00
Deeksha Gupta
a3ca2a725e qcacld-3.0: Block the TWT setup till notify event is received
Currently, TWT setup is allowed after roaming even if
TWT notify from firmware is not received.

Block the TWT setup till notify event is received
from firmware.

Change-Id: Ia6ff8fe9e05f32ddf6dbdd608d9090b612237f26
CRs-Fixed: 2870610
2021-02-17 11:13:04 -08:00
gaurank kathpalia
7a29ff5f90 qcacld-3.0: Fill extra params for connect
Fill extra params such as join timeout etc. in LIM
for connection manager path.

Change-Id: I3c12e49023ce04c6b8d2f6c41d128ed9fc93a441
CRs-Fixed: 2879094
2021-02-17 11:12:59 -08:00
Lincoln Tran
746140e284 qcacld-3.0: Migrate validate beacon interval API
Move the beacon interval validation logic from the CSR module to the
interface manager module.
Add a path to send events to the SAP event handler from the MLME
module.

Change-Id: Ia86f219b3f209b53e7818a80f95b2c0555550736
CRs-fixed: 2796676
2021-02-17 02:10:13 -08:00
abhinav kumar
76bae47f3e qcacld-3.0: Cache roam related states for the vdev
Cache roam_fail_reason, roam_invoke_fail_reason and
roam_trigger_reason in mlme value for the vdev.
Host sends these values to userspace via a vendor
command after disconnection.

Change-Id: Ief7d027f69b0449254de3615b39829f346589095
CRs-Fixed: 2877230
2021-02-16 19:15:51 -08:00
Pragaspathi Thilagaraj
9d61fc3d0e qcacld-3.0: Add support for SAE single pmk validity
Currently when SAE single pmk lifetime expires, the userspace
issues disconnect. To avoid this, on reaching a threshold value
of the total pmk lifetime, the firmware will clear the single
PMK and initiate a roam scan to perform full SAE and derive
new pmk.

Add changes to:
1. Send the remaining single pmk timeout value in seconds to
firmware.
this is calculated as the diffence in pmk timeout configured by
userspace and the time passed after set_pmksa was done (which is
system timestamp between the set_pmksa timestamp and timestamp at
which RSO command is filled).
2. Add internal roam trigger for SPMK timeout trigger.
3. Set the roam score delta value as 0 for SPMK timeout roam
trigger.

Change-Id: I62c2ddbbfeb2811a4342d41f2bdaa8d988568bcc
CRs-Fixed: 2869665
2021-02-15 06:21:11 -08:00
Jyoti Kumari
db4584c90c qcacld-3.0: STA SAP concurrency for non dbs HW mode
SAP stops working when it comes first and then sta connection
happens in non dbs HW mode

Allow SAP on non dbs HW even if the channel is safe or
lte-coex enabled.

Change-Id: I3e80b423ccb30fdb5e53a6d2aff961162b316e1c
CRs-Fixed: 2873957
2021-02-15 04:05:12 -08:00
gaurank kathpalia
5c1b42944d qcacld-3.0: Fix compilation issue in connection manager
Fix compilation issue in connection manager.

Change-Id: Ib46a0b45facf0552723d1ab9400444b7fdb7a08e
CRs-fixed: 2876303
2021-02-12 14:40:00 -08:00
Abhishek Ambure
780908d5be qcacld-3.0: Move wait for key timer to mlme priv vdev
Move wait for key timer logic to mlme priv vdev. Thus host handles
wait for key per vdev.

Change-Id: Idfc7e7e17ec631a0a364c75b1bac992f1a4d1872
CRs-Fixed: 2870707
2021-02-10 10:11:25 -08:00
Srinivas Dasari
2380a0c4cc Revert "qcacld-3.0: Wait for sme_soc_set_dual_mac_config to get complete"
This reverts change:I9408713fcf828d24688ecc45290d8c90a8d54c22
as it's not needed anymore as the actual issue(commands waiting
in active queue for response when the vdev is deleted) is fixed
with change:Ie31936132a389685ff4ff55b43ccbb4102e65830.

This wait-for-response causes a delay of around 200ms in
vdev_create as it's a blocking call.
As vdev_create happens after finding the peer device in case of
p2p, overall connection is delayed and connection time has
increased from 350ms to 600ms. This effects the
uses cases like WFD where applications have strict timing
constraints after finding the device.

Change-Id: I45c223a8d157892d8ec64b04f68cfbf39d732833
CRs-Fixed: 2870774
2021-02-09 23:07:04 -08:00
Liangwei Dong
460b428c6b qcacld-3.0: Add PSC & VLP 6GHz chan to mandatory list
According to new requirement, when SAP manadatory channel list
enabled (gWlanMccToSccSwitchMode = 4,
gEnableSAPManadatoryChanList=1), the SAP will only be started on
PSC and VLP channels on 6Ghz band. Add all 6GHz PSC & VLP channels
to SAP mandatory list.

Change-Id: I00514c0af9c1cc07460120c928ced652aa2e8d4e
CRs-Fixed: 2870590
2021-02-07 20:40:53 -08:00
Dundi Raviteja
e420cbf610 qcacld-3.0: Reduce stack frame size in pmo_core_cache_ns_in_vdev_priv
Reduce stack frame size of pmo_core_cache_ns_in_vdev_priv()
by allocating dynamic memory to struct pmo_ns_offload_params.

Change-Id: I23a2bbcbc2b64c40513511479b1c8aeb9e7898d6
CRs-Fixed: 2868424
2021-02-06 22:18:41 -08:00
Dundi Raviteja
3b0a146c82 qcacld-3.0: Reduce stack frame size while extracting pdev stats
Reduce stack frame size of target_if_cp_stats_extract_pdev_stats()
by allocating dynamic memory to wmi_host_pdev_stats.

Change-Id: I83a73f2973b54fbc28399c106ea52a0b6c1988f3
CRs-Fixed: 2868500
2021-02-06 12:46:55 -08:00
Dundi Raviteja
38f98292e3 qcacld-3.0: Reduce stack frame size while extracting vdev stats
Reduce stack frame size of
target_if_cp_stats_extract_vdev_summary_stats()
by allocating dynamic memory to wmi_host_vdev_stats.

Change-Id: I3922f2b61bcde5d5aa90e71f55a884075742147b
CRs-Fixed: 2868487
2021-02-06 10:42:46 -08:00
Dundi Raviteja
f814c5b5f5 qcacld-3.0: Reduce stack frame size while handling mc_cp_stats
Reduce stack frame size of target_if_mc_cp_stats_stats_event_handler()
by allocating dynamic memory to struct stats_event.

Change-Id: Ieaf99efece75080fe7ff6cf2cf70858ca5f8740f
CRs-Fixed: 2868456
2021-02-06 10:42:41 -08:00
Aditya Kodukula
a9f651f6ba qcacld-3.0: Rename the flag QCA_WIFI_NAPIER_EMULATION
To make it generic, rename the flag QCA_WIFI_NAPIER_EMULATION
as QCA_WIFI_EMULATION.

Change-Id: I8e654262a38a7a701a5a34e2bbd5394c8985c65a
CRs-Fixed: 2871313
2021-02-05 12:43:51 -08:00
Pragaspathi Thilagaraj
b870f29782 qcacld-3.0: Allow TWT events to wake up wlan host
Currently when TWT commands are sent to firmware, the host driver
doesn't acquire wake lock. So the wlan can got to wow mode before
receiving the TWT command response and the response will get
dropped since host is in wow mode.

To avoid this make the TWT events as wakeable so firmware can
wake up host if host is suspended.

Change-Id: I2750049f9173de564e24114731d3fdd8ec8d6d86
CRs-Fixed: 2869865
2021-02-05 12:05:49 -08:00
Lincoln Tran
e0db05e0fd qcacld-3.0: Add INI for TPE preference
When the TPE IE comes to driver, there could be information for both
local and regulatory. Add an INI for preference in the case that both
sets are present.

Change-Id: I4b37123569f422863fc805063974c65878a9baea
CRs-fixed: 2854774
2021-02-05 02:50:23 -08:00
Vulupala Shashank Reddy
c6fcb33313 qcacld-3.0: Refactor hardware name lithium with v2 for pkt capture mode
Refactor WLAN_FEATURE_PKT_CAPTURE_LITHIUM to WLAN_FEATURE_PKT_CAPTURE_V2
and refactor pkt_capture_get_pktcap_mode_lithium to
pkt_capture_get_pktcap_mode_v2 to remove hardware name from compilation
flag and function name.

Change-Id: Id12c60a47dee95a719cc39aa0803edc9582dda3b
CRs-Fixed: 2869808
2021-02-05 02:50:19 -08:00
Rajeev Kumar
2906b33aa3 qcacld-3.0: Add FW capability check for sap and go d3 wow
Add WMI service FW capability check before enabling D0 and D3
WoW for SAP and GO clients connected mode.

Change-Id: I878e4ee33807804e049bf1e8b8078d28fc1d4834
CRs-Fixed: 2869072
2021-02-05 00:30:48 -08:00
gaurank kathpalia
54195d40bd qcacld-3.0: Avoid calling disconnect API while holding sme lock
Add RSO lock and use it to send RSO commands. Also
avoid calling the cm_disconnect API while holding
SME global lock to avoid race.

Change-Id: I588a56f4c96d137d3283b2dc57274de069ecb4ab
CRs-Fixed: 2870603
2021-02-04 20:07:33 -08:00
Surabhi Vishnoi
2ef5608434 qcacld-3.0: Update the channel in tx_status for pkt capture mode
Update the channel info in the tx_status from policy manager for
packet capture mode.

Change-Id: Id237a0ee3d102b60c2cd9d47f2febb4538f29e2f
CRs-Fixed: 2869411
2021-02-03 05:41:20 -08:00
Liangwei Dong
0a675201fd qcacld-3.0: Init thermal throttle level when psoc open
Initialize thermal throttle level to "full perf" when psoc
open.

Change-Id: If28eb7320e34cea6ee22e83218e84723a960d8f0
CRs-Fixed: 2866198
2021-02-03 01:50:00 -08:00
gaurank kathpalia
2fb03473aa qcacld-3.0: Use is wps/osen from the connect req/rsp
Use is wps/osen from the connect req/rsp, instead of parsing
the assoc ie and deciding the value.

Change-Id: I628c8aab22d1e842219b8d38fd025299d91cc68f
CRs-Fixed: 2868657
2021-02-02 15:17:37 -08:00
Vevek Venkatesan
7ddad6e2cb qcacld-3.0: decouple bw monitor from WDI3_STATS_UPDATE
Decouple BW monitor from WDI3_STATS_UPDATE and add as a
separate feature flag WDI3_STATS_BW_MONITOR.

Change-Id: I77fb5658d995daceaada6a7d64f669da706ead9c
CRs-Fixed: 2868582
2021-02-02 13:08:13 -08:00
gaurank kathpalia
c29ed658d3 qcacld-3.0: Add supported channels, 11r, ESE etc. to LIM
Add csr join req params in LIM and fill them
accordingly.

Change-Id: Iea26867168b4e211a42e501c2aa36bebec1808e6
CRs-Fixed: 2867376
2021-02-01 15:29:58 -08:00
Liangwei Dong
055acc35f7 qcacld-3.0: Fix SAP 160Mhz radar event miss issue
When SAP operated in channel 36 with 160Mhz, the primary channel
36 is non-dfs and existing checking dfs will drop the radar event
if the radar detected on channel 52. Change policy mgr API to
check the dfs flags instead of primary channel state.

Change-Id: Ie2f242182b8df30e5d1875e278c5ebffa2e7cafd
CRs-Fixed: 2865173
2021-02-01 13:15:37 -08:00
Dundi Raviteja
eb2dc5ceca qcacld-3.0: Reduce stack frame size while clearing mc filter
Reduce stack frame size of target_if_pmo_clear_multiple_mc_filter_req()
by allocating dynamic memory to struct pmo_mcast_filter_params.

Change-Id: I0078ef0c84b33de209551dccd91aff70699eca80
CRs-Fixed: 2864938
2021-02-01 09:59:20 -08:00
Dundi Raviteja
537baf822a qcacld-3.0: Reduce stack frame size while setting multiple mc filter
Reduce stack frame size of target_if_pmo_set_multiple_mc_filter_req()
by allocating dynamic memory to struct pmo_mcast_filter_params.

Change-Id: Ib1ffb61aae30eda42340856a04cbbbf5a8162935
CRs-Fixed: 2864893
2021-02-01 09:59:12 -08:00
Dundi Raviteja
21b49b36be qcacld-3.0: Reduce stack frame size while registering action frame
Reduce stack frame size of pmo_register_action_frame_patterns()
by allocating dynamic memory to struct pmo_action_wakeup_set_params.

Change-Id: I4beed12c18c4e213c76e35c7762e59fc7d2ab957
CRs-Fixed: 2865021
2021-02-01 07:52:31 -08:00
Dundi Raviteja
070737954f qcacld-3.0: Reduce stack frame size in pmo_clear_action_frame_patterns
Reduce stack frame size of pmo_clear_action_frame_patterns()
by allocating dynamic memory to struct pmo_action_wakeup_set_params.

Change-Id: If430813658aabe5459bb0c3b16f9477b1fca9ed9
CRs-Fixed: 2865035
2021-02-01 07:52:27 -08:00
Abdul Muqtadeer Ahmed
fdd65fd9ea qcacld-3.0: Add a new ini param to enable PCI gen switch
Add a new ini param to enable/disable PCI gen switch

Change-Id: Ie8c61dbfb9834aac96a95eb935521e1bc4b3b835
CRs-Fixed: 2865861
2021-01-29 20:57:06 -08:00
sheenam monga
1c7977d211 qcacld-3.0: Remove usage of wlan_reg_get_channel_state
Use wlan_reg_get_channel_state_for_freq to get channel state
instead of wlan_reg_get_channel_state.

Change-Id: I0ab0465458801747cc97bf03b3aee4ec255beb57
CRs-Fixed: 2859852
2021-01-29 16:48:46 -08:00
Balaji Pothunoori
e64a36609f qcacld-3.0: addba request reject for peer ap
Add user controlled rx addba request reject for peer AP based
on ini configuration.

Change-Id: I80a4b78c1af77f5bfa68be3163f9e9a78cc64245
CRs-fixed: 2835511
2021-01-29 12:40:34 -08:00
gaurank kathpalia
c13a047628 qcacld-3.0: Fix FILS auth failure in connection manager
Fix FILS auth failure in connection manager.

Change-Id: I727d374a820375110723a081cd3a27828e92ba66
CRs-Fixed: 2865370
2021-01-28 13:47:42 -08:00