Commit Graph

24321 Commits

Author SHA1 Message Date
Madan Koyyalamudi
e7bd4ca179 Release 5.2.1.49Z
Release 5.2.1.49Z

Change-Id: I390263653331fb6d17ea82e9d14343b25df9f453
CRs-Fixed: 774533
2022-12-22 07:04:00 -08:00
Madan Koyyalamudi
3a5d9d2fa9 Release 5.2.1.49Y
Release 5.2.1.49Y

Change-Id: I1d561865fa48a7590e49b07fb544b01a62a6ac7d
CRs-Fixed: 774533
2022-12-22 02:43:42 -08:00
Vinod Kumar Pirla
23ad9dc82c qcacld-3.0: Create all SAP interface as ML type
On add virtual interface through cfg80211 ops, the params
to create adapter as ML will set for SAP mode.
However if SAP interface add is called internally in the
driver without setting the params to create the adapter
as ML type then, interface will be created in non-ML type
and ML SAP bringup fails.

Implicitly assume all SAP mode open adapter requests as ML type.

Change-Id: I7d16cfe4f20ec0d55aa520ae031069e4b2bc6869
CRs-Fixed: 3362622
2022-12-22 02:43:42 -08:00
Vinod Kumar Pirla
85d2d11666 qcacld-3.0: Check the RA of the mgmt frame for ML SAP BSS
If EAPOL exchange fails for the any ML client connecting to ML SAP,
the deauth frame is sent with MLD address of the respective client.
This can lead to peer look up while preparing deauth frame and will
drop sending deauth frame.

For ML SAP session, if the peer address received is MLD address,
then change the address to primary link's address of the peer.

Change-Id: Ic23cbdfd60672432347e0837b059aea663a9c510
CRs-Fixed: 3357351
2022-12-22 02:43:36 -08:00
Madan Koyyalamudi
2beefed89f Release 5.2.1.49X
Release 5.2.1.49X

Change-Id: I28dce4c2bd42932ea8232f98f9afbf4070781f0c
CRs-Fixed: 774533
2022-12-22 00:44:45 -08:00
Paul Zhang
d972751a54 qcacld-3.0: Release vdev ref gracefully
In function hdd_nan_sr_concurrency_update, the FOR iteration has
released the vdev ref if is_sr_enabled is false, but it does not
set sta_vdev to NULL. It causes the last sta_vdev ref count release
again and this causes issue of releasing ref count which was not taken.

Change-Id: Ia218073b4ef2508cd78370bb4236790df9b5ee4f
CRs-Fixed: 3363355
2022-12-22 00:44:45 -08:00
Yu Wang
3911372c3b qcacld-3.0: replace raw cfg80211 vendor APIs with wrappers
Replace cfg80211_vendor_cmd_alloc_reply_skb()/
   cfg80211_vendor_cmd_reply()/
   cfg80211_vendor_event_alloc()/
   cfg80211_vendor_event()/
   kfree_skb()
with internal wrappers
   wlan_cfg80211_vendor_cmd_alloc_reply_skb()/
   wlan_cfg80211_vendor_cmd_reply()/
   wlan_cfg80211_vendor_event_alloc()/
   wlan_cfg80211_vendor_event()/
   wlan_cfg80211_vendor_free_skb().

Change-Id: Ic85e58b5add8d92337ae5f3b29b9fdd15419f570
CRs-Fixed: 3360189
2022-12-22 00:44:38 -08:00
Madan Koyyalamudi
20b148d9b4 Release 5.2.1.49W
Release 5.2.1.49W

Change-Id: Id29dc4433597342b2f9189619ebeca71b3149496
CRs-Fixed: 774533
2022-12-21 17:59:52 -08:00
Madan Koyyalamudi
dc200c6377 Release 5.2.1.49V
Release 5.2.1.49V

Change-Id: Id8db2634144c415904711ca870bbefe911fb14ab
CRs-Fixed: 774533
2022-12-21 15:56:23 -08:00
Srinivas Dasari
2057769edd qcacld-3.0: Allocate sufficient mem for scan entry and bss desc of link
When STA roams to an MLO AP, non-assoc link might be superior
in features compared to assoc link and the per-STA profile
info may carry corresponding IEs. These IEs are extracted
and added to IE list of link probe response while generating
it. So, the link probe response generated from assoc link
probe response might be of more size than assoc link probe
rsp. Allocate buffer for the scan entry to be added to scan db
and bss descriptor to accommodate all of the IEs got generated
as part of link probe rsp generation.
Allocate MAX_MGMT_MPDU_LEN bytes for IEs as the max frame size
that can be received from AP is MAX_MGMT_MPDU_LEN bytes.
Same is applicable for link scan entry addition to scan db in
case of initial connection.

Change-Id: I2c2bb79176984a98034c071389c60ee4f649fd74
CRs-Fixed: 3359087
2022-12-21 15:56:22 -08:00
Madan Koyyalamudi
5d0c75dbdf Release 5.2.1.49U
Release 5.2.1.49U

Change-Id: Ic324e048b80336c6564f9353ec1958e79a1caad4
CRs-Fixed: 774533
2022-12-21 09:13:04 -08:00
Rahul Gusain
7e051b1f73 qcacld-3.0: Restrict NDI creation to ndi_max_support
Older versions of kernel (<5.12) support the interface creation
through vendor command. But newer versions of kernel(>5.12) expect
the NDI interface creation to happen in two phases due to RTNL lock
removal for the vendor commands.
1. Create an interface through add_virtual_intf in STA mode
2. Change the mode to NDI through vendor command.
Currently, host driver restricts NDI creation to MAX_NDI_ADAPTERS(2) in
kernel versions < 5.12 and same is applicable for newer kernels as well.
Add the same check in NDI start for kernel versions >= 5.12.
Currently, host driver uses macro "MAX_NDI_ADAPTERS" to limit the NDIs.
Use the value of ini param "ndi_max_support" instead as this can be
configured differently(1 or 2) for different targets.

Change-Id: I355c42d60d6b86b4664ed001d7ed4d163a102159
CRs-Fixed: 3362601
2022-12-21 09:13:04 -08:00
Vinod Kumar Pirla
4e553935a4 qcacld-3.0: Reinit MLO configuration on SAP restart
On dynamic NSS update sent to FW, SAP is restarted
after disconnecting all connected clients. In the
restart procedure, MLO configuration is not updated.
Any new client connection is rejected by hostapd
with invalid link id reason.

In hdd_restart_sap() API restore the MLO configuration
to restart SAP in ML.

Change-Id: Ife8acf99b0bfa1a5415ea79dd3e522ef6377cad1
CRs-Fixed: 3352712
2022-12-21 09:12:58 -08:00
Madan Koyyalamudi
0d7f210db8 Release 5.2.1.49T
Release 5.2.1.49T

Change-Id: Ifd7c6cc38c39d985812d87e3990ddab7d1b4e3c4
CRs-Fixed: 774533
2022-12-20 16:13:46 -08:00
Aravind Kishore Sukla
36fc55eac5 qcacld-3.0: Handle timer de-init if eSAP_START_BSS_EVENT fails
In current scenario, if eSAP_START_BSS_EVENT fails then host is
not de-initializing the timer hdd_medium_assess_init.

To address this issue, instead of de-init timer only for
eSAP_STOP_BSS_EVENT, host needs to de-init timer from a
common place.

Change-Id: I3b1304df2481d8276aeeec480b0ac3c1e35e5753
CRs-Fixed: 3363793
2022-12-20 16:13:46 -08:00
Qun Zhang
65018ab347 qcacld-3.0: Stop ap_ecsa_timer once TX success of CSA count 1 is received
According to current host logic, host still start 100ms ap_ecsa_timer
when CSA count is reduced to 1. So even if TX successful indication
for CSA count 1 is received, host will have to do vdev restart till
ap_ecsa_timer time out. Per CERT case VHT-4.2.16h, wlan cannot send
any more frames once beacon frame of CSA count 1 send out. But in FW
side, as long as sap doesn't vdev do restart yet, it still periodically
send fils discovery action frame, which cause cert case VHT-4.2.16h
failed.
Due to CSA is implemented in host, FW don't know current CSA count of
beacon template. So add the fix from host side.

Change-Id: I969494aa6e8c9df2cc4284169561f347fd4bd3ab
CRs-Fixed: 3352882
2022-12-20 16:13:31 -08:00
Madan Koyyalamudi
2d0111e4a3 Release 5.2.1.49S
Release 5.2.1.49S

Change-Id: I32f05e893edf96082d7060cf5868fad259889f1a
CRs-Fixed: 774533
2022-12-20 14:18:51 -08:00
Jianmin Zhu
c7369d8419 qcacld-3.0: Fix DFS issue when puncture enabled
If some 20M sub channels are disabled for puncture, bonded freq state will
become CHANNEL_STATE_DISABLE, while CHANNEL_STATE_DFS is expected if
DFS freq is included to pass CHAN_DFS_CFREQ2 to F/W by vdev start wmi cmd.
the check also happens in several other places.

To fix it, use API wlan_reg_get_5g_bonded_channel_state_for_pwrmode to
replace wlan_reg_get_5g_bonded_channel_state_for_freq and
wlan_reg_get_bonded_channel_state_for_freq.
set is_create_punc_bitmap of ch param as true, then bonded freq
state will become CHANNEL_STATE_DFS after
reg_update_5g_bonded_channel_state_punc_for_pwrmode called.

Change-Id: I3e5214e9e09ac2a959f6fa7d641173a80a3980a7
CRs-Fixed: 3360820
2022-12-20 14:18:45 -08:00
Madan Koyyalamudi
5461ffb1b2 Release 5.2.1.49R
Release 5.2.1.49R

Change-Id: I2482081a8d0857e2d7cab3d64b1753884d7bf755
CRs-Fixed: 774533
2022-12-20 11:56:24 -08:00
Madan Koyyalamudi
dbd8880154 Release 5.2.1.49Q
Release 5.2.1.49Q

Change-Id: I66f05be3140036f476bda58b4c6431291646e54c
CRs-Fixed: 774533
2022-12-20 03:07:28 -08:00
sandhu
a30f3c0cc6 qcacld-3.0: Fix compile error of mdie
Fix compile error of mdie[SIR_MDIE_SIZE], use
mdie[] instead.

Change-Id: I934d3f02a19b511583141deeca7af5b4d4c0ef30
CRs-Fixed: 3364146
2022-12-20 03:07:27 -08:00
Madan Koyyalamudi
c56c5fc1b9 Release 5.2.1.49P
Release 5.2.1.49P

Change-Id: Ia7d763e1638fb1c16062f3ead79a2794ee625d37
CRs-Fixed: 774533
2022-12-18 23:21:48 -08:00
Zhiwei Yang
f3da1c5736 qcacld-3.0: Fix TIM ie size error issue
TIM ie size previous fixed value is wrong, the size shall
be calculated according to the maximum number of STA.

Change-Id: I80700fd101fcfb6bb3e2e915f1188a3190e369f8
CRs-Fixed: 3347274
2022-12-18 23:21:42 -08:00
Madan Koyyalamudi
ed69fea017 Release 5.2.1.49O
Release 5.2.1.49O

Change-Id: I51f322085a457a8ffb1e7cc682ff04a76f487396
CRs-Fixed: 774533
2022-12-18 16:12:11 -08:00
Pragaspathi Thilagaraj
71b7b102e7 qcacld-3.0: Fix MLO set LTF keyseed in associated mode
When STA is associated to an AP, the LTF keyseed is derived
from KDK during EAPoL exchange and in multi-link case the LTF
keyseed needs to be configured for all the links for each
link address. But currently PTK derived is configured for each
link address and LTF keyseed is not configured for each link
address. This causes phy security ranging failure.

Send set LTF keyseed for all the active MLO links.

Change-Id: Ic978f9096d763f0f975a28dc3b3a00fb8fb1237f
CRs-Fixed: 3351633
2022-12-18 16:12:10 -08:00
Madan Koyyalamudi
0bd5fe760d Release 5.2.1.49N
Release 5.2.1.49N

Change-Id: Ie9c044c0a5c4246aab23b60814b620172b4252c5
CRs-Fixed: 774533
2022-12-18 01:11:29 -08:00
Madan Koyyalamudi
395d843cf8 Release 5.2.1.49M
Release 5.2.1.49M

Change-Id: Ied9d61729d0f74b030f565edae8173306c1a02e7
CRs-Fixed: 774533
2022-12-16 12:33:21 -08:00
Madan Koyyalamudi
da12e7dfd0 Release 5.2.1.49L
Release 5.2.1.49L

Change-Id: I1c3525032f49ffe6cc28b5c23410e8a4e34936ac
CRs-Fixed: 774533
2022-12-16 03:28:29 -08:00
Deeksha Gupta
7c00434445 qcacld-3.0: Send peer ML link_id info on tx control port
For ML connection, send the link_id on tx control port as per
6.0 kernel.

For legacy or non-ML connection don't need to send this info.

Change-Id: Iad3337481d62fd9cc2c35744a6aa1af14ab89d59
CRs-Fixed: 3342965
2022-12-16 03:28:28 -08:00
Madan Koyyalamudi
df3489fda8 Release 5.2.1.49K
Release 5.2.1.49K

Change-Id: I334f5d32bcc4590fb672b40fb4aad8fbcc409202
CRs-Fixed: 774533
2022-12-16 00:38:41 -08:00
Ashish Kumar Dhanotiya
ffd332217a qcacld-3.0: Add an attribute to set wfc state via set wifi config
Currently there is no attribute to set the wifi calling state
from user space to fw.
With this change add an attribute to set wifi config vendor
command to configure wifi calling state to fw via platform
driver.

Change-Id: I982e9a7245b9e5108cd6cbcb4162daa4b4b6a412
CRs-Fixed: 3345705
2022-12-16 00:38:41 -08:00
Naman Padhiar
2b2c0a0436 qcacld-3.0: Add PLD API to send WFC mode to FW
Add PLD API to send WFC(WiFi Calling) mode to WLAN FW.

Change-Id: I4aef58caa93d255233d2412aa6d03017da4b5f10
CRs-Fixed: 3346545
2022-12-15 21:17:57 +05:30
Madan Koyyalamudi
ffe89b5eaa Release 5.2.1.49J
Release 5.2.1.49J

Change-Id: I61375b69757bd83d7c50a761a13b2969e96b04d2
CRs-Fixed: 774533
2022-12-14 23:15:18 -08:00
Srinivas Dasari
f3438c702a qcacld-3.0: Fetch link freq based on link mac addr from roam sync
Currently, link frequency is fetched from roam sync indication
based on vdev_id. But the vdev_id is of assoc link in OWE/1x
cases(where link vdev would be down as part of roam sync handling)
but it would of non-assoc link in case of other modes
like SAE/WPA2/.. So current fetching of frequency based vdev_id
may give invalid frequency in SAE case as non-assoc link vdev_id
is passed.
Fetch the frequency based on link mac addr to avoid such failures.

Change-Id: I0a5748ac351473d85b21f2da8d8f124715c4d595
CRs-Fixed: 3358448
2022-12-14 23:15:18 -08:00
Madan Koyyalamudi
fbbcbd919c Release 5.2.1.49I
Release 5.2.1.49I

Change-Id: Iab8841de3859a461d0e1f7204fdef7621b7fc69e
CRs-Fixed: 774533
2022-12-14 11:57:13 -08:00
Madan Koyyalamudi
c3318881c3 Release 5.2.1.49H
Release 5.2.1.49H

Change-Id: I49171d64fe196389816c7216b4563b9506b3bd50
CRs-Fixed: 774533
2022-12-14 09:51:24 -08:00
Pragaspathi Thilagaraj
e340881301 qcacld-3.0: Handle deauthentication action for PASN peer
The userspace sends QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE
action in the QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION to delete
the pasn peer. Add changes to handle this action.

Change-Id: I30bcdadd792d5bf1271c61fa585c62d5255eee5b
CRs-Fixed: 3358878
2022-12-14 09:51:23 -08:00
Madan Koyyalamudi
8232f4cfd0 Release 5.2.1.49G
Release 5.2.1.49G

Change-Id: If61cd911c92c71561ad0f8e94de0f3f840226576
CRs-Fixed: 774533
2022-12-14 02:02:53 -08:00
Sai Kumar Kunchala
8e09eaace8 qcacld-3.0: Fix failure check to process QCA_TSF_GET command
Reset return value in wlan_hdd_cfg80211_handle_tsf_cmd
function so that QCA_TSF_GET command gets process.

Change-Id: Ia81d5e3920a6f707edcbdb05583f94798534b721
CRs-Fixed: 3353246
2022-12-14 02:02:47 -08:00
Madan Koyyalamudi
e0f5c3ec20 Release 5.2.1.49F
Release 5.2.1.49F

Change-Id: I8ae6e9677fa6929479d4ebf13b810465fe360d02
CRs-Fixed: 774533
2022-12-14 00:02:18 -08:00
Madan Koyyalamudi
3e4d62f761 Release 5.2.1.49E
Release 5.2.1.49E

Change-Id: I45a98f17d58fcd9260d1d5891644f4f4e0c01281
CRs-Fixed: 774533
2022-12-13 17:24:16 -08:00
Sheenam Monga
ac14a3912b qcacld-3.0: Send async event to userspace for NAN concurrency
As part of Spatial Reuse, host has to send SR Suspend and resume
events based on concurrency which is not sent in case of NAN
concurrency.

Fix is to send SR Suspend in case NAN comes up and any STA that
supports SR is already present because SR is not supported in
case of NAN concurrency. Similarly during NAN disable check
if any other vdev apart from NAN is sharing mac with STA that
supports SR and SR support on same mac is disabled then don't
send SR resume event as there is already a concurrent vdev that
will take care of SR Suspend event otherwise send SR Resume event.

Change-Id: I56a9b455dd0166bc3997f8306992e46da759e992
CRs-Fixed: 3339713
2022-12-13 17:24:16 -08:00
Madan Koyyalamudi
9406e4252e Release 5.2.1.49D
Release 5.2.1.49D

Change-Id: I7d44ae3c045180779894383800b00cd4c6b70ea4
CRs-Fixed: 774533
2022-12-13 14:06:13 -08:00
Sheenam Monga
80368c0326 qcacld-3.0: Update correct color and partial bssid bitmap
Currently, srg color bit map and partial bssid bit map
is not updated correctly.

Fix is to parse srg color bit map and partial bssid bit
map array correctly from assoc resp and add it to 64 bit
map which will be used to send 2 bitmaps of 32 bits to FW.

Change-Id: I8114359f8dda246c9d210fefdb1be55a3d0568a3
CRs-Fixed: 3355534
2022-12-13 14:06:12 -08:00
Madan Koyyalamudi
75c248dbb9 Release 5.2.1.49C
Release 5.2.1.49C

Change-Id: I7d79319257b8306a11ec81e3d8d9534e19d93eac
CRs-Fixed: 774533
2022-12-13 07:45:59 -08:00
abhinav kumar
ce9bc69f08 qcacld-3.0: Disable unsupported EHT capability for SAP/GO
SAP/GO doesn’t support below EHT capabilities, So the driver
should not advertise it in beacon, probe rsp and assoc rsp.
It can cause IOT issues if capabilities are advertised
without support.

1. tx_1024_4096_qam_lt_242_tone_ru
2. rx_1024_4096_qam_lt_242_tone_ru
3. non_ofdma_ul_mu_mimo_le_80mhz
4. non_ofdma_ul_mu_mimo_160mhz
5. non_ofdma_ul_mu_mimo_320mhz

Fix is to disable the above unsupported EHT capabilities
for SAP/GO's beacon, probe rsp and assoc rsp.

Change-Id: Ia958e2f3de7454eb5eff34a347e65f7510f433bc
CRs-Fixed: 3340585
2022-12-13 07:45:59 -08:00
Madan Koyyalamudi
0366a80ea2 Release 5.2.1.49B
Release 5.2.1.49B

Change-Id: I0339a7e842157e0ec94dd7b06e65abda5b0f3a55
CRs-Fixed: 774533
2022-12-12 18:38:18 -08:00
Lin Bai
403aafca53 qcacld-3.0: Always print SAE TX addr
Enhance the print of SAE TA, to always log the address passed to
cfg80211_external_auth_request().

Change-Id: I0765b3a0465d7271b3bf42bc7498d4b7e673c88e
CRs-Fixed: 3357863
2022-12-12 18:38:13 -08:00
Madan Koyyalamudi
c3b0cec165 Release 5.2.1.49A
Release 5.2.1.49A

Change-Id: I466182a4f5cfe093befee1b6f2e5d771ee76de25
CRs-Fixed: 774533
2022-12-12 15:38:42 -08:00
Madan Koyyalamudi
fc8c64aa9e Release 5.2.1.49
Release 5.2.1.49

Change-Id: Ifea3acacd0f38ce2da8562e24077f16d3ab1c521
CRs-Fixed: 774533
2022-12-12 13:47:04 -08:00