커밋 그래프

19362 커밋

작성자 SHA1 메시지 날짜
Bapiraju Alla
2699855b77 qcacld-3.0: Validate return value of target_psoc_get_mac_phy_cap
Add sanity check for MAC PHY capabilities pointer returned by
target_psoc_get_mac_phy_cap. This avoids illegal memory access when
returned pointer is not valid.

Change-Id: I2ee0cdb5945599a2ccf35db819555d0f7192ef9f
CRs-Fixed: 2668418
2020-05-05 15:05:57 -07:00
Utkarsh Bhatnagar
3997382aba qcacld-3.0: Use self PMF cap only if AP support PMF
In case AP doesn't support PMF, if STA has PMF enabled bit set
in assoc req, some AP may reject the association.

Fix is to consider self PMF cap only if AP support PMF

Change-Id: I6317c653cb7c21beb852d73b8eb541d6582a3a26
CRs-Fixed: 2677988
2020-05-05 15:05:32 -07:00
nshrivas
16fc83d781 Release 5.2.0.184M
Release 5.2.0.184M

Change-Id: I0ab0e952ea5a0ea5611c13410a47c34900051407
CRs-Fixed: 774533
2020-05-05 00:51:41 -07:00
Gururaj Pandurangi
3632d87c9a qcacld-3.0: Modify band checks to account 6GHz freq
Modify band checks in lim APIs to account 6GHz
frequency

Change-Id: Ieb08a14640074267c910a197f0d4d2f9bb467a54
CRs-Fixed: 2653415
2020-05-05 00:51:41 -07:00
nshrivas
9614d8539d Release 5.2.0.184L
Release 5.2.0.184L

Change-Id: I9cf8f4ff5f02a4f03b2b6bad11c0d01243cf2436
CRs-Fixed: 774533
2020-05-04 23:12:06 -07:00
Alan Chen
06551ba572 qcacld-3.0: Rename gEnablePowerSaveOffload to gAdvancedPowerSaveMode
gEnablePowerSaveOffload is confusing, so change it to
gAdvancedPowerSaveMode.

Value 0: Disable advanced power save
Value 1: Enable advanced power save

Change-Id: Ib5593ef31eedacdc232ffbad183974e2cd847e83
CRs-Fixed: 2676664
2020-05-04 23:12:06 -07:00
nshrivas
5e6cdf7b3c Release 5.2.0.184K
Release 5.2.0.184K

Change-Id: Ib6bd9014beda2d7485337dddf1e5a5bf3a0fe0a4
CRs-Fixed: 774533
2020-05-04 21:27:49 -07:00
Jianmin Zhu
e9a56b5fb2 qcacld-3.0: Enable GENOA link layer stats
Enable GENOA link layer stats.

Change-Id: Ibee8b9456e5ee8d33f8fdc874c725e6f3c29807b
CRs-Fixed: 2674233
2020-05-04 21:27:49 -07:00
nshrivas
81369008e6 Release 5.2.0.184J
Release 5.2.0.184J

Change-Id: Icdbb30e227981341b741c553e2b3443d4a5baf1b
CRs-Fixed: 774533
2020-05-04 19:38:09 -07:00
Bapiraju Alla
35267d1f6e qcacld-3.0: Fix return type for umac_stop_complete_cb
Fix return type for umac_stop_complete_cb to match with the return type of
sys_rsp_cb declaration.

Change-Id: I06c67bf04ead784054b62de25f127d805082c425
CRs-Fixed: 2674554
2020-05-04 19:38:09 -07:00
nshrivas
e46311df75 Release 5.2.0.184I
Release 5.2.0.184I

Change-Id: I5116ac80706c93b4336e58d8512c7f45c9f71a1d
CRs-Fixed: 774533
2020-05-04 09:21:58 -07:00
Ashish Kumar Dhanotiya
4f8e207a80 qcacld-3.0: Validate mac context in csr_get_peer_rssi_cb
Currently mac context is validated in csr_get_peer_rssi_cb
but even in case of invalid mac context it is dereferenced.

Add a check to validate the mac context and gracefully
return in case of invalid address

Change-Id: I96181e7ecd7be1a18e644f9499137a42e6af6372
CRs-Fixed: 2673557
2020-05-04 09:21:58 -07:00
nshrivas
a1200e2568 Release 5.2.0.184H
Release 5.2.0.184H

Change-Id: I6c3f19ae7c6861f96e059af2bc7c26b4c308b534
CRs-Fixed: 774533
2020-05-04 05:37:16 -07:00
Abhishek Ambure
e3f5eccb31 qcacld-3.0: Do not enable STA roaming if any NDI connection is active
Host disables STA roaming if any active NDI connection is present using
"sta_disable_roam" ini.

If NDI connection comes first and then STA connects to AP, then host
enables STA roaming in the association completion of STA. If STA
disconnects, roam scan is triggered which adds glitch in NDI connection.

Hence enable STA roaming if there are no active NDI connections.

Change-Id: I9594d9acc2d5d2255bd8914f6d58f726e3695601
CRs-Fixed: 2670756
2020-05-04 05:37:16 -07:00
nshrivas
74bfe11e3d Release 5.2.0.184G
Release 5.2.0.184G

Change-Id: I905d80fcffb6ccd920d35700bb637d709f1c297f
CRs-Fixed: 774533
2020-05-04 03:50:06 -07:00
Abhishek Singh
3f29b6c7f2 qcacld-3.0: Use crypto API to fill and validate mmie
Use crypto API to fill and validate mmie for BC frames.

Change-Id: Ibe420f974c1f8fb3796168e6db976061f904d520
CRs-Fixed: 2664276
2020-05-04 03:50:06 -07:00
nshrivas
405d82a9cb Release 5.2.0.184F
Release 5.2.0.184F

Change-Id: I247e77a72c1785fb8a59639f99c3a7a45cb974d6
CRs-Fixed: 774533
2020-05-03 18:18:46 -07:00
Nisha Menon
5cfa485d6b qcacld-3.0: Enable flag to check return val of deliver to stack
Enable DELIVERY_TO_STACK_STATUS_CHECK to check if return status
of deliver to stack function is a success. If not then drop the
nbufs and update the appropriate stat counters.

Change-Id: I0576016b66ada8696824855da1893ce0b18ee50e
CRs-Fixed: 2677414
2020-05-03 18:18:46 -07:00
Wu Gao
7d07763083 qcacld-3.0: Remove CFG_CFR_ALL
Remove CFG_CFR_ALL from CFG_ALL and avoid duplicate definition, since
WIN needs it and add it to CFG_CONVERGED_ALL by another change.

Change-Id: I4fe82573d069a06bf130937a3e38d045bb80c695
CRs-Fixed: 2673162
2020-05-03 18:18:42 -07:00
nshrivas
ee958896f8 Release 5.2.0.184E
Release 5.2.0.184E

Change-Id: Ib31cccf7437469846c810a09f509bfc5f0c37e70
CRs-Fixed: 774533
2020-05-03 13:43:32 -07:00
Arun Kumar Khandavalli
32de55112c qcacld-3.0: Free the beacon memory when sap restart fails
Whenever there is a subsystem restart the sap is internally restarted
in the driver, whenever there is a failure during this sap restart
there could be a memory leak.

Fix is to free the beacon memory whenever the sap restart fails.

Change-Id: If329aacceef50124956bddc049ee8e55e880177d
CRs-Fixed: 2671251
2020-05-03 13:43:32 -07:00
nshrivas
93a3a15e36 Release 5.2.0.184D
Release 5.2.0.184D

Change-Id: Icd18164fc04409f31359605accda81d37af9f293
CRs-Fixed: 774533
2020-05-03 12:00:48 -07:00
Vevek Venkatesan
dd3189d379 qcacld-3.0: introduce DP soc pdev init/deinit sequence
DP init/deinit flow to have dp_soc_init/dp_pdev_init
APIs where it takes care of initializing rings,
descriptors and DP data structures that was earlier
done as part of dp_soc_attach/dp_pdev_attach itself

This is to maintain symmetry across wifi load/unload

wifi load to call:
	1. dp_soc_attach
	2. dp_soc_init
	3. dp_pdev_attach
	4. dp_pdev_init

wifi unload to call:
	1. dp_pdev_deinit
	2. dp_pdev_detach
	3. dp_soc_deinit
	4. dp_soc_detach

Change-Id: I5889e0eafdb2fa6319c440725590e7a3014d8be0
CRs-Fixed: 2674081
2020-05-03 12:00:48 -07:00
nshrivas
e589066679 Release 5.2.0.184C
Release 5.2.0.184C

Change-Id: If19937180de9f3fb84baa8cb65f48a8744c153ab
CRs-Fixed: 774533
2020-05-02 11:10:00 -07:00
gaurank kathpalia
83e526cc1a qcacld-3.0: Advertise 40, 80, 160, 80+80 caps in wiphy
Currently driver does not advertise the bandwidth
capability for 5ghz band in the he capability
structure of wiphy, result of which is supplicant
is unable to turn on P2P-GO interface in HE40, 80
mode.

Fix is to advertise that the driver supports all
the bandwidths in HE mode which is supported by FW.

Change-Id: Ie94ad9784243ce1f562938b1a50c53f3a25db834
CRs-Fixed: 2673025
2020-05-02 11:10:00 -07:00
Rachit Kankane
51b1051f5f qcacld-3.0: Check for NULL pointer
Check for NULL pointer before accessing.

Change-Id: I7916a475be98cb63cc8569f8eba022d5b49f5c10
CRs-Fixed: 2669232
2020-05-02 11:09:55 -07:00
nshrivas
5f8eb0fa98 Release 5.2.0.184B
Release 5.2.0.184B

Change-Id: I85325744daeda0a431c5d863bfc76ded4bd4a3e9
CRs-Fixed: 774533
2020-05-02 09:22:13 -07:00
gaurank kathpalia
78c446da43 qcacld-3.0: Update bss rate flags after CSA
Currently the driver does not update the peer
rate flags after CSA and hence the rates and
link speed are wrong.

Fix is to update the rate flags after CSA so
that the reported link speed now is correct.

Change-Id: Idb51447b98acc281625d1ed0dae983fe2da2426a
CRs-Fixed: 2669792
2020-05-02 09:22:12 -07:00
nshrivas
02aaa26ed7 Release 5.2.0.184A
Release 5.2.0.184A

Change-Id: Ie1f40ec2ba27f0a6c52185c5cc3ad8183f59028b
CRs-Fixed: 774533
2020-05-02 04:27:22 -07:00
Mohit Khanna
ed577367b4 qcacld-3.0: Check hdd_ctx for null in hdd_get_bandwidth_level
Check for hdd_context validity before accessing current throughput level
in hdd_get_bandwidth_level.

Change-Id: I8cb3a0e484e4350938e28c4f704498aa24ed2c14
CRs-Fixed: 2669231
2020-05-02 04:27:22 -07:00
Ashish Kumar Dhanotiya
fc55b957c8 qcacld-3.0: Pass frequency as an argument to set mon chan api
With recent 6GHz changes set mon chan api has changed to accept
the frequency as an argument instead of the channel number.
Currently existing iwpriv interface is still passing channel
number as an argument to this api which results in the failure
of this command.

To resolve this above issue, convert the channel number received
as an argument to frequency at the entry point of the iwpriv
command and invoke set mon chan api with the fequency as an
argument.

Change-Id: I6bb0682ff3cf5c6e8086012522ea1455a1cecae4
CRs-Fixed: 2675499
2020-05-02 04:27:17 -07:00
Lincoln Tran
92ab495e37 qcacld-3.0: Fix potential NULL pointer dereference
Add check to ensure context pointer is not NULL before dereferencing

Change-Id: I737ae4d1e5aa07bcbbe612a93905a23fa857b90a
CRs-fixed: 2669214
2020-05-02 04:27:13 -07:00
nshrivas
dbb00f0073 Release 5.2.0.184
Release 5.2.0.184

Change-Id: I04b69a7c79dc2b4b3d04eab3cc22e37f74394cce
CRs-Fixed: 774533
2020-05-02 01:13:19 -07:00
Kiran Kumar Lokere
a49d6b9742 qcacld-3.0: Fix the HE 160MHz BW related capability settings
Reset the HE 160MHz bandwidth related capabilities if the
connection mode has lower bandwidth.
Set the 160MHz support in HE channel width capability if
AP is 160MHz capable and current operating mode is 80MHz.

Change-Id: Iddb678ac7543875a3a7d15bb38e13dd27086360b
CRs-Fixed: 2674741
2020-05-02 01:13:19 -07:00
Utkarsh Bhatnagar
4d187fa0f2 qcacld-3.0: Consider self capability in RSN caps
RSN caps are anded with AP RSN caps, but it should be self caps.
Due to this even when PMF required is configured in self capability
while connecting to non pmf required AP, self cap doesnt include
self capability of pmf required.

So do not and RSN's self caps with AP's caps

Change-Id: Iae84486e13859fc8deb342d7b774129dc26ae323
CRs-Fixed: 2676337
2020-05-02 01:13:15 -07:00
nshrivas
c2557606a0 Release 5.2.0.183Z
Release 5.2.0.183Z

Change-Id: Ida40be8dd5835bd71fe11b76595f65841e81f305
CRs-Fixed: 774533
2020-05-01 21:51:03 -07:00
Bapiraju Alla
954de3b680 qcacld-3.0: Check for fw down during runtime suspend
Currently there is no check for fw down during runtime suspend. This is
causing issue when host has already received fw down event due to
injected fw crash.

To avoid this, add check for fw down during runtime suspend.

Change-Id: Ic518f7fc95fa3ff9f9a3bd8973e9e37e9ebcf52f
CRs-Fixed: 2676841
2020-05-01 21:51:02 -07:00
nshrivas
b6176f2a84 Release 5.2.0.183Y
Release 5.2.0.183Y

Change-Id: Iafa36fc662d7a165df41421b6ab93d0e2d5d305a
CRs-Fixed: 774533
2020-05-01 17:52:46 -07:00
Ashish Kumar Dhanotiya
7a02ceac3b qcacld-3.0: Validate he operation info before nla put
Currenly when driver receives get station info command in
in sta mode, he operation information is also copied to the
response buffer. Host does not validate he operation info
and tries to do nla put which is leading to NULL pointer
dereference.

To address above issue, add a check to validate the he operation
info before nla put operation.

Change-Id: Iaa093e4d4e3a9cec978f16c69a66c778b2dcf79f
CRs-Fixed: 2676773
2020-05-01 17:52:46 -07:00
nshrivas
9c1fed8a16 Release 5.2.0.183X
Release 5.2.0.183X

Change-Id: I391dc85bfff68b5c0eb925eedbf257fd24347d17
CRs-Fixed: 774533
2020-05-01 12:49:13 -07:00
Jingxiang Ge
d364508056 qcacld-3.0: Check minimum value of debugfs file
Add checking minimum value to avoid reading
garbage data.

Change-Id: I30541a8b081a67b1a04774545a2879aadab5f8ac
CRs-Fixed: 2676019
2020-05-01 12:49:13 -07:00
nshrivas
b850d2570a Release 5.2.0.183W
Release 5.2.0.183W

Change-Id: If533e6c4850535d4b24af756365ac39fd404b60c
CRs-Fixed: 774533
2020-05-01 08:44:04 -07:00
Utkarsh Bhatnagar
a07afa12be qcacld-3.0: Increased logging in wlan_hdd_cfg80211_channel_switch
Added debig logs in __wlan_hdd_cfg80211_channel_switch and in
wlansap_set_channel_change_with_csa

Change-Id: Idf0f29f21d879e32a0ad8e1db25fc8360ec36800
CRs-Fixed: 2676407
2020-05-01 08:44:04 -07:00
nshrivas
fedb093e42 Release 5.2.0.183V
Release 5.2.0.183V

Change-Id: Ib79454449de1b41a7a8014f1e53846f9dff88c1a
CRs-Fixed: 774533
2020-05-01 05:14:57 -07:00
Liangwei Dong
4c11f80dcb qcacld-3.0: Refine Max chanwidth selection for SAP chanswitch
Remove the calls to wlan_reg_dmn_get_opclass_from_channel API
when SAP is changing channel by ECSA/CSA.
The API accepts channel number and will cause issue when 6GHz
band is supported in target.

Change-Id: Ib6c67417f1a0edae88b5e714e3ed23c589e7eb62
CRs-Fixed: 2676354
2020-05-01 05:14:57 -07:00
nshrivas
f79c50add5 Release 5.2.0.183U
Release 5.2.0.183U

Change-Id: Ice438805e3d17bbb83a64e82f9412accf3aacaf0
CRs-Fixed: 774533
2020-04-30 16:36:38 -07:00
Abhinav Kumar
d0a51da88b qcacld-3.0: Don't send disassoc frame to fw in case of HO failure
In the case of roaming failure, FW sends HO fail indication to host
and initiates peer deletion in fw. Host should not queue deauth
frame to fw in case of HO_FAILURE.

Due to commit id I99bf4573b59dc810e0a1529fcd48061d10acae4e, host
sends a disconnect request to fw as part of HO failure handler.
There could be a possibility that host queue disconnection frame
after the vdev down in fw. This leads to assert in fw.

Fix is to set process_ho_fail variable in disassociation request
to true in case of ROAM_FAILURE. This flag tells LIM whether to
send the disassoc req OTA or not.

Change-Id: Ia504ff3ba8b07fcf66226b588eed379a71e2b896
CRs-Fixed: 2674297
2020-04-30 16:36:38 -07:00
nshrivas
762db41930 Release 5.2.0.183T
Release 5.2.0.183T

Change-Id: I52a09ad20b1ece3ba3c338ad0bdd161de57f7cb6
CRs-Fixed: 774533
2020-04-30 07:53:33 -07:00
Utkarsh Bhatnagar
316ca349b3 qcacld-3.0: Added logs in policy_mgr_is_concurrency_allowed
Increased logging in policy_mgr_is_concurrency_allowed
by adding debug logs in policy_mgr_allow_multiple_sta_connections
and policy_mgr_is_6g_channel_allowed.

Change-Id: Ic285566209b4d63df579913e7390c48891a04855
CRs-Fixed: 2674968
2020-04-30 07:53:33 -07:00
nshrivas
97e5ad7191 Release 5.2.0.183S
Release 5.2.0.183S

Change-Id: I44d8d722ac1d59a6b721b2eb04ac462434ce809f
CRs-Fixed: 774533
2020-04-30 05:23:22 -07:00