Commit Graph

23149 Commitit

Tekijä SHA1 Viesti Päivämäärä
Madan Koyyalamudi
de0fc2b837 Release 5.2.0.237E
Release 5.2.0.237E

Change-Id: I57e69ef8e619ec985f744c71c51f5f9643012d52
CRs-Fixed: 774533
2021-06-18 01:01:40 -07:00
Srinivas Dasari
cbee8c2553 qcacld-3.0: Authenticate the mac address of registered peer only
hdd_roam_register_sta() picks the right mac address for
register peer. If it's called with peer mac address, it registers
that mac address and if it's called with broadcast mac address, it
picks adapter mac address which is self mac address.
In case of NDI, it's called with broadcast mac address. Peer
registration(cdp_peer_register) happens fine by picking adapter
mac address but tries to update peer state by picking broadcast
address. This fails and results in blocking/dropping the Tx data.

Authenticate the mac address registered to avoid this.

Change-Id: I8413585ca9c585eabed8e58755fac49eb5d9788d
CRs-Fixed: 2966158
2021-06-18 01:01:40 -07:00
Srinivas Dasari
1663527e35 qcacld-3.0: Send NDI create rsp to userspace after NDI state is set
Currently, driver creates the NDI upon userspace request and sends
NDI-create-response to userspace. But internal NDI state is set
after sending this response. This leads to a race condition when
userspace sends NDI delete while driver is still setting driver
internal state for NDI create.
So, send NDI create response to userspace only after completion
of driver internal processing.

Change-Id: Ic651fd4f6dfab17c48c4f65b6e5d49c4d08cbe16
CRs-Fixed: 2966549
2021-06-18 01:01:35 -07:00
Madan Koyyalamudi
a0a87ef288 Release 5.2.0.237D
Release 5.2.0.237D

Change-Id: I106492fca736b9679bc842320adf226f0e636597
CRs-Fixed: 774533
2021-06-17 20:09:26 -07:00
Sachin Ahuja
b2a3da872d qcacld-3.0: Check band caps before initializing wiphy band
Currently driver initializes the wiphy 6ghz band without
checking the band capability. If FW does not support 6Ghz
then wiphy register is failed as wiphy 6ghz band is initialized
by driver.

To fix this, initialize the wiphy 6ghz band only when host
driver and FW both supports 6Ghz band.

CRs-Fixed: 2968968
Change-Id: I28d660f515d16d0eb4245311b42c69308576ac62
2021-06-17 20:09:26 -07:00
Madan Koyyalamudi
69ff3ae6b0 Release 5.2.0.237C
Release 5.2.0.237C

Change-Id: I6aeada5fcc4f185b66604f3c017bd38267c8df5b
CRs-Fixed: 774533
2021-06-17 13:51:35 -07:00
Manikanta Pubbisetty
ed4167e111 qcacld-3.0: compare FSE metadata when REO ID mismatches
When an existing flow is evicted, there is chance that the
REO ID of the newly added flow and the inflight packets of the
evicted flow mismatch. In such cases, check the FSE metadata of
the flow with that of the packet instead of triggering a BUG().

Change-Id: I7412055101fb72f7b28db615672e88837d79e8d3
CRs-Fixed: 2968500
2021-06-17 13:51:35 -07:00
Madan Koyyalamudi
c99171398c Release 5.2.0.237B
Release 5.2.0.237B

Change-Id: Ic12b4ad324ee2b737c7b29e472759fc5aa5f8bcc
CRs-Fixed: 774533
2021-06-17 11:14:03 -07:00
Yu Wang
af7b3788a6 qcacld-3.0: add sme interface for requesting channel switch
Add new api sme_switch_channel(), which posts eWNI_SME_CSA_REQ
with specified parameters; set lim_handle_csa_offload_msg as the
handler for this new message.

Change-Id: Id015ac5f9f3674ff06d110f7a0dccd85364b3d86
CRs-Fixed: 2960191
2021-06-17 11:14:03 -07:00
Yu Wang
572e454bb8 qcacld-3.0: enhance CSA offload event handler
Enhance CSA offload event handler to support host
initiated channel switch request.

Change-Id: I9aa76b495b0547bea6faa8d03b9c7fe99058fcf6
CRs-Fixed: 2960191
2021-06-17 11:13:57 -07:00
Madan Koyyalamudi
182cb3067c Release 5.2.0.237A
Release 5.2.0.237A

Change-Id: I7addad8726de05e125534d925769ada0501d19fa
CRs-Fixed: 774533
2021-06-17 00:12:19 -07:00
Utkarsh Bhatnagar
cd07314543 qcacld-3.0: Flush pending start bss cmd command before stop bss
Flush pending start bss cmd command before stop bss.

Change-Id: I4fd88251301fd7e13ca3b59ce84bd9630285490a
CRs-Fixed: 2970068
2021-06-17 00:12:18 -07:00
Madan Koyyalamudi
7874e320fb Release 5.2.0.237
Release 5.2.0.237

Change-Id: I01624913d2027c8589b331f8e5b5a91759dbb3e8
CRs-Fixed: 774533
2021-06-16 21:30:55 -07:00
Gururaj Pandurangi
c627a01463 qcacld-3.0: Add Multi-link IE support
Add Multi-link IE support.

Change-Id: I0d4811c6dfb0758c284c299c90ab1832f95dff2b
CRs-Fixed: 2942499
2021-06-16 21:30:55 -07:00
Madan Koyyalamudi
bb779ee652 Release 5.2.0.236Z
Release 5.2.0.236Z

Change-Id: Iadb76192e1bc3bc1b1a85afff79cac5712230c2b
CRs-Fixed: 774533
2021-06-16 19:13:20 -07:00
Ashish Kumar Dhanotiya
c3690a1690 qcacld-3.0: Add and use vdev id from ll stats request
Currently host relies on fw for vdev id for ll_stats
response but FW does not send the vdev id in response
of radio stats and peer stats as response of the ll_stats
request. Host needs this vdev id to get the adapter on
which the ll_stats request is received so that is can process
and send the response back to user space.

To address above issue add vdev id in request private
structure and when receives response from the FW, extract
this vdev id from private structure.

Change-Id: I28c411aea852b36cd1a13174e87adfa7972fc077
CRs-Fixed: 2964782
2021-06-16 19:13:20 -07:00
Madan Koyyalamudi
dd0eda4312 Release 5.2.0.236Y
Release 5.2.0.236Y

Change-Id: I655e983ae6160ce0392ff5525452678d141f77b1
CRs-Fixed: 774533
2021-06-16 16:50:51 -07:00
Deeksha Gupta
785ab5431d qcacld-3.0: Fix status overwrite by disconnect req
Fix status overwrite by disconnect req if
WLAN_CM_SM_EV_ROAM_INVOKE_FAIL fail

Change-Id: I014965faf89c3bf8efc8b2036fc0f0466239fc19
CRs-Fixed: 2969763
2021-06-16 16:50:51 -07:00
abhinav kumar
1c4c73d081 qcacld-3.0: Dont allow SAP on indoor channel
In case of STA + SAP concurrency and STA is on indoor channel.
Dont allow SAP to turn on, irrespective of DBS, MCC or SCC mode
of concurrency, if STA + SAP concurrency not allowed
on indoor channel.

Change-Id: I79582f88e81cb2c95d2da2480d1e3d7a8b86906f
CRs-Fixed: 2967952
2021-06-16 16:50:46 -07:00
Madan Koyyalamudi
bb211cfdfe Release 5.2.0.236X
Release 5.2.0.236X

Change-Id: Ic4820ad3de0f0014d9f53108c8c4c383cb7e0c9b
CRs-Fixed: 774533
2021-06-15 15:09:58 -07:00
Amit Mehta
90acd43772 qcacld-3.0: Initialize HTC Pipe Ready message timeout
Init htcinfo structure variables to 0 to avoid issues
due to any newly added uninitialized variables in the future.

Change-Id: Ie4cf5c99c09f56ee1fc898397bcd3ccf4b678638
CRs-Fixed: 2962285
2021-06-15 15:09:58 -07:00
Madan Koyyalamudi
97eb7b11a3 Release 5.2.0.236W
Release 5.2.0.236W

Change-Id: I677a3d40e23a425b3d2b271ed88bce477f633651
CRs-Fixed: 774533
2021-06-15 12:22:10 -07:00
Jyoti Kumari
51ef091ec3 qcacld-3.0: Change default value of ILP profile
Change default value of ILP profile as 1

Change-Id: I3b3f39ce5c57eb4bd90456db3302482e4f87bc88
CRs-Fixed: 2968689
2021-06-15 12:22:10 -07:00
Madan Koyyalamudi
2af2a0be3c Release 5.2.0.236V
Release 5.2.0.236V

Change-Id: I39f8253f95d1e58d180cb531b3432bd8a430d693
CRs-Fixed: 774533
2021-06-15 10:00:11 -07:00
Jyoti Kumari
fa4e6b632a qcacld-3.0: Remove flush work from TWT kworker thread
wlan_twt_concurrency_update() calls the flush work internally.
So when the caller calls wlan_twt_concurrency_update api in
schedular context, flush work will block the schedular thread for
4 sec(twt enable/disable timeout value is 4sec). Because of this
the other request will be block till this time.

As part of fix, remove flush work and reduce twt enable/disable
timeout to 1 sec

Change-Id: I8f16da44b21cf54fcf2256aaef53371431e64aac
CRs-Fixed: 2963695
2021-06-15 10:00:11 -07:00
Madan Koyyalamudi
49b17eccc8 Release 5.2.0.236U
Release 5.2.0.236U

Change-Id: I9642557400397871937e76797428685e8e42426d
CRs-Fixed: 774533
2021-06-15 08:02:28 -07:00
Will Huang
ca7f07bdb3 qcacld-3.0: Fix unsafe channel buffer size not align
qdf_freq_t is by default defined as uint32_t, but hdd_ctx->
unsafe_channel_list is defined as uin16_t because cnss interface
is defined as uint16_t, so can't pass hdd_ctx->unsafe_channel_list
to ucfg_policy_mgr_init_chan_avoidance() which expect qdf_freq_t
list.

Convert hdd_ctx->unsafe_channel_list to qdf_freq_t list and pass
it to ucfg_policy_mgr_init_chan_avoidance().

Change-Id: I0207827e3cbaa82526e97d2826d90d396148c84a
CRs-Fixed: 2964178
2021-06-15 08:02:28 -07:00
Madan Koyyalamudi
fc0f4c13dd Release 5.2.0.236T
Release 5.2.0.236T

Change-Id: Id2795969c41c3c4472699f8b0cc78ab9cab8e33d
CRs-Fixed: 774533
2021-06-15 05:56:43 -07:00
Vevek Venkatesan
753c26db74 qcacld-3.0: defer sending STA_CONNECT to IPA after key install
Unlike wpa2, in wpa3 roaming scenario, roaming is not fully
offloaded to FW, EAPOL handshake and key install are done
from host, in current design during assoc completion handler,
it sends STA_CONNECT event to IPA and IPA gets hung waiting
for buffer replenish from FW and FW is waiting for current
thread to return, this causes deadlock, so defer sending
STA_CONNECT event to IPA after EAPOL handshake and key install
for all the secure connections, hence IPA HW is ready to
process the STA_CONNECT event, in this case.

Change-Id: I19961cdd303ccef13621c7a20867ba852342a526
CRs-Fixed: 2958313
2021-06-15 05:56:42 -07:00
CNSS_WLAN Service
5f7d027a1b Merge "Release 5.2.0.236S" into wlan-cld3.driver.lnx.2.0 2021-06-14 13:57:42 -07:00
CNSS_WLAN Service
776c03908d Merge "qcacld-3.0: Free already allocated memory for radio stats" into wlan-cld3.driver.lnx.2.0 2021-06-14 13:57:39 -07:00
CNSS_WLAN Service
fce8934a05 Merge "Release 5.2.0.236R" into wlan-cld3.driver.lnx.2.0 2021-06-14 13:57:37 -07:00
CNSS_WLAN Service
cc3b67be16 Merge "qcacld-3.0: In Monitor mode use proper event for restart failure" into wlan-cld3.driver.lnx.2.0 2021-06-14 13:57:35 -07:00
CNSS_WLAN Service
27db587fb8 Merge "qcacld-3.0: Define A_OFFSETOF macro" into wlan-cld3.driver.lnx.2.0 2021-06-14 13:57:33 -07:00
Madan Koyyalamudi
a9ad2d9b7c Release 5.2.0.236S
Release 5.2.0.236S

Change-Id: I56cf43ecd3f36fe12008c6f0227055f239c7814f
CRs-Fixed: 774533
2021-06-14 13:50:51 -07:00
Ashish Kumar Dhanotiya
289ed99c0c qcacld-3.0: Free already allocated memory for radio stats
Currently driver issues ll_stats command without considering
that there could be previously allocated memory which is not
freed because of timeout.
FW can send radio stats with multiple events and for the first
event host allocates memory in wma and processes all the events
with this memory, there is a possibility that host receives first
event and gets timed out, time out host frees the allocated
memory. Now if host receives remaining events it will again
allocate memory and processes these events and will set
nr_received as 1. Now if host issue new ll_stats request to FW,
in response processing it don't allocates new memory and just
appends new stats and increaments nr_received when nr_received
becomes equal to number of radios, it calls the hdd callback
and completes the request and frees the memory, after that host
receives the next event of this request and will allocates the
memory similar to above process and this event will be completed
as part of the response of the next ll_stats request, similar to
above process. This scenario will always have memory for one
radio stats response as non-freed which leads to memleak
issues.

To addrerss above issue, before sending any new ll_stats request
to FW, free the memory allocated for previous event.

Change-Id: I4bfd5bcb62416c243aa6023382070cbd993655c7
CRs-Fixed: 2961638
2021-06-14 13:50:51 -07:00
Madan Koyyalamudi
a56537898d Release 5.2.0.236R
Release 5.2.0.236R

Change-Id: I9b3388ace775218e5c79aea71cfa8f87db2e93ba
CRs-Fixed: 774533
2021-06-14 11:12:25 -07:00
Abhishek Singh
65aeec8465 qcacld-3.0: In Monitor mode use proper event for restart failure
In monitor mode in case of restart failure,
event WLAN_VDEV_SM_EV_START_REQ_FAIL is used to move the vdev SM
to init state. But this event will not be handled in
WLAN_VDEV_SS_START_RESTART_PROGRESS and thus the vdev stop/down
won't be sent for the vdev.

Use event WLAN_VDEV_SM_EV_RESTART_REQ_FAIL for restart failure
to send vdev stop/down.

Change-Id: I2db459136955b8dc2213c0251284a08a8f57aa57
CRs-Fixed: 2964875
2021-06-14 11:12:25 -07:00
Sandeep Puligilla
63d7e2a202 qcacld-3.0: Define A_OFFSETOF macro
Define A_OFFSETOF macro to fix compilation
errors.

A_OFFSETOF macro is mapped to macro offsetof()
defined in stddef.h.

Change-Id: I766826d610fcb6a06775f07bcd8a041ee29be89b
CRs-Fixed: 2967130
2021-06-14 11:12:19 -07:00
Madan Koyyalamudi
9c22ff6c01 Release 5.2.0.236R
Release 5.2.0.236R

Change-Id: Ic4fa859786262d1684f32b19aaab1e0e632a1d12
CRs-Fixed: 774533
2021-06-14 06:28:08 -07:00
sheenam monga
989e398008 qcacld-3.0: Send BIG DATA stats req to fw based on service cap
Validate fw capability to handle big data command before sending
big data stats request to fw.

Change-Id: Id7df4c3ac36e25761938758472ea9281c174a8c9
CRs-Fixed: 2937523
2021-06-14 06:28:07 -07:00
Madan Koyyalamudi
fc063995a7 Release 5.2.0.236Q
Release 5.2.0.236Q

Change-Id: Ic3f89424a0f06c8aede1d7492fb912695296b830
CRs-Fixed: 774533
2021-06-14 03:10:44 -07:00
Srinivas Dasari
ff58fd853b qcacld-3.0: Wait for key install in SAE/OWE as well
EAPOL handshake is done by wpa_supplicant in initial connection
and WPA3 roaming as well. Driver is supposed to wait for EAPOL
handshake/key complete timeout after getting roam sync indication
from firmware. But this wait is skipped with the change
change-id : Ie4f06cfcb066ae245de024b62da586aade783aec.
Add the same check again.

Change-Id: I437c6be15d7c1a3775a177c2da6c581d417c2533
CRs-Fixed: 2963548
2021-06-14 03:10:44 -07:00
Madan Koyyalamudi
98868eb40c Release 5.2.0.236P
Release 5.2.0.236P

Change-Id: I8c91fc406cc080b6fc34a5329ea1a825d2691146
CRs-Fixed: 774533
2021-06-10 15:11:39 -07:00
Lincoln Tran
4ee348b7ed qcacld-3.0: Modify condition to send 6GHz HE caps
The 6GHz HE capability macros were backported from kernel version 5.8
into 5.4, so change the check for kernel version to simply check for
the macro definition itself.

Change-Id: I86a9dfa964356ba65bd21ffef802042d442356bc
CRs-fixed: 2960286
2021-06-10 15:11:38 -07:00
Lincoln Tran
58af8b7009 qcacld-3.0: Add 320MHz case to conversion function
If the 11BE feature is enabled, 320MHz is added to the channel width
enum. This causes a compilation error in switch cases that do not handle
this case. Add the 320 case to the switch statement.

Change-Id: I6cf4f1395f9f8eb2fc14029dc371742362befa80
CRs-fixed: 2961456
2021-06-10 15:11:34 -07:00
Madan Koyyalamudi
39e7a59e04 Release 5.2.0.236O
Release 5.2.0.236O

Change-Id: Idd6a46881b30a67778d0ea1340c429d3d16b3625
CRs-Fixed: 774533
2021-06-10 13:02:21 -07:00
Jianmin Zhu
eb8cadbddf qcacld-3.0: Fix memory leak of assoc req
When SME/CSR layer received assoc indication, can't get session id by
bssid in some cornel cases, assoc req is leaked.

Change-Id: I877887fc0e2fe79a4ade53ba4aebc158fe480c28
CRs-Fixed: 2964966
2021-06-10 13:02:21 -07:00
Madan Koyyalamudi
b21337eac6 Release 5.2.0.236N
Release 5.2.0.236N

Change-Id: I1a91e766631432139a5504ee0620379d01c9ccd9
CRs-Fixed: 774533
2021-06-10 10:21:41 -07:00
Yu Wang
487590dc58 qcacld-3.0: enhance the api for setting channel change in AP mode
Without this change, wlansap_set_channel_change_with_csa() only allows
parameters with new frequency. Enhance it to support width only change.

Change-Id: I5855db5d43cbb8bc63ff70f2bd792b447cd88809
CRs-Fixed: 2960232
2021-06-10 10:21:41 -07:00