Commit graph

22,649 commits

Author SHA1 Message Date
Deeksha Gupta
770f87ec4c qcacld-3.0: Check peer TWT capability before TWT setup request
Currently, in TWT setup command, if peer does not support TWT
capabilities then firmware returns status = 4.

Add condition to check the peer capabilities before sends TWT
setup request to firmware.

Change-Id: Icd1cbeff2db2bdec4e456013e98270a526ff22ce
CRs-Fixed: 3082071
2021-12-06 10:18:55 -08:00
Madan Koyyalamudi
074c34f983 Release 2.0.8.26E
Release 2.0.8.26E

Change-Id: Ib7150a33d3f47f8ff3f5006dc444cfd383f810d3
CRs-Fixed: 774533
2021-12-06 01:09:03 -08:00
Surabhi Vishnoi
1d3fee3098 qcacld-3.0: Add support for beacon filters in packet capture mode
Add support to send beacon received from firmware on STA interface
to mon interface based on management rx filters set by user in
vendor command.

Change-Id: I186ab0d697da831894854d7680265e82dd3adcef
CRs-Fixed: 3073478
2021-12-06 01:09:03 -08:00
Madan Koyyalamudi
37540338f6 Release 2.0.8.26D
Release 2.0.8.26D

Change-Id: Iacfbdcfebcf87aa4e12cf5d48c764ca98acb66ef
CRs-Fixed: 774533
2021-12-02 02:00:20 -08:00
Bapiraju Alla
20ecfccc51 qcacld-3.0: Fix mem leak with NDP peer multicast address list
Currently, NDP peer multicast address is derived from peer MAC address
and cached in the host. While removing the NDP peer, peer MAC address
is used to search the cached multicast address list. Because of this,
peer multicast address list is not getting freed.

To resolve this, derive peer multicast address from the peer MAC address
while clearing the cached multicast address list.

Since MAX NDP sessions are 8, allocate memory for peer multicast address
list during the NAN vdev private object allocation. This avoids the
special handling for peer multicast list in multiple error scenarios.

Change-Id: Ifbf890a4b9c8be54d84a5b57ed8f6c237ecd51ca
CRs-Fixed: 3085069
2021-12-01 09:34:42 -08:00
Madan Koyyalamudi
447f928edf Release 2.0.8.26C
Release 2.0.8.26C

Change-Id: Iaeb3327d7d0f40c88ae9fa231b03210ecd859ae9
CRs-Fixed: 774533
2021-12-01 01:46:16 -08:00
Deeksha Gupta
17205e4b9c qcacld-3.0: Update channel_before_switch_band in passive chan switch case
In current scenario, SAP is unable to switch from 2.4GHz to
5Ghz if previous CSA happens with reason CSA_REASON_CHAN_PASSIVE.

For instance, SAP starts on 5Ghz with Country US, and later it
changes to country 00 after MCC. Since in country 00, all 5Ghz
channels are passive, so SAP switches to 2.4Ghz with reason
CSA_REASON_CHAN_PASSIVE. Again if MCC happens to country US then
SAP is unable to switch from 2.4Ghz to 5Ghz. This is because
chan_freq_before_switch_band and chan_width_before_switch_band
are not filled in CSA_REASON_CHAN_PASSIVE case.

As part of fix, in wlansap_get_chan_band_restrict(), update the
chan_freq_before_switch_band and chan_width_before_switch_band
incase channel switch reason is CSA_REASON_CHAN_PASSIVE.

Change-Id: I9610b17cff3f6e0e5257270d2fccd5586c9913f9
CRs-Fixed: 3055017
2021-12-01 01:46:15 -08:00
Madan Koyyalamudi
1cf6c73f1f Release 2.0.8.26B
Release 2.0.8.26B

Change-Id: I0e143fa774954d26e10af44961a7579e2cfa807f
CRs-Fixed: 774533
2021-11-30 10:59:16 -08:00
Karthik Kantamneni
0cc8a490ce qcacld-3.0: Control netif sub queues with sub queue pause mask
Currently global pause mask is used for controlling individual
AC based sub queues and even all the network queues, due to this
mask is set/reset improperly which is not giving actual global
queue status representation. To avoid this introduced new sub queue
mask which is used while controlling individual network sub queues
and global mask is over for overall network queues.

Change-Id: I6632a1831cbea84c23441dbb67473c94b487109a
CRs-Fixed: 3081060
2021-11-30 10:59:16 -08:00
Madan Koyyalamudi
386fe9ba50 Release 2.0.8.26A
Release 2.0.8.26A

Change-Id: Ib16c8544e3135b10c747dff709556b48a3a97524
CRs-Fixed: 774533
2021-11-30 01:13:35 -08:00
abhinav kumar
ab2441a879 qcacld-3.0: Mem leak in wlan_cm_dual_sta_roam_update_connect_channels
Fix possible memory leak while updating dual sta connect channel list
in wlan_cm_dual_sta_roam_update_connect_channels.

Change-Id: I39dc05e485a0f00189978a38fa927a6ec4bd0086
CRs-Fixed: 3035192
2021-11-30 01:13:35 -08:00
abhinav kumar
596c8819ac qcacld-3.0: Print allowed channels for the 2nd STA vdev conn
Print channel list which is allowed for connection for the
second STA when dual sta roaming in is enabled in
wlan_cm_dual_sta_roam_update_connect_channels to enhance
debug log.

Change-Id: I4e16f101b60dc9d34d6193adcfe72ec173c5467a
CRs-Fixed: 3000235
2021-11-30 01:13:29 -08:00
Madan Koyyalamudi
3c1f858f4f Release 2.0.8.26
Release 2.0.8.26

Change-Id: Icfaf448123b445a76d7289fc5858d6cf2fd2d739
CRs-Fixed: 774533
2021-11-29 02:51:38 -08:00
Bapiraju Alla
f690e5c12a qcacld-3.0: Derive NDP peer multicast address from peer MAC address
Currently, driver is depending on NS frame to be received to configure
peer multicast address for an NDP session. If there is a delay in NS
frame reception, peer multicast address list will be configured to the
FW without actual peer multicast address. Because of this, FW will drop
the NS frame from NDP peer.

To address this, derive peer multicast address from peer MAC address
and include it in multicast address list that is configured to the FW.

Change-Id: I92a575352d592b4001dc4f061e31eb7f592f8445
CRs-Fixed: 3066990
2021-11-29 02:51:38 -08:00
Madan Koyyalamudi
d2eefd3824 Release 2.0.8.25Z
Release 2.0.8.25Z

Change-Id: I76d78c5b1491e4252de3f54771324ce918e2a2df
CRs-Fixed: 774533
2021-11-28 23:44:48 -08:00
Liangwei Dong
07415b8eb1 qcacld-3.0: optimization of p2p miracast connecting time
Add new parameter 128/129 for miracast command to enable/disable
p2p connection time optimization. The command needs to be issued
before p2p negotiation/invitation/connecting, the driver will do some
necessary configuration to reduce the p2p connecting time. At present,
disabling IMPS is the only configuration to achieve it.

Change-Id: I518b0027290d0254313031fe23315b718565e04b
CRs-Fixed: 3031461
2021-11-28 23:44:48 -08:00
Madan Koyyalamudi
051a81abac Release 2.0.8.25Y
Release 2.0.8.25Y

Change-Id: Ie2ffec19b943e54bb879e41bd6ff9359eeea0f37
CRs-Fixed: 774533
2021-11-28 17:10:29 -08:00
Lincoln Tran
8e5c048c78 qcacld-3.0: Exclude BSS membership selector from rate set
When checking the total number of supported rates against the maximum
value of 12, don't include BSS membership selector elements in that
count. The value 12 only correspond to supported rates, not membership
selector elements.

Change-Id: Ic82d4dc9d324880141dfde3e3516a9b9f7f1e743
CRs-fixed: 3049216
2021-11-28 17:10:28 -08:00
Will Huang
fb2f2758df qcacld-3.0: Add H2E require flag to extended support rate
If SAE/H2E required by hostapd configure, it must populate in
supported rate or extended support rate set, add host driver support
to check this flag and populate it in extended support rate set.

Change-Id: Id75b5743e93a1a0f1d13150d5436d256e2ca117c
CRs-Fixed: 3016492
2021-11-28 17:10:24 -08:00
Madan Koyyalamudi
f170f3c1d5 Release 2.0.8.25X
Release 2.0.8.25X

Change-Id: I169a707a643a5581b53ce4992b26640dc7e908e7
CRs-Fixed: 774533
2021-11-25 15:06:09 -08:00
Tushnim Bhattacharyya
b061ede893 qcacld-3.0: Set default value for bss_color_collision_det_sta to 1
For STAUT to follow the rules governing OBSS Narrow Bandwidth RU in
UL OFDMA Tolerance Support, bss_color_collision_det_sta to be set
to 1.

Change-Id: Ibe283f8bec9febbaf9a876d1afd55389ea4c971d
CRs-Fixed: 3053624
2021-11-25 15:06:09 -08:00
Madan Koyyalamudi
a2198892f4 Release 2.0.8.25W
Release 2.0.8.25W

Change-Id: Idc8c36df7f74a3bfdaa59a354ec911bbdfa3ae5b
CRs-Fixed: 774533
2021-11-25 03:07:29 -08:00
Sai Pavan Akhil Remella
166b1a35fc qcacld-3.0: Fix invalid bssid filled while deleting pmksa
In delete pmksa call for FILS case, the userspace sends only the
ssid and cache id on the pmk cache. But the driver copies only the
bssid which could cause invalid bssid being copied and the delete
pmksa operation fails always.
Fill pmksa ssid if SSID and cache id are provided, else copy the
bssid.

Change-Id: If18cfd86983c9fe9ae421295accf12bf1e8de148
CRs-Fixed: 3072262
2021-11-25 03:07:29 -08:00
Madan Koyyalamudi
23455c179e Release 2.0.8.25V
Release 2.0.8.25V

Change-Id: Id5443a29b158fdbce695ceff8a92e93692c19dc2
CRs-Fixed: 774533
2021-11-24 14:43:22 -08:00
Jingxiang Ge
b160a90b1e qcacld-3.0: Classify qmi/wmi for WMI_REQUEST_STATS_CMDID
Current only TYPE_STATION_STATS is designed to be send
by qmi. and other request type should send by wmi.
if sending by qmi, qmi_get/qmi_put should be call to protect
qmi send and qmi response.

Change to check type and only allow TYPE_STATION_STATS to be
send by qmi.

Change-Id: I57b0bdb6717e259606993ea24ef024745a456664
CRs-Fixed: 3073744
2021-11-24 11:49:24 +08:00
Madan Koyyalamudi
071b358fb0 Release 2.0.8.25U
Release 2.0.8.25U

Change-Id: Id8413be770c42a068383945c9d7efac474ed1862
CRs-Fixed: 774533
2021-11-22 02:55:49 -08:00
Jingxiang Ge
008a07c098 qcacld-3.0: Reduced country change work resched time
Current when open interface, country change work will
start, but as hdd_open is holding psoc sync, it will
wait for 500ms to resched, after 500ms most of the time
the 1st scan comes, it will send WMI_SCAN_CHAN_LIST_CMDID
which cause scan abort.

Change wait time to 30ms, so country work can be finished
asap once hdd_open done, it will not affect 1st scan.

Change-Id: I13064eef7197464598722c0dce3fb1bf361cb841
CRs-Fixed: 3075136
2021-11-18 21:23:06 -08:00
Madan Koyyalamudi
97cb602447 Release 2.0.8.25T
Release 2.0.8.25T

Change-Id: Ib4532510da6347bf0f68305cc72a7c379c243577
CRs-Fixed: 774533
2021-11-17 07:15:24 -08:00
sheenam monga
44d6330954 qcacld-3.0: Add ini support for tx_retry_multiplier
Add ini support for tx_retry_multiplier and send
tx_retry_multiplier to fw as PDEV_STATS_TX_XRETRY_EXT
pdev param, so that fw can multiply the counter by the
percentage provided by user.

Change-Id: Ie2f06dc3aaa4a161a451b68abd085cc1537eb468
CRs-Fixed: 3066799
2021-11-17 07:15:24 -08:00
Madan Koyyalamudi
166131e551 Release 2.0.8.25S
Release 2.0.8.25S

Change-Id: I799f29967c6b5a29153008e3d917f5b171215ed1
CRs-Fixed: 774533
2021-11-10 12:08:43 -08:00
Srikanth Marepalli
056bf5581d qcacld-3.0: Add wow event and reason for roam event stats
This change sends the new wow event in the bitmap to FW only
when the roam stats suspend mode attribute is enabled from the
user space.
Also, the new wow reason is added to wake up the host while
sending the roam event stats.

Change-Id: Iaefb229929e8791870f33bf787487f7c20daf218
CRs-Fixed: 3050830
2021-11-10 12:08:43 -08:00
Srikanth Marepalli
6f83bfd812 qcacld-3.0: Fill the vendor attributes with the Roam stats
This change gathers the roam event stats from the FW.
New vendor event is used to fill in the vendor attributes
whenever the roam stats are received from Firmware.

Change-Id: I9a2ddef62d26b0b68897891788733df452ac1ceb
CRs-Fixed: 3036518
2021-11-10 12:08:37 -08:00
Srikanth Marepalli
9ad1472142 qcacld-3.0: Vendor command changes to enable the roam events stats
Add new vendor command to enable the roam events stats from the
driver/FW in both resume and suspend mode.
New roam param is introduced to indicate the FW to enable/disable
the roam stats using the new roam set command.

Change-Id: I6d04f0946e6735613a4cf3d4361bf31052314fa0
CRs-Fixed: 3036518
2021-11-10 12:08:32 -08:00
Amit Mehta
cf5baf10bf qcacld-3.0: Update tx Failed Count
Currently, we are updating tx failed based upon
MPDU tx fail count received from FW.

In addition to the fail count received from FW
add MPDU tx retries done in case of successful
transmission to tx failed.

Change-Id: Ib993c71a99dd4d59df116a454336716352122a8e
CRs-Fixed: 3058364
2021-11-10 12:08:26 -08:00
Madan Koyyalamudi
7137b72a96 Release 2.0.8.25R
Release 2.0.8.25R

Change-Id: Ifa3afe47ea1c2db44f3d129d176ce6d7c7e65648
CRs-Fixed: 774533
2021-11-10 09:35:43 -08:00
Balaji Pothunoori
794acdb8c6 qcacld-3.0: add os_if layer for monitor mode configuration
Add os_if layer for monitor mode vendor configurations.

Change-Id: I20488e0e398b1761745b24a70e9888fe487b88ac
CRs-Fixed: 3055069
2021-11-10 09:35:43 -08:00
Deeksha Gupta
d541dd9aa7 qcacld-3.0: Move enet.h header file
In wma_data.c file, move "enet.h" header after "wma.h" header

Change-Id: I7fd1128d32dce1768f61eb3b2e80245b67e3aa0f
CRs-Fixed: 3070893
2021-11-10 09:35:38 -08:00
Madan Koyyalamudi
83b7958171 Release 2.0.8.25Q
Release 2.0.8.25Q

Change-Id: I155d7f0017bd9ef04b8fc148e48c9cb923370147
CRs-Fixed: 774533
2021-11-08 10:28:32 -08:00
Surya Prakash Sivaraj
321dce918e qcacld-3.0: Send OCV capability in assoc request
WFA cert case expects OCV capability in RSN cap, if
STAUT supports OCV. But, as part of join request
processing, host disables self OCV capability if the
AP doesn't support OCV in beacon.

Delay the OCV capability intersection till the assoc
completion, so that OCV capability gets sent as part
of the assoc request.

Change-Id: I42a65b2506e1cbd791f328f6223b70081c24be25
CRs-Fixed: 3068832
2021-11-08 10:28:32 -08:00
Madan Koyyalamudi
2330cf7c1e Release 2.0.8.25P
Release 2.0.8.25P

Change-Id: I5a56022b94788e924dca7827cd960e032cace2f8
CRs-Fixed: 774533
2021-11-02 11:36:37 -07:00
Surya Prakash Sivaraj
463ef5c01c qcacld-3.0: Save ext cap IE from join request
Host sends the EXT CAP IE based on the capability
coming from the supplicant in join request. But, after
roaming the cached join request will be freed. Therefore,
after roaming few capabilities sent by the userspace are
not saved and therefore lost in reassoc request.

Save the EXT CAP IE from the join request in the VDEV
and use the cached capability for sending Ext cap IE.

Change-Id: I71947388b4c6e9e56a5832557416d9b462de70e2
CRs-Fixed: 3038496
2021-11-02 11:36:37 -07:00
Madan Koyyalamudi
9982b1330d Release 2.0.8.25O
Release 2.0.8.25O

Change-Id: Ice39b8298350199894bf5f63f487b1eb85bef852
CRs-Fixed: 774533
2021-10-31 21:04:55 -07:00
Gururaj Pandurangi
ad155b8503 qcacld-3.0: Avoid OOB read in sch_get_csa_ecsa_count_offset
Avoid OOB read in sch_get_csa_ecsa_count_offset API by
adding check for ie_len before subtracting element ID len
from it.

Change-Id: Id86e69b2c5abc37a4f33125dc5fd0bd1d92f64a7
CRs-Fixed: 3049251
2021-10-31 21:04:55 -07:00
Gururaj Pandurangi
f9b5f8c53d qcacld-3.0: Avoid OOB read in dot11f_unpack_assoc_response
Avoid OOB read in dot11f_unpack_assoc_response API. Add check
for when nBuf == len to read another byte of pBufRemaining.

Change-Id: Iccdb0b268d16f4169b8b701ade6085d47897f785
CRs-Fixed: 3042293
2021-10-31 21:04:50 -07:00
Madan Koyyalamudi
76a7ae98a0 Release 2.0.8.25N
Release 2.0.8.25N

Change-Id: I405288a41eec8280f8660e60e81f675c8813e98c
CRs-Fixed: 774533
2021-10-29 04:08:27 -07:00
Bapiraju Alla
942cd7b52e qcacld-3.0: Resume all modules before recovery shutdown
cfg80211 resume request will be rejected if there is an SSR in
progress, Because of this modules are not coming out of suspend state
when there is an SSR after suspend request.

To avoid this, resume all modules before recovery shutdown.

Change-Id: I3d749e0a5971468805a009cb990a220e0645c169
CRs-Fixed: 3016002
2021-10-28 20:41:09 -07:00
Madan Koyyalamudi
5410470934 Release 2.0.8.25M
Release 2.0.8.25M

Change-Id: I1172de63faa0f2ae3ae4589994574420d2d3c41e
CRs-Fixed: 774533
2021-10-27 05:54:52 -07:00
abhinav kumar
553b9dfaa3 qcacld-3.0: Add support to send set IE request in cnx manager
With connection manager enabled, the send IE request is
not sent after connection.

Add support to send set IE request after connection is
successful in connection manger.

Change-Id: I2f30eb67ba295e0ca416ccb40e12a376e0d7a47e
CRs-Fixed: 2976734
2021-10-27 05:54:51 -07:00
Pragaspathi Thilagaraj
2313f679cf qcacld-3.0: Update exteneded capabilities after connection
The extended capabilities IE is sent during vdev create and
this doesn't have the merged extended capabilities from the
userspace. So some of the fields advertised in association
request are not advertised in the re-association request.

Fix the missing fields not set in the extended capabilities IE
by sending the set IE message to LIM after connection is
successful.

Change-Id: I322d057f602e0362f12b362e7818e84cbb056cf4
CRs-Fixed: 2971072
2021-10-27 05:54:47 -07:00
Madan Koyyalamudi
fad69f89e8 Release 2.0.8.25L
Release 2.0.8.25L

Change-Id: I44af37651bcbd83bec685379f669bf3889f38f45
CRs-Fixed: 774533
2021-10-26 17:40:37 -07:00