Commit Graph

27310 Commits

Author SHA1 Message Date
Vinod Kumar Myadam
eb9de6b459 qcacld-3.0: Update INI parameter default value
Update CFG_DISCONNECT_ROAM_TRIGGER_MIN_RSSI INI min, max
and default values under macro

Change-Id: I9973a032d16c5d8aedb4ad77833b9124de719e86
CRs-Fixed: 3314826
2022-11-02 01:47:30 -07:00
nakul kachhwaha
080c69ef81 qcacld-3.0: Handle new attribute to support flexible TWT
Parse new nudge attribute to support flexible TWT.
This attribute is optional and will override wake
duration attribute if provided.

Change-Id: I16bbd5e4c78e5471cdccad4ebe43049d4f85e829
CRs-Fixed: 3265813
2022-11-02 01:47:24 -07:00
Madan Koyyalamudi
156b64f65b Release 5.2.1.43W
Release 5.2.1.43W

Change-Id: If596b22bdd0fd7ef170b950bef86fce8c305df49
CRs-Fixed: 774533
2022-11-01 22:39:24 -07:00
Will Huang
72a860e9d9 qcacld-3.0: Reduce bw if selected non-DFS channel has DFS bonding
policy_mgr_get_nondfs_preferred_channel() return a non-DFS channel
with channel bw 20 MHz, but if the original SAP bw is 160 MHz and
channel is on 5 GHz, it always has DFS bonding channel.

So reduce channel bw if detect the bonding channel is DFS channel.
It can make STA connect to 5 GHz ref-AP even SAP is on 5 GHz channel
with 160 MHz bw.

Change-Id: I842d9dfb1070b900e52841b4ec5372af8550ad8e
CRs-Fixed: 3318696
2022-11-01 22:39:23 -07:00
Madan Koyyalamudi
bbc8e5ab31 Release 5.2.1.43V
Release 5.2.1.43V

Change-Id: I24b0c288893625ffa4cf434ef81ba702db38b873
CRs-Fixed: 774533
2022-11-01 17:54:12 -07:00
Jeff Johnson
a9db6a8521 qcacld-3.0: Fix misspellings of "detach"
Two misspellings of "detach" were detected in the driver, so fix them.

Change-Id: If3bf51f9c34c25e8519a229492bbab11946754dd
CRs-Fixed: 3324001
2022-11-01 17:54:12 -07:00
Utkarsh Bhatnagar
48f8039eaa qcacld-3.0: Don't overwrite BW for P2P Go on 6 GHz band
Consider the bw passed by supplicant/hostapd for P2P Go
starting on 6 GHz band.
Only Overwrite the bw when the P2P Go interface is coming
up on 5 GHz band (80 MHz) and for 2.4 GHz band (based on channel
bonding).

Change-Id: I628bd1e4008f811e6f8d72508a33527bbe8cf762
CRs-Fixed: 3324343
2022-11-01 17:53:54 -07:00
Madan Koyyalamudi
1de33bdb5d Release 5.2.1.43U
Release 5.2.1.43U

Change-Id: Ie5185d554bd3ffc3f92dbc2293a0c621be352d95
CRs-Fixed: 774533
2022-11-01 09:17:39 -07:00
Divyajyothi Goparaju
dc01aca04d qcacld-3.0: Replace wlan_reg_set_channel_params_for_freq
Replace all occurrences of
wlan_reg_set_channel_params_for_freq  API with new API
wlan_reg_set_channel_params_for_pwrmode.

Change-Id: I7ae94a7004803a96caeb7a77d03065096afe5f0e
CRs-Fixed: 3144793
2022-11-01 09:17:39 -07:00
Madan Koyyalamudi
67e1eb6d1b Release 5.2.1.43T
Release 5.2.1.43T

Change-Id: I6f7fe12762ee14add9d398aeeadb8aa767672ca6
CRs-Fixed: 774533
2022-10-31 20:05:22 -07:00
sandhu
59adff8583 qcacld-3.0: Add check for join req and num of partner links
If join req, num of partner links is not valid
do not send ML probe request.

Change-Id: I98f328d6fae9154415b7f903ed7d6dc835ce042a
CRs-Fixed: 3319901
2022-10-31 20:05:21 -07:00
Madan Koyyalamudi
98a6323661 Release 5.2.1.43S
Release 5.2.1.43S

Change-Id: I30e720f9ad568479b10c7fc61c0b7d4956fbf858
CRs-Fixed: 774533
2022-10-31 17:13:23 -07:00
Srinivas Dasari
4cfbb4b30c qcacld-3.0: Free the old bcn if new one is rcvd in sync frame ind
Firmware may send two consecutive roam sync frame indications when
it supports MLO roaming. The first event carries link beacon and
second event carries assoc beacon. This is to let host driver have
both the link scan results if host has to take care of link
connect(e.g. OWE MLO roaming, EAP MLO roaming,.. ).
If host driver doesn't have support/doesn't need link beacon,
it would be overwritten by assoc beacon(e.g. wpa2 MLO roaming,
SAE MLO roaming, ..).
This results in a memleak as the previous cached beacon is
not freed(vdev->rso_cfg->roam_sync_frame_ind->bcn_probe_rsp).

Free the existing beacon if new one is received. Also, remove the
current free's from extract_roam_sync_frame_event_tlv() which
doesn't need any such freeing as the copy always happens to a
freshly allocated buffer.

Change-Id: If3b4d6e4b8e1e2af5306171ad7eda28e744da64e
CRs-Fixed: 3322094
2022-10-31 17:13:22 -07:00
Madan Koyyalamudi
9d2fec51e7 Release 5.2.1.43R
Release 5.2.1.43R

Change-Id: Ia999f08bd9a309f27e04bdfba8bdec76d1e2315f
CRs-Fixed: 774533
2022-10-31 15:22:20 -07:00
Paul Zhang
dcf34404aa qcacld-3.0: don't process deauth if broadcast macaddr
In function hdd_softap_deauth_all_sta, if sta's mac address
is broadcast address, it does not need to invoke function
hdd_softap_deauth_current_sta.

Change-Id: If3d19a8f6f91cb3568c2c20c8cf3a171772d571e
CRs-Fixed: 3320047
2022-10-31 15:22:20 -07:00
Madan Koyyalamudi
a9bfcb0698 Release 5.2.1.43Q
Release 5.2.1.43Q

Change-Id: I0d3bacf98ddc6d8d1b174282952a1cb26c8ef54a
CRs-Fixed: 774533
2022-10-31 10:51:34 -07:00
Wu Gao
9a0f87ceeb qcacld-3.0: Check tdls peer list size before add new node
Page fault reproted when all tdls peer list size exceed their max
size. So, add the change to avoid this issue.

Change-Id: I66b5f85c8cdc98491b33b2100a55f424d5531ca0
CRs-Fixed: 3321105
2022-10-31 10:51:34 -07:00
Madan Koyyalamudi
57d00d0492 Release 5.2.1.43P
Release 5.2.1.43P

Change-Id: I4adc8ec37b14382b4e47e26b76e6213efdbbe1e5
CRs-Fixed: 774533
2022-10-31 09:09:20 -07:00
Vishal Miskin
4e95648b6f qcacld-3.0: Measure TSF latency between host TSF sync enabled devices
The feature raises a pulses at specified interval in TSF time domain.
The pulses can be used to determine driver level latency between hosts
as they are operating in same TSF time domain.
Add ini "g_tsf_accuracy_configs" to configure parameters for TSF accuracy
feature to customize GPIO pins and interval.

Change-Id: I49609d5beba8043ac2ecc086e97b01d1e0b2d3f6
CRs-Fixed: 3277992
2022-10-31 09:09:19 -07:00
Madan Koyyalamudi
91594363d1 Release 5.2.1.43O
Release 5.2.1.43O

Change-Id: I82ea5254d10af2430ed45ad31f09437166cabe9c
CRs-Fixed: 774533
2022-10-31 06:00:22 -07:00
Liangwei Dong
b15dc8b3d3 qcacld-3.0: Fix documentation errors for action oui API
Change "psoc" to "psoc_priv" in documentation of
wlan_action_oui_cleanup.
Correct documentation of API name for action_oui_psoc_enable.

Change-Id: I9e3adbf69ca40967f2680114f4c7f1bb22c391a1
CRs-Fixed: 3323128
2022-10-31 06:00:22 -07:00
Madan Koyyalamudi
a2fa2b50a5 Release 5.2.1.43N
Release 5.2.1.43N

Change-Id: Ifc4d401982f15239a640eee3701b6a67937cf566
CRs-Fixed: 774533
2022-10-31 04:05:57 -07:00
Jianmin Zhu
0642f385f6 qcacld-3.0: Fix assert when process tpe ie
After roaming to new AP, session->lim_join_req isn't filled,
can't be used without check.

Change-Id: Ib89b22ea38927c2c544d96f6c9ce0aca67bcc3bd
CRs-Fixed: 3321909
2022-10-31 04:05:57 -07:00
Deeksha Gupta
567d5833ff qcacld-3.0: Rename multi_link into multi_link_bv
In struct ie_list, rename multi_link variable into
multi_link_bv.

Change-Id: Id10f62e3ba298da32224c0afec9df4f1b030bc76
CRs-Fixed: 3318529
2022-10-31 04:05:52 -07:00
Madan Koyyalamudi
d5f09532f0 Release 5.2.1.43M
Release 5.2.1.43M

Change-Id: I3faf7c055412cb13ccf366578b5b0e7cecc3abbd
CRs-Fixed: 774533
2022-10-29 01:05:02 -07:00
Jeff Johnson
d6dfd79037 qcacld-3.0: Fix struct set_pcl_cmd_params documentation
The documentation for struct set_pcl_cmd_params has errors, so fix
them.

Change-Id: I07cdc4b73d5d8811fbbafb0a9671dcaf5154883e
CRs-Fixed: 3323040
2022-10-29 01:05:01 -07:00
Madan Koyyalamudi
21b5209495 Release 5.2.1.43L
Release 5.2.1.43L

Change-Id: Iac699ef930676cd8a45db6aa6ce96d4b739ea66d
CRs-Fixed: 774533
2022-10-28 11:52:01 -07:00
Yu Wang
858aa9611e qcacld-3.0: return success for resume request during recovery
Linux kernel will shut down all interfaces if it fails
to resume WLAN, considering the firmware crash case in
system suspended state, the interfaces are left in down
state after recovery, which is different from the other
recovery cases, and it doesn't make sense.
To avoid it, return success for system resume request
if recovery is in progress.

Change-Id: I888f4702a10a72e5989bc0e867832b3ce72eec24
CRs-Fixed: 3322055
2022-10-28 11:52:01 -07:00
Madan Koyyalamudi
1e3f4735c7 Release 5.2.1.43K
Release 5.2.1.43K

Change-Id: I874c7128cd54fb87aec0358db7ce9109aacd6f8d
CRs-Fixed: 774533
2022-10-28 01:52:08 -07:00
Liangwei Dong
a6a40dcccd qcacld-3.0: Check dot11Mode before set 11be_capab
If host ini gDot11Mode set to lower dot11mode which doesn't
support 802.11be, override the target en_11be flag to false.

Change-Id: If11928f2a662e45ff310ae9bbd3866dbc1ed4b7d
CRs-Fixed: 3319707
2022-10-28 01:52:08 -07:00
Amruta Kulkarni
03947a38e8 qcacld-3.0: T2LM IE change for Beacon or probe response
AP can advertise more than two TID to Link mapping IEs in
the beacon or probe response.

Change is to update the t2lm IE as an array of value two.

Change-Id: I2c2f770b7047bb490dd557dec28caf056ede978e
CRs-Fixed: 3319268
2022-10-28 01:52:03 -07:00
Madan Koyyalamudi
d0358ea933 Release 5.2.1.43J
Release 5.2.1.43J

Change-Id: I4d994963a704e64d02e61340ec5f5b068051bba0
CRs-Fixed: 774533
2022-10-27 19:38:32 -07:00
Rakesh Pillai
400ac6a862 qcacld-3.0: Enable feature to drop packets from non-monitor PMAC
Enable the feature to drop the packets which are
arriving from PMAC on which monitor vdev is not running.

Change-Id: I2a5056f40e961102d01b5776577bd11a551a780d
CRs-Fixed: 3319409
2022-10-27 19:38:31 -07:00
Madan Koyyalamudi
7ece68b9f1 Release 5.2.1.43I
Release 5.2.1.43I

Change-Id: I2dabf3bf747cbc61bcfbc1165fb62bb64e8b82d9
CRs-Fixed: 774533
2022-10-27 17:49:17 -07:00
Jeff Johnson
b722a6da29 qcacld-3.0: Fix new misspellings in wlan_cfg80211_tdls.c
The following change introduced new misspellings into
wlan_cfg80211_tdls.c, so fix them.
- Change-Id I3a1a05961bb5e747d946ffa8314319f898ef7b97
  qcacld-3.0: Link params embedded in station param struct

Change-Id: Idf4f214f5e9e4656b241f8de015fc49d64fc4852
CRs-Fixed: 3319365
2022-10-27 17:49:17 -07:00
Madan Koyyalamudi
5e77a89fe6 Release 5.2.1.43H
Release 5.2.1.43H

Change-Id: Ie2b6dd5c4496574d7a916e5f898cc2e0029e4d21
CRs-Fixed: 774533
2022-10-27 13:25:18 -07:00
Gururaj Pandurangi
1d723a45dd qcacld-3.0: Fix to halve tx power received from TPE IE
AP advertises TPE IE Tx power as 8-bit unsigned int. STA
needs to convert it into an 8-bit 2s complement signed
integer in the range –64 dBm to 63 dBm with a 0.5 dB step.
Thus, halve the tx power received from AP's TPE IE.

Change-Id: Ibd3227a2f11f230b164af3c65a65f5e61879e25d
CRs-Fixed: 3313617
2022-10-27 13:25:18 -07:00
Krupali Dhanvijay
8a01b9d7ec qcacld-3.0: Add INI support to configure BT Coex traffic Shaping
Add ini support to configure traffic shaping for COEX
i.e. coex_tput_shaping_enable.Host sends this INI to
Firmware via WMI_COEX_CONFIG_ENABLE_TPUT_SHAPING.
Based on this enabled value, FW will do power save with AP
when BT page scan is enabled.

The default behaviour is to do a free run without notifying
a power save to the AP during the BT Page scan.

Change-Id: I4934c98911b66c7c834899ad7cdc72063e9c5153
CRs-Fixed: 3066980
2022-10-27 13:25:11 -07:00
Madan Koyyalamudi
32596d0b63 Release 5.2.1.43G
Release 5.2.1.43G

Change-Id: I6fc68c61f3bab431135edd1da7b96a40a57a3d02
CRs-Fixed: 774533
2022-10-27 11:30:33 -07:00
Jeff Johnson
5a9edac67d qcacld-3.0: Fix new misspelling of "disable"
The following change introduced a new misspelling of "disable", so fix
it.
- Change-Id Ie98a1b8681f41f3a63523ac40b5cfb688a7b0cb0
  qcacld-3.0: Handle VENDOR_SUBCMD_SR and operation

Change-Id: I7a06c24cf732b12072377835f01bd50aa5785062
CRs-Fixed: 3319368
2022-10-27 11:30:32 -07:00
Madan Koyyalamudi
7a911c32c8 Release 5.2.1.43F
Release 5.2.1.43F

Change-Id: Idd19ab1e860c91a342c667265be422065886b86d
CRs-Fixed: 774533
2022-10-27 08:00:58 -07:00
Jeff Johnson
55fd78b983 qcacld-3.0: Fix misspelling of "threshold"
The following change introduced a misspelling of "threshold", so fix
it.
- Change-Id Ie98a1b8681f41f3a63523ac40b5cfb688a7b0cb0
  qcacld-3.0: Handle VENDOR_SUBCMD_SR and operation

Change-Id: I255ef45d9978ce777a41564f0d05e6d99efe5a4b
CRs-Fixed: 3319363
2022-10-27 08:00:58 -07:00
Madan Koyyalamudi
741f9426e7 Release 5.2.1.43E
Release 5.2.1.43E

Change-Id: I95e4861059864b70c60d1d1de54ebc0e0ebfeff3
CRs-Fixed: 774533
2022-10-26 20:15:24 -07:00
Rajeev Kumar
7b78a85959 qcacld-3.0: Add beacon_rx log as part of iface stats handling
Add beacon_rx log as part of iface stats handling to know number
of beacons received during previous stats.

Change-Id: I90d30f354d879497ee5ae0f0f320efbcbb1741ab
CRs-Fixed: 3320914
2022-10-26 20:15:24 -07:00
Madan Koyyalamudi
39e54ee2f5 Release 5.2.1.43D
Release 5.2.1.43D

Change-Id: I6ae010d5f3d5db187274ba93b5cf434ed00315c1
CRs-Fixed: 774533
2022-10-26 18:47:42 -07:00
Rahul Gusain
38d541df76 qcacld-3.0: Make NAN high priority than TDLS in legacy platforms
Firmware handles all NAN concurrencies in the platforms which
don't advertise the WMI service cabability
WMI_SERVICE_NAN_DISABLE_SUPPORT. Host takes care of the NAN
concurrency if the capability is advertised by firmware.
But there can be some legacy targets where firmware wants to
offload NAN+TDLS concurrency alone to the host and it takes care
of rest of the concurrencies. This is to make NAN of higher
priority and disable TDLS when NAN is active. Currently, TDLS is
of more priority than NAN and it can't change the order as it
can't disable TDLS to change the priority.

Currently, driver doesn't parse the NAN messages(even NAN enable
request) in such platforms. Parse the NAN messages and disable
TDLS upon NAN enable request. Rely on NAN state machine to
allow/disallow new TDLS requests. This needs NAN enable status.

Change-Id: Ie9c7c1cc2f1ed6328a31b93077c2928940fc3450
CRs-Fixed: 3263730
2022-10-26 18:47:42 -07:00
Madan Koyyalamudi
1ecf6ce8d9 Release 5.2.1.43C
Release 5.2.1.43C

Change-Id: I78371dbd0f46d9a151e6b5cc179879c91c08a25b
CRs-Fixed: 774533
2022-10-26 17:18:08 -07:00
Paul Zhang
bc894a28b6 qcacld-3.0: remove duplicate code logic and race condition
Currently, there is duplicate logic in function
wlansap_roam_process_ch_change_success to invoke
function wlansap_start_beacon_req.
  a\ wlansap_roam_process_ch_change_success ->
	wlansap_start_beacon_req(sap_ctx)
  b\ wlansap_roam_process_ch_change_success ->
	sap_fsm -> sap_fsm_state_starting ->
	wlansap_start_beacon_req(sap_ctx)
This causes fw crash since it sends vdev up twice.

Also in SAP + SAP scenario, there is a race in updating global
variable mac_ctx->sap.SapDfsInfo.sap_radar_found_status. Move the
variable to sap_ctx per vdev to avoid such race.

Change-Id: Iaac9e5a649ea5fd6a8378f6da47c51112fbe8d18
CRs-Fixed: 3310317
2022-10-26 17:18:08 -07:00
Madan Koyyalamudi
5780ce0d69 Release 5.2.1.43B
Release 5.2.1.43B

Change-Id: I4155b291723de1031e326ed6d2dc309b296525d7
CRs-Fixed: 774533
2022-10-26 13:06:02 -07:00
sandhu
d8b7b21f76 qcacld-3.0: For MLO link vdev get partner link info from connect req
If link beacon is not scanned, host driver will send ML probe request
and generate link scan entry from ML probe response. The ML probe
response does not include RNR IE. This is causing failure in the link
vdev connect path as the partner information is updated from rnr ie.

To fix this, for link vdev connection get partner link information from
connect request.

Change-Id: Id22f57cefbf28cb20fa7e17b4b71b362b1ba0ae5
CRs-Fixed: 3312421
2022-10-26 13:06:02 -07:00