Commit Graph

23904 Commits

Author SHA1 Message Date
Madan Koyyalamudi
24c3e1a25e Release 5.2.0.247L
Release 5.2.0.247L

Change-Id: I18d824a2bc5b277bd6e53c9fab099fcb728b85df
CRs-Fixed: 774533
2021-09-10 20:09:35 -07:00
abhinav kumar
3173789d99 qcacld-3.0: Add new BT Coex roam trigger reason
Send additional roam trigger TLV for BTC in
WMI_ROAM_ENABLE_DISABLE_TRIGGER_REASON_CMDID
command, to support a new roaming trigger
"WMI_ROAM_TRIGGER_REASON_BTC".

Change-Id: Ib767bd6bcf005c187b0fb58986ad287fe8753c1b
CRs-Fixed: 3009788
2021-09-10 20:09:34 -07:00
abhinav kumar
939ba8556a qcacld-3.0: Add BTC as a new roam trigger reason in host
To support BTC roaming, add a definition of BTC roam trigger
reason in ini roam_triggers. It goes to fw via roam_enable
trigger command (WMI_ROAM_ENABLE_DISABLE_TRIGGER_REASON_CMDID)

Change-Id: I231a72ed98a74fb1b5ced12da7c3932af12d485d
CRs-Fixed: 3009787
2021-09-10 20:09:28 -07:00
Madan Koyyalamudi
f577368da6 Release 5.2.0.247K
Release 5.2.0.247K

Change-Id: I714374488aaa268ea2dcd881620642514e65d838
CRs-Fixed: 774533
2021-09-10 17:51:48 -07:00
Lincoln Tran
1922e2a9b5 qcacld-3.0: Move regulatory wait to restart path
The current logic to wait for the regulatory update is set in
hdd_wlan_start_modules. However, this function is called in both normal
startup and in idle restart. The regulatory event only comes to the
driver on idle restart. Set the flag in the idle restart path only.

Change-Id: I52ac1f2d84650fd3757133c9bc28e87ee2b903cb
CRs-fixed: 3030575
2021-09-10 17:51:48 -07:00
Yu Wang
8a23dab257 qcacld-3.0: Refine BW for SAP for concurrent case
When concurrent STA is present and DBS is capable:
If the concurrent channel is DFS channel, make sure
the maximum SAP BW is equal or less than BW of STA;
If it's NOT, and the maximum SAP BW to be set is 160MHz,
reduce it to 80MHz.

Change-Id: Id2460b9d316bf7b91175611687bada0da11d5a93
CRs-Fixed: 3032225
2021-09-10 17:51:43 -07:00
Madan Koyyalamudi
8c92576203 Release 5.2.0.247J
Release 5.2.0.247J

Change-Id: I6c7f354ca72348a60be327dcc7aaad4de059cf1f
CRs-Fixed: 774533
2021-09-10 15:36:14 -07:00
Yu Wang
a4791d8279 qcacld-3.0: add build flag for network package timestamping
Network package timestamping is optional for TSF feature,
to make it configurable, add a new build flag
WLAN_FEATURE_TSF_PLUS_SOCK_TS.
This flag will be set only when CONFIG_WLAN_SYNC_TSF_PLUS
is enabled and CONFIG_WLAN_SYNC_TSF_PLUS_DISABLE_SOCK_TS
is not.

Change-Id: I413e85fadf93264cd41c2739b6d870aa08d60efb
CRs-Fixed: 3027378
2021-09-10 15:36:13 -07:00
Yu Wang
cfeefec851 qcacld-3.0: add fallthrough statement to fix compile error
Add fallthrough statement to identify intentional fall-through case.

Change-Id: I563cec88808a8e72e136e67ca81de1a0105c8e60
CRs-Fixed: 3033125
2021-09-10 15:36:06 -07:00
Aditya Kodukula
73d424f08d qcacld-3.0: Enable TSF feature for qca6490
Add following flags to enable TSF feature for qca6490.
CONFIG_WLAN_SYNC_TSF_PLUS,
CONFIG_WLAN_SYNC_TSF_TIMER

Change-Id: I22c77a668194bdabb41efe6e44e81a7f7082325b
CRs-Fixed: 3010812
2021-09-10 15:36:00 -07:00
Kiran Kumar Lokere
7ef82b2370 qcacld-3.0: Fix the TWT suspend operation command failure
TWT params are optional attributes for TWT suspend operation.
Do not mandate the check for TWT params for TWT suspend command.
Parse the TWT params if attribute is present in the suspend
command else use the default value.

Change-Id: I62fa5e0e8a9c0346957184b9578bdd273017df21
CRs-Fixed: 3027776
2021-09-10 15:35:54 -07:00
Chaoli Zhou
c4e53f966a qcacld-3.0: Return EBUSY instead of EINVAL in SSR case
In the SAP + p2g go SSR case, wpa_supplicant
will receive INTERFACE_UNAVAILABLE while driver
is doing SSR, then it will triger wpa_supplicant
to remove the p2p go from the interface and
change the mode from NL80211_IFTYPE_P2P_GO to
NL80211_IFTYPE_STATION. But it has the possibility
that switch mode failure due to qdf_is_recovering
is true from __dsc_vdev_can_trans, then
wpa_supplicant will get error code -EINVAL from
wlan_hdd_cfg80211_change_iface.
But current wpa_supplicant just only support
mode switch retry in the EBUSY case, so change the
return value from EINVAL to EBUSY if driver is
in recovery state to let wpa_supplicant has the
chance to do mode switch retry in the SSR case.

Change-Id: Id0f959a1e8386061d0258f520dba17e9efae1d08
CRs-Fixed: 2929212
2021-09-10 15:35:47 -07:00
Madan Koyyalamudi
bbe908f881 Release 5.2.0.247I
Release 5.2.0.247I

Change-Id: I0ff0b2b15fa85051f5131074c6d139d3131cde8c
CRs-Fixed: 774533
2021-09-09 13:09:13 -07:00
Bing Sun
3947022a92 qcacld-3.0: Fill csa offset in mlo IE when sending beacon template
Fill csa/ecsa offset in mlo IE when sending beacon template wmi cmd
to FW

Change-Id: If097bdfbf36a8d1d6ff41daf571ac8e3567ab45d
CRs-Fixed: 3023049
2021-09-09 13:09:13 -07:00
Madan Koyyalamudi
f9de3e0413 Release 5.2.0.247H
Release 5.2.0.247H

Change-Id: I3f9c72012391002bc1697f56fece468c0793f592
CRs-Fixed: 774533
2021-09-09 06:30:38 -07:00
Will Huang
7b2c4923c7 qcacld-3.0: Fix mgmt tx from supplicant failed on 6Ghz chan
Currently wlan_hdd_mgmt_tx path is still using legacy API to convert
channel frequency to number, it is not applicable for 6Ghz channel if
convert it back from number to frequency.

Fix it by replace all places where using legacy API to convert channel
and use channel frequency from supplicant directly. It can fix mgmt tx
from supplicant on 6Ghz channel.

Change-Id: I60fe37d7d716eeaceaa00f3fb59c77b629ebacac
CRs-Fixed: 3024898
2021-09-09 06:30:38 -07:00
Madan Koyyalamudi
c444f1ac06 Release 5.2.0.247G
Release 5.2.0.247G

Change-Id: I6b849fef1328dfaa8389f8eff88e04aaa6d1f7e8
CRs-Fixed: 774533
2021-09-09 03:24:29 -07:00
Alan Chen
f8a1c29a2b qcacld-3.0: Change incorrect log output
Output of log in hdd_enable_igmp_offload() should be igmp, not gtk.
Hence, change the log to print igmp instead.

Change-Id: I3a84b1d9e38abce1e57dd5823b833ee5bc173b57
CRs-Fixed: 3032679
2021-09-09 03:24:29 -07:00
chunquan
7f0225e909 qcacld-3.0: Fix vote level error on 32bit platform
When we request bus bandwidth by tx/rx pkt on armv7(32bit).
The timer statistical value of bw_vote_time is overflow,and
become small.So, next time, the diff_us calculate result is huge,
the total pkt is always zero.so the request always fail.

Change-Id: Ifaff8abd2b901f5f32f7a95b347365678cf2f3c4
CRs-Fixed: 2983899
2021-09-09 03:24:24 -07:00
Madan Koyyalamudi
29443fe177 Release 5.2.0.247F
Release 5.2.0.247F

Change-Id: I88aadc56bc2b4cb24fb6fe71d988f104d8899d26
CRs-Fixed: 774533
2021-09-09 01:13:38 -07:00
Bing Sun
5a436dd523 qcacld-3.0: ARP response dropped at host driver
ARP response dropped at OSIF due to non-availability
of sta entry with MLD address.
Added sta entry in OSIF/HDD context with MLD address.

Change-Id: Iff70197ca5707b88ea80b42a60a2b1fb383f00a9
CRs-Fixed: 3017249
2021-09-09 01:13:38 -07:00
Madan Koyyalamudi
4bc1e6c928 Release 5.2.0.247E
Release 5.2.0.247E

Change-Id: I4c41d85352d5b249f211276826c0c1363adfb296
CRs-Fixed: 774533
2021-09-08 20:22:01 -07:00
Amruta Kulkarni
b64278b0a5 qcacld-3.0: Limit range of JOIN and ASSOC timeout
In cfg file limit the range of join failure and assoc failure timeout.

Change-Id: I615cc371d3a8fa7fa977c0eab88f4b14df7fbcc6
CRs-Fixed: 3028740
2021-09-08 20:22:01 -07:00
Madan Koyyalamudi
fca033b80b Release 5.2.0.247D
Release 5.2.0.247D

Change-Id: I5a0f40a848e90bcf078016de952c4a7bacec53cd
CRs-Fixed: 774533
2021-09-08 14:55:18 -07:00
sheenam monga
fec839dd87 qcacld-3.0: Update pcl connecton table for p2p+p2p concurrency
Update pcl table for P2P + P2P concurrency for SCC,MCC and
DBS scenarios.

Change-Id: Ibd76db75c68a568fd60f1fece23e4e7146718628
CRs-Fixed: 2991321
2021-09-08 14:55:18 -07:00
Madan Koyyalamudi
881da73e9d Release 5.2.0.247C
Release 5.2.0.247C

Change-Id: I16f788c8072f4cb3a621359ca8834df42eeabed0
CRs-Fixed: 774533
2021-09-08 00:19:21 -07:00
Karthik Kantamneni
d49f188236 qcacld-3.0: Enable WLAN_SKIP_BAR_UPDATE support for lithium targets
Enable WLAN_SKIP_BAR_UPDATE support for lithium targets

Change-Id: Ic7ac34a6845b54005181f58081b389b2e79b29a8
CRs-Fixed: 3031396
2021-09-08 00:19:21 -07:00
Madan Koyyalamudi
228d5852df Release 5.2.0.247B
Release 5.2.0.247B

Change-Id: I0c6bba3e9366b6f3e82eda91307bdbd3e89cf765
CRs-Fixed: 774533
2021-09-07 20:21:44 -07:00
Bing Sun
b3be7372ce qcacld-3.0: Use global OC table when parsing OC field in RNR IE
The operation class field in RNR is using global operation class.
When getting frequency from RNR IE, we should search operation
class in global operation class table.

Change-Id: Ie9ff62e1d98cb10debfcff734e28ffaecf14e321
CRs-Fixed: 3031211
2021-09-07 20:21:44 -07:00
Madan Koyyalamudi
131d957d80 Release 5.2.0.247A
Release 5.2.0.247A

Change-Id: I3acafbb8c05c4182171702ecae8ac62fc1335451
CRs-Fixed: 774533
2021-09-07 10:42:59 -07:00
Vulupala Shashank Reddy
4da65b82c1 qcacld-3.0: Update the channel only if AUTH resp is successful
Currently channel is updated whenever AUTH frame is received
irrespective of its status. So in case of unsuccessful AUTH
wrong channel is updated in pkt capture mode.

To fix this issue, update the channel only if AUTH response
is successful. Also if after AUTH success, association or
reassociation fails update the channel with last connected
channel.

Change-Id: I51ee6bb2466f765ce6058c411b0dc0ab74a0dd04
CRs-Fixed: 2987748
2021-09-07 10:42:59 -07:00
Chaoli Zhou
f4c44548b4 qcacld-3.0: Fix stability issue while unload driver
During unload driver, if hdd_reg_notifier to be called
from kernel, it has the possibility that cause
regulatory_update_event to be reset after it has been
destroyed, which causes "Failed assertion 'event->cookie
== LINUX_EVENT_COOKIE'". So adds this fix to ignore the
regulatory notify request if it is in unloading state.
Meanwhile destroy the event after unregister wiphy
also can help on such kind of issue.

Change-Id: I527517c7f1443a4e211782f74b03e2fca40ab552
CRs-Fixed: 3028357
2021-09-07 10:42:48 -07:00
sheenam monga
446effff96 qcacld-3.0: Limit ROC for listen to max 600 if GO present
Add fixed 300ms extra ROC time instead of multiplying the
ROC duration by 6 as this causes the ROC to be upto 1.5 secs
if GO is present. Firmware will advertize NOA of 1.5 secs
and if supplicant cancels ROC after 200 or 300ms then
firmware cannot cancel NOA. So when supplicant sends next
ROC it will be delayed as firmware already is running previous
NOA which may cause p2p find issues if GO is present.

Fix this by capping the max ROC time to 600ms when GO is present.

Change-Id: I0774b06ff4db1fae7efc387388fdf3059505150e
CRs-Fixed: 3025870
2021-09-07 10:42:41 -07:00
Madan Koyyalamudi
9c59721081 Release 5.2.0.247
Release 5.2.0.247

Change-Id: I9151950d672679c19637997e45d0348a060db6b8
CRs-Fixed: 774533
2021-09-07 07:58:54 -07:00
Wu Gao
594d0ff113 qcacld-3.0: Clear CSA IE and update Beacon frame
CSA IE TX isn't offload to FW, the count of Beacon with CSA IE
actually DUT sent exceeds the required. So, this change clear CSA IE
and update Beacon frame.

Change-Id: Ib433b9d2877b332365a4cfdf1a6bca56d6194672
CRs-Fixed: 3008327
2021-09-07 07:58:54 -07:00
Vulupala Shashank Reddy
9a9225232b qcacld-3.0: Unsubscribe in reverse order of subscription
Ideally we should deinit in reverse order of init so we
should Unsubscribe in reverse order of subscription in
packet capture component.

Change-Id: Icb62a14c2d1fd20073f6924d03d523b7871c62d6
CRs-Fixed: 3019862
2021-09-07 07:58:49 -07:00
Madan Koyyalamudi
fbdf0fec54 Release 5.2.0.246Z
Release 5.2.0.246Z

Change-Id: I421ebb82cc6bcac5f224d528db5c2670df4297aa
CRs-Fixed: 774533
2021-09-07 04:27:52 -07:00
Chaoli Zhou
c87f453be0 qcacld-3.0: Export CFG_TGT_DEFAULT_BMISS_OFFLOAD_MAX_VDEV
In order to support four STA default interfaces
to be created and up after driver loaded, it
requires setting bmiss_offload_max_vdev=4 to
Hastings fw. So export this variable to be
configurable and can be modified if in need.

Change-Id: I25db5dd72de7d45c6be682891abba711edaf20dd
CRs-Fixed: 3030148
2021-09-06 20:51:27 -07:00
Madan Koyyalamudi
9f1ab09dbf Release 5.2.0.246Y
Release 5.2.0.246Y

Change-Id: I882036cb74c86f2c33484af2ef7745112797e808
CRs-Fixed: 774533
2021-09-06 11:51:16 -07:00
Surya Prakash Sivaraj
452155cb5d qcacld-3.0: Bypass the HE channel width fallback for SAP
For STA connection in HE 160, HE160 MCS is validated
during the session creation. If the HE160 is invalid,
the connection falls back to 80MHz. But, this check needs
to be bypassed for SAP, because during session creation SAP
will not have the peer capability, so the HE160 MCS validation
needs to be bypassed.

Change-Id: I3bbb2f35c40a123b5d05a94038970a0e7e43ac60
CRs-Fixed: 3025102
2021-09-06 11:51:15 -07:00
Madan Koyyalamudi
128f10d9ba Release 5.2.0.246X
Release 5.2.0.246X

Change-Id: I2016a7267750e9dd49d410ca560afdfdbc3a344b
CRs-Fixed: 774533
2021-09-06 06:20:54 -07:00
Ashish Kumar Dhanotiya
8215f877a9 qcacld-3.0: Process radio stats events inside lock
Currently host driver processes radio stats events with
scheduler thread without any lock and invokes hdd callback.
In hdd these stats gets handled in user space thread and after
processing stats, user space thread frees the memory allocated
in wma. Since one thread allocates the memory and other
thread frees the memory, this can lead to race conditions where
this memory might not get freed and mem leak can happen.

With this change add locking mechanism to allocate, use and to
free the memory.

Change-Id: I95906133bb2208a258c5cec16f4f01b1321ed0c2
CRs-Fixed: 3020218
2021-09-06 06:20:54 -07:00
Bapiraju Alla
ec1b963bb9 qcacld-3.0: MLO connection
Fixes for Mlo connection.

Change-Id: Ieb879245cab340a952a6f89265fb01960fa8c691
CRs-Fixed: 3029685
2021-09-06 06:20:49 -07:00
Zhaoyang Liu
03d336b9ee qcacld-3.0: fix pktlog issue with ROME module
Use macro PKTLOG_LEGACY instead of HELIUMPLUS to avoid Rome
PKTLOG setup failure. PKTLOG_LEGACY is used for HELIUM/ROME.

Change-Id: If3476660f19606b84341cce084db3d06d69de4c5
CRs-Fixed: 3028261
2021-09-06 06:20:44 -07:00
Madan Koyyalamudi
4472900f1d Release 5.2.0.246W
Release 5.2.0.246W

Change-Id: I26be5d6e9b82eb390b4a129d403bc8e5b7c10594
CRs-Fixed: 774533
2021-09-06 00:54:49 -07:00
Surabhi Vishnoi
d24b3c4526 qcacld-3.0: Fill the nss in tx status in pkt capture mode
Currently, nss is not filled for tx data packets. Fill the
last received nss from ppdu stats in the tx status in pkt
capture mode.

Change-Id: I1833be5e19eaba4e88befe9970f079b91ec4bbe4
CRs-Fixed: 3004484
2021-09-06 00:54:49 -07:00
Surabhi Vishnoi
e850d08b1f qcacld-3.0: Fill the ppdu stats in tx status in pkt capture mode
Ppdu stats related to transmitted msdu are received from
firmware and queued to a list. Remove the received ppdu stats
from front of list and fill in tx status of current msdu.

Change-Id: I764aa909497971010202ce3decb3380a732ce12c
CRs-Fixed: 3004483
2021-09-06 00:54:44 -07:00
Surabhi Vishnoi
98bf0f00c3 qcacld-3.0: Register for wdi event WDI_PKT_CAPTURE_PPDU_STATS
WDI_PKT_CAPTURE_PPDU_STATS event is sent when packet capture
related htt ppdu stats tlv is received from firmware.
Register for WDI_PKT_CAPTURE_PPDU_STATS wdi event and add
logic to insert received ppdu stats to a list.

Change-Id: Ie78cf4b161c90a0bcf514a3e71a82c3c3e358c24
CRs-Fixed: 3004480
2021-09-06 00:54:39 -07:00
Surabhi Vishnoi
2bef5e1a61 qcacld-3.0: Register for WDI_EVENT_PKT_CAPTURE_RX_DATA_NO_PEER
Register for WDI_EVENT_PKT_CAPTURE_RX_DATA_NO_PEER in packet
capture mode and add logic to parse it. This wdi event
delivers rx data packets to packet capture component which are
received before peer is mapped in host, mostly in roaming scenario.

Change-Id: Ia718293c97dd11de6aab5a739683eec38e7e057b
CRs-Fixed: 3000153
2021-09-06 00:54:35 -07:00
Madan Koyyalamudi
97406efd7f Release 5.2.0.246V
Release 5.2.0.246V

Change-Id: Id5e2bfef750be1454e3394594b06d62fed59e461
CRs-Fixed: 774533
2021-09-03 11:03:36 -07:00