Commit Graph

26702 Commits

Author SHA1 Message Date
Surya Prakash Sivaraj
20f32531a3 qcacld-3.0: Fix SAE whitelist SSID roam failure
In whitelist roaming, the roam offload event is sent
for an BSSID with different SSID, however host driver
copies the connected bssid in the external auth event
to the userspace. This leads to preauth failure.

Cache the ssid from the beacon received as part of the
roam frame event before every roam auth offload event
and use that ssid for external auth events to userspace.

Change-Id: I634992baf0c98054897707aaf3b1265e17d46f04
CRs-Fixed: 3262859
2022-08-16 09:14:28 -07:00
nakul kachhwaha
55b4c8f1b5 qcacld-3.0: Add sysfs support for traffic end indication
Add sysfs entry to configure status and dscp values
used by application for regular traffic and last packet
to mark traffic end.

Change-Id: Ib0e0aaf64e24da3b402b695840850b01c19a4991
CRs-Fixed: 3207451
2022-08-16 09:14:22 -07:00
Madan Koyyalamudi
5dabe61b19 Release 5.2.1.32Z
Release 5.2.1.32Z

Change-Id: I17945894e83d6a625f35e16addd92770a3b35fd8
CRs-Fixed: 774533
2022-08-16 07:40:10 -07:00
nakul kachhwaha
49baf5f10c qcacld-3.0: Add traffic end indication support in DP component
Add ucfg APIs to set/get feature status and dscp
values and structure to store values

Change-Id: I839c89696581b8aefd873a120d938a5cbbc32899
CRs-Fixed: 3255692
2022-08-16 07:40:09 -07:00
Madan Koyyalamudi
c41b646825 Release 5.2.1.32Y
Release 5.2.1.32Y

Change-Id: Iaf23c5bd50e41e23bf103c607f8d8ed270f4dffd
CRs-Fixed: 774533
2022-08-16 06:00:41 -07:00
Jinwei Chen
823f94a3e3 qcacld-3.0: enable NO_RX_PKT_HDR_TLV feature for KIWI
enable NO_RX_PKT_HDR_TLV feature for KIWI

Change-Id: I7be006efc02ee23c770330b8f446dd1c30c97486
CRs-Fixed: 3262878
2022-08-16 06:00:41 -07:00
Surabhi Vishnoi
a6e1be96f5 qcacld-3.0: Trim ACS scan freq list based on last scan ageout time
If particular channel's last scan time is less than the last_scan_ageout
threshold, skip that channel from ACS scan frequency list.

This change optimises the ACS scan time by reducing the number of
channels in ACS scan request to firmware.

Change-Id: Id81815035a89039ef1f492a622c5d89cb4aa298e
CRs-Fixed: 3239387
2022-08-16 06:00:35 -07:00
Madan Koyyalamudi
8b2fa9fc04 Release 5.2.1.32X
Release 5.2.1.32X

Change-Id: I17df7536b976e03d14c10d2781b743c3c902d214
CRs-Fixed: 774533
2022-08-16 03:02:22 -07:00
Lin Bai
3e29620e42 qcacld-3.0: Add log when caching cmd during SSR
Add log when caching any north band cmd.

Change-Id: I0eb12a720334056b19bc420d6a17afe4564a7c1c
CRs-Fixed: 3267824
2022-08-16 03:02:21 -07:00
Madan Koyyalamudi
ded33b7760 Release 5.2.1.32W
Release 5.2.1.32W

Change-Id: Ifc29d689a2fc804e91c64c48b0992af80ce0e75c
CRs-Fixed: 774533
2022-08-15 20:44:01 -07:00
Pragaspathi Thilagaraj
d66eab7ba7 qcacld-3.0: Fix order of BTM frame logging
Reorder the BTM logging according to the below
scenarios:

Scenario 1: Roaming to AP2 and BTM query is sent to AP2.
1. Connected to AP1.
2. <Low RSSI> triggered roam to AP2. Successful roam to AP2.
==== Roam stats event 1 with full TLV case with AP1
(scan_type == partial, roam_trigger = low rssi) ====
3. BTM query to AP2 after 1sec.
4. BTM req from AP2
5. BTM resp to AP2
==== Roam stats event 2 with full TLV case having AP2 BTM info
(scan_type ==NO_SCAN, roam_trigger = BTM) ====

Scenario 2: Connected to AP1, send BTM query to AP1
==== Roam stats event 1 with full TLV case having AP1 BTM info
(scan_type ==NO_SCAN, roam_trigger = BTM) ====

Scenario 3: BTM request initiated by the AP
1. Connected to AP1.
2. AP1 sends BTM request with disassoc imminent set.
3. Roam scan is triggered.
4. BTM response to AP1
5. Roam to AP2.
==== Roam stats event 1 with full TLV case having AP1 BTM info
(scan_type = full or partial, roam_trigger = BTM) ====

6. Send BTM query to roamed AP2.
7. AP2 sends BTM req.
8. Send BTM resp to AP2
==== Roam stats event 2 with full TLV case having AP2 BTM info
(scan_type=NO_SCAN, roam_trigger = BTM) ====

Change-Id: I4571cbe75397fb795046abe8711571264ed98a65
CRs-Fixed: 3260060
2022-08-15 20:44:01 -07:00
vijaraj
98152442f6 qcacld-3.0: Incorrect TX status in logging after Roaming
In the api cm_roam_mgmt_frame_event(), TX status is sent
without conversion to the userspace resulting in
wrong value of tx status during logging.

Correct this by converting the tx status value before
sending to userspace in order for userspace to properly
evaluate the tx status.

Change-Id: Ie4b6b8bff5e8b9c88edfaf303ce6a4ae370edd67
CRs-Fixed: 3250473
2022-08-15 20:43:56 -07:00
Madan Koyyalamudi
635998ce56 Release 5.2.1.32V
Release 5.2.1.32V

Change-Id: Ib3f7708ad86bb01ea9bdd5cd574ca2b0d90a1a5a
CRs-Fixed: 774533
2022-08-15 19:16:29 -07:00
sandhu
762c0fceea qcacld-3.0: Fill MCS rates for TDLS off-channel 160 MHz
Currently in peer assoc, MCS rates are filled on basis of on-channel
TDLS connection BW. For cases such as TDLS offchannel on 6 GHz, the bw
can go till 160 MHz and in peer assoc those MCS rates for bw 160 MHz
should also be filled. As fix, if offchannel 6 GHz is supported then
fill the MCS rates for 160 MHz BW as well.

Change-Id: I00605bd66f403f0171e0f81b9108d6460ef109c5
CRs-Fixed: 3250792
2022-08-15 19:16:28 -07:00
Madan Koyyalamudi
69989909ff Release 5.2.1.32U
Release 5.2.1.32U

Change-Id: I676d0c9f7a35805eab04728aafb8a6980f3d0327
CRs-Fixed: 774533
2022-08-15 17:17:28 -07:00
Wu Gao
c749f69591 qcacld-3.0: Fix compilation issue
Wrong code logic causes compilation issue. This change added braces
and fixed compilation issue.

Change-Id: I3503d26cf003f4b11e03d5df8d666866e0e1fc54
CRs-Fixed: 3267860
2022-08-15 17:17:27 -07:00
Madan Koyyalamudi
17e869124d Release 5.2.1.32T
Release 5.2.1.32T

Change-Id: I47c58a2997a23541305bab7eb38da0edda5e9fda
CRs-Fixed: 774533
2022-08-15 14:27:04 -07:00
Jianmin Zhu
c48cfe0102 qcacld-3.0: Fix no HT40 in assoc req's Per-STA profile
When build assoc req, partner link has no pe session yet, so it just get
original ht cap from mac->mlme_cfg->ht_caps.ht_cap_info, which is got from
CFG_HT_CAP_INFO with default 364, BIT1 supportedChannelWidthSet is 0.

Assoc link has no such issue, since pe session is created when build
assoc req,  pDot11f->supportedChannelWidthSet is reconfiged in
populate_dot11f_ht_caps.

Change-Id: Iec7b34d8364618948e9ac2a50462bcb4ede13433
CRs-Fixed: 3267261
2022-08-15 14:27:03 -07:00
Madan Koyyalamudi
43bdb27dd0 Release 5.2.1.32S
Release 5.2.1.32S

Change-Id: Ieb3fd3fa3b6fd6ea90d75019951e440d6f6f2746
CRs-Fixed: 774533
2022-08-15 12:08:52 -07:00
Paul Zhang
8aee5c59f0 qcacld-3.0: correct rso_timer_stopped status
Currently host starts the start_rso_stop_timer when it sends roam
stop related commands to firmware. And tries to stop the timer when
it receives roam event with reason ROAM_REASON_RSO_STATUS or
ROAM_REASON_HO_FAILED. Since firmware also sends roam event with
above reasons when host configs other roam parameters. This causes
host confused about whether to stop the timer or not.

To resolve this issue, add one more condition
roam_event->notif_params == WMI_ROAM_SCAN_MODE_NONE

Change-Id: Ia24d5bba1e35bc4102951adcafc76edda7769d35
CRs-Fixed: 3267506
2022-08-15 12:08:52 -07:00
Madan Koyyalamudi
fa947d9a0a Release 5.2.1.32R
Release 5.2.1.32R

Change-Id: I26ae0f4cf125592a931bfa7e251dd095bd58f869
CRs-Fixed: 774533
2022-08-15 09:44:20 -07:00
Paul Zhang
3b08e1c692 qcacld-3.0: Fix partner info mismach issue
If DUT only supports one link, it does not set the partner info
in the probe request. But it tries to match the partner info when
it receives the ML probe response no matter the peer supports more
then one link. It causes the matching failure if peer supports two
links.
To resolve this issue, using the DUT's num_partner_links to control
the iteration.

Change-Id: I0e30cf1b566641dfd7eff5678f8d46be99005d51
CRs-Fixed: 3265252
2022-08-15 09:44:20 -07:00
Madan Koyyalamudi
99a301280d Release 5.2.1.32Q
Release 5.2.1.32Q

Change-Id: I573fc0bf8a8ca239a6e592cde34f5f37a0fc1259
CRs-Fixed: 774533
2022-08-15 00:15:11 -07:00
Gururaj Pandurangi
3814ee407b qcacld-3.0: Populate ML assoc req with EMLSR padding delay
Add support to populate MLO assoc request with EMLSR
subfields like EMLSR padding delay, transition delay that
are extracted from FW during ext service ready event.

Change-Id: Id5def8da6bef92ff6bf2101a7b3e0d8fb0cf3050
CRs-Fixed: 3262939
2022-08-15 00:15:11 -07:00
Madan Koyyalamudi
5baae56d1b Release 5.2.1.32P
Release 5.2.1.32P

Change-Id: I300000f71f29c23c0b8e216ceba9cf7784414dae
CRs-Fixed: 774533
2022-08-13 02:59:13 -07:00
Aditya Kodukula
2b0915517c Revert "qcacld-3.0: Idle shutdown in suspend prepare"
This reverts Change-Id: Id1f5172a7fc1792c83c8c1c20127de815f7e4980
to avoid deadlock between cnss_pm_notify and unregister_pm_notifier
during soft driver unload.

Change-Id: Ic82db9dc0ca9d6686df99926335af27abc61cdb5
CRs-Fixed: 3266366
2022-08-13 02:59:12 -07:00
Madan Koyyalamudi
143859f245 Release 5.2.1.32O
Release 5.2.1.32O

Change-Id: I4a289bb28cb33f2bcd0d6c73438286ead59a4aef
CRs-Fixed: 774533
2022-08-12 20:58:21 -07:00
Vinod Kumar Pirla
50ac86e63c qcacld-3.0: Self peer update during dynamic MAC update
The dynamic MAC address update for non-MLO netdev is not
updating the self-peer MAC address which is causing
reference count leak during VDEV destroy.

For non-MLO netdev always update the self-peer MAC address
and for MLO netdev, update self-peer MAC address only
on the link adapter which is associated to MLD adapter.

For non-MLO netdev, send MLD MAC address as NULL in the
request sent to FW set MAC address.

Change-Id: I37a4fdaef0fb8b274769295fd8a920ebd45ffae4
CRs-Fixed: 3265957
2022-08-12 20:58:21 -07:00
Madan Koyyalamudi
d568977f87 Release 5.2.1.32N
Release 5.2.1.32N

Change-Id: I5276641718635b6ed717604334ddae1749aa2aa5
CRs-Fixed: 774533
2022-08-12 18:55:22 -07:00
Ashish Kumar Dhanotiya
77f4615eac qcacld-3.0: Add ini to get wifi features from fw
Based on new requirement add an INI to enable/disable
get wifi features support.

Change-Id: I45ec54ac781724c2eaffa657f203db3abae2b74e
CRs-Fixed: 3266164
2022-08-12 18:55:21 -07:00
Ashish Kumar Dhanotiya
2490a83a25 qcacld-3.0: Add support to get feature set info
Based on the new requirement, add support to get requested
feature set info from different feature components.

Change-Id: I1bfc097c8ae8c4ab678d4dc07b7932cf3272d851
CRs-Fixed: 3262868
2022-08-12 18:55:15 -07:00
Madan Koyyalamudi
7034ffe097 Release 5.2.1.32M
Release 5.2.1.32M

Change-Id: I1378a7592e6bfd8235e7d4884f167b8049dbe003
CRs-Fixed: 774533
2022-08-12 13:48:42 -07:00
Ashish Kumar Dhanotiya
f7b3e8f61a qcacld-3.0: Free wifi features sysfs file only if it is created
Currently driver creates sysfs features file if fw provides
file name in oem data event, but it tries to free without
any condition, this leeds to an unexpected behaviour if
fw does not provides file name in oem data event.

To address above issue, free wifi features sysfs file only
if fw provides file name in oem data event.

Change-Id: Ida6a69846638ba6edd5d0e5322323ef66433b364
CRs-Fixed: 3266097
2022-08-12 13:48:42 -07:00
Ashish Kumar Dhanotiya
bfcf3d08f6 qcacld-3.0: Cache feature set file name and oem data info
Based on new requirement, cache feature set file name and
oem data info.

Change-Id: I01da429c856a99581558a1f81b43a1e7102a7846
CRs-Fixed: 3262817
2022-08-12 13:48:35 -07:00
Ashish Kumar Dhanotiya
d9dd8cc039 qcacld-3.0: Create wifi features sysfs file
Based on new requirement, create wifi features sysfs file.

Change-Id: I4ff20e515f87ffc43f9f315582340922106e990f
CRs-Fixed: 3262797
2022-08-12 13:48:27 -07:00
Sandeep Singh
ca38ac5038 qcacld-3.0: Add PLD API to get wifi kobject
Add PLD API to get wifi kobject.

Change-Id: I136d3f4abec831ab05058678beb23fe2e1b05d49
CRs-Fixed: 3264204
2022-08-12 13:48:21 -07:00
Ashish Kumar Dhanotiya
b50ea97a85 qcacld-3.0: Create wifi kobject if not created by platform driver
Currently host driver creates wifi kobject based on  dump in
progress feature flag, because of this, other features can not
use this wifi kobject.
To address this issue, create wifi kobject if platform driver
does not creates this.

Change-Id: I0ce3616cd229e58de5ab929555be6e1a9eb09c6a
CRs-Fixed: 3262667
2022-08-12 13:48:15 -07:00
Rakesh Pillai
c574dfa464 qcacld-3.0: Enable buffer replenish in thread for KIWI
Enable the feature to replenish rx buffers in a
separate thread and attach them in the NAPI context.

Change-Id: Iee54bb49b4592003265e2543550dab13f9b9640a
CRs-Fixed: 3266638
2022-08-12 13:48:08 -07:00
Bing Sun
9fa142d9f6 qcacld-3.0: Indicate operating frequency to SON when radar is detected
When radar is detected in EasyMesh agent, it should update its current
operating frequency as disallowed due to radar detection to EasyMesh
controller through channel preference report frame.

Indicate operating frequency to SON when radar is detected, so that
EasyMesh agent can notify it to EasyMesh controller.

Change-Id: I83de68c8a3aecd3588d14f59081d6676304093b9
CRs-Fixed: 3262578
2022-08-12 13:48:02 -07:00
Madan Koyyalamudi
8f2849c2a7 Release 5.2.1.32L
Release 5.2.1.32L

Change-Id: I7cfdc5ee32d8f218cb9fbd4c8ac6bafc459f55a2
CRs-Fixed: 774533
2022-08-12 08:25:12 -07:00
Jianmin Zhu
5a9556bf4b qcacld-3.0: Update linkspeed state to F/W for roaming protocol part
To avoid unmeaningful roaming, when low RSSI trigger,
only roam when rx linkspeed is also bad.
Steps:
1. F/W indicates feature supported by:
	wmi_service_linkspeed_roam_trigger_support
2. App sets vdev rx link speed threshold by vendor cmd.
3. Bus_bw_work gets rx link speed from data path periodically.
4. If found rx link speed change from good to poor, or poor to good, send
	to F/W.
5. F/W low rssi roaming is triggered only when both RSSI and link speed are
	poor.

Change-Id: I56829e42b26e407dd8e989a870aee2b3ea406232
CRs-Fixed: 3261996
2022-08-12 08:24:53 -07:00
Jianmin Zhu
ebfe40c98a qcacld-3.0: Update linkspeed state to F/W for roaming hdd part
To avoid unmeaningful roaming, when low RSSI trigger,
only roam when rx linkspeed is also bad.
Steps:
1. F/W indicates feature supported by:
	wmi_service_linkspeed_roam_trigger_support
2. App sets vdev rx link speed threshold by vendor cmd.
3. Bus_bw_work gets rx link speed from data path periodically.
4. If found rx link speed change from good to poor, or poor to good, send
	to F/W.
5. F/W low rssi roaming is triggered only when both RSSI and link speed are
	poor.

Change-Id: I38c60c55cca80ad9c71fcffda6712ac5984daef0
CRs-Fixed: 3264981
2022-08-12 08:24:47 -07:00
Jianmin Zhu
75fcd4dc84 qcacld-3.0: Fix link speed state always keep bad issue
After setting link speed threshold to low value like 10 Mbps by vendor cmd,
in bus bw timer, when find link speed above theshold, just change local
link speed state to good, not update global var dp_intf->link_monitoring,
so link_monitoring_cb is called periodically, message to update link
speed to good is sent to scheduler thread periodically,
WMI_ROAM_SET_PARAM_CMDID is sent to F/W periodically too.

To fix it, when find link speed state change from bad to good, update to
global var dp_intf->link_monitoring too. In next bus bw timer, find link
speed state keep good, don't send msg to update link speed again.

Change-Id: I3840e834a76465242face5b2529f004d1d277312
CRs-Fixed: 3266159
2022-08-12 08:24:41 -07:00
Madan Koyyalamudi
aef93e08b5 Release 5.2.1.32K
Release 5.2.1.32K

Change-Id: I550e7ef893530d034ead114756bedceb65426ccb
CRs-Fixed: 774533
2022-08-12 04:27:58 -07:00
Aditya Kodukula
3357aee444 qcacld-3.0: Add a debug print for soft driver unload
Add a debug print in wlan_hdd_main.c to to differentiate
between hard and soft driver unload.

Change-Id: Ia1f2c7d90e86c03e94a2ef20d8d7eef5acc316f0
CRs-Fixed: 3266415
2022-08-12 04:27:57 -07:00
Madan Koyyalamudi
d3d6b4acaf Release 5.2.1.32J
Release 5.2.1.32J

Change-Id: I166c1019c57687983bcdb3a0b646fbc10dd6a56b
CRs-Fixed: 774533
2022-08-12 02:35:08 -07:00
jinbaoliu
39f21f8038 qcacld-3.0: Driver provides rx rates info instead of FW
Driver is able to get rates info per MSDU, which can
exclude special frames like ARP, DHCP, etc. This change
is to refill the rates info parsing by rateflags from FW,
including legacy rate, MCS, NSS, BW, preamble, GI, etc.

Change-Id: I129d5f0dc48758d1a92ac0c3622c1761cdae8286
CRs-Fixed: 3257425
2022-08-12 02:35:08 -07:00
Madan Koyyalamudi
3eb38361f1 Release 5.2.1.32I
Release 5.2.1.32I

Change-Id: Idded5cb7b842fff00d60f1ef5f42b502a978d180
CRs-Fixed: 774533
2022-08-12 00:39:43 -07:00
Arun Kumar Khandavalli
f24500ae23 qcacld-3.0: Add link_id to various key operations for MLO
Receive the link_id for the key specific operations for mlo

Change-Id: Ia91cd2f5d3759a09d6399c5365fe5f2b3a55293e
CRs-Fixed: 3250836
2022-08-12 00:39:43 -07:00
Ashish
04f31c81d4 qcacld-3.0: Enable FEATURE_SET feature
Enable feature set feature flag to report required feature
set information.

Change-Id: Ib0a83f9ef9fadea5fd1188464b6b9ad44cb3dfc6
CRs-Fixed: 3262636
2022-08-12 00:39:37 -07:00