Commit Graph

18901 Commits

Author SHA1 Message Date
hqu
86ee15fa07 qcacld-3.0: Use vdev_id to get vdev in sap_channel_sel
In SAP on/off stress test, when hostapd call hdd_start_adapter
to create vdev, vdev2 will be created while vdev1 doesn't be
deleted physically even if vdev1 is already destroyed logically,
then hostapd issue acs operation, currently use mac address to
get vdev in sap_channel_sel, because vdev2 is using the same mac
address as vdev1 and vdev1 is still in vdev_list at this point,
so will find vdev1 firstly but will return failure due to vdev1 is
WLAN_OBJ_STATE_LOGICALLY_DELETED status, then will cause acs fail.

Fix is to use vdev_id to get vdev in sap_channel_sel.

Change-Id: I89ae3e847b725c2b64331536bc7c1de3fffce0bd
CRs-Fixed: 2640850
2020-03-20 04:19:30 -07:00
nshrivas
cbe685b29e Release 5.2.0.177D
Release 5.2.0.177D

Change-Id: I6c0dfc6a0804b37b74e467bac93f01dad13a69f3
CRs-Fixed: 774533
2020-03-20 02:31:53 -07:00
gaurank kathpalia
62d52296d5 qcacld-3.0: Handle vdev stop req failure and delete BSS peer
Handle vdev stop req failure and delete BSS peer and move the
VDEV SM to init state.

Change-Id: I48044d153a281aedfeeb90bc97c9772dea0ca284
CRs-Fixed: 2644218
2020-03-20 02:31:53 -07:00
nshrivas
b90e1cf831 Release 5.2.0.177C
Release 5.2.0.177C

Change-Id: I172431391d2d58d04265b7b6e714718a48fe947a
CRs-Fixed: 774533
2020-03-20 00:15:11 -07:00
bings
6d1783211f qcacld-3.0: Do not set hw mode if it is not needed for DBS1 and DBS2
policy_mgr_pdev_set_hw_mode returns failure if there is interface doing
CAC, which causes other interfaces start failure.
Check mode action are needed or not can help reduce interface starting
failure.

Change-Id: I165f9287d0a674d907712817a7363a77504c245f
CRs-Fixed: 2625868
2020-03-20 00:15:11 -07:00
nshrivas
aea89ba371 Release 5.2.0.177B
Release 5.2.0.177B

Change-Id: Ic773680c7c76e3af6302882844b53f437229676f
CRs-Fixed: 774533
2020-03-19 22:24:40 -07:00
Abhishek Ambure
6236deab41 qcacld-3.0: Optimize LFR logs
Optimize LFR3 logs.

Change-Id: I13067dfa504dd9310eff48b138916da2791cb270
CRs-Fixed: 2643684
2020-03-19 22:24:40 -07:00
nshrivas
de142f1e10 Release 5.2.0.177A
Release 5.2.0.177A

Change-Id: I52dcfb566a721f7da7193247de4333c7057c9b85
CRs-Fixed: 774533
2020-03-19 20:41:40 -07:00
Srinivas Dasari
5ab63299b9 qcacld-3.0: cleanup NAN/NDP logging
Few NAN/NDP logs are redundant in the current logging infra.
Optimize the same and add few necessary logs.

Change-Id: Ie261db317af48955a16269539948ff1596c4bbcb
CRs-Fixed: 2644418
2020-03-19 20:41:40 -07:00
Kiran Kumar Lokere
ad569a7582 qcacld-3.0: Disable broadcast probe response for HE testbed device
Disable broadcast probe response in HE testbed device defaults.

Change-Id: I8302ac8d59fa1ecc294305e5b1225b3dc2201282
CRs-Fixed: 2632322
2020-03-19 20:41:25 -07:00
nshrivas
6d4d11ac64 Release 5.2.0.177
Release 5.2.0.177

Change-Id: I3dd7434ac111f054f96e24bede454f6ddc9d4f9c
CRs-Fixed: 774533
2020-03-19 17:39:24 -07:00
Sourav Mohapatra
e3dcef31ef qcacld-3.0: Modify the max value of MWS coex ini params
The max ini params for mws_coex_pcc_channel_avoid_delay and
mws_coex_scc_channel_avoid_delay are set to be at 0xFF. This max value
doesnot correspond with the actual max value needed by the firmware.

Change the max value to include upto 0xFFFFFFFF

Change-Id: If88d7866c584abf43a41b0c6b9f63b21a0a4a2f2
CRs-Fixed: 2632517
2020-03-19 17:39:24 -07:00
nshrivas
ae1b4d6765 Release 5.2.0.176Z
Release 5.2.0.176Z

Change-Id: I3affbfce9a7990448d2972f3d55191a1631aefb5
CRs-Fixed: 774533
2020-03-19 16:01:11 -07:00
Kiran Kumar Lokere
294723f410 qcacld-3.0: Correct 160/80p80MHz mcs map in HE Cap IE
Check the supported bandwidth capability bits to set the
160MHz and 80p80MHz mcs map in HE capabilities that are
configured to FW.

Change-Id: If7ff882a99650f9771b77dc28adf9ebcbf64a00c
CRs-Fixed: 2625166
2020-03-19 16:01:11 -07:00
Rachit Kankane
66b4b30bcf qcacld-3.0: Return LL stats resp in caller context
Return response for Link Layer stats command in caller
thread's context.

Change-Id: I8a6a0b21d7915cd21422dbef9b87fa17d99fb244
CRs-Fixed: 2619295
2020-03-19 16:00:55 -07:00
gaurank kathpalia
95068d734f qcacld-3.0: Ignore roaming in progress in start bss
Currently the hotspot fail happens if the roaming is in
progress because of the check in start bss.
Ignore it and just do disable roaming to the FW.
If the roaming was in progress, it would disable it,
or it would do a disconnect if the EAPOL was in progress.
This is done to enable the hotspot as connect would be
taken care by the supplicant automatically, but the hotspot
needs user intervention.

Change-Id: I0030f9affe60c064d490795be92ae035923738aa
CRs-Fixed: 2640136
2020-03-19 16:00:42 -07:00
nshrivas
2ce1af98e3 Release 5.2.0.176Y
Release 5.2.0.176Y

Change-Id: I3bf93151fd73fe8c57fcd356bd552edd4e0d97ee
CRs-Fixed: 774533
2020-03-19 14:19:56 -07:00
Amar Singhal
84a912a96c qcacld-3.0: Fix memory leak for beacon
While processing beacon, fix memory leak.

Change-Id: I9245632f95d60c99b320ae8582e29e84c70a6e8e
CRs-Fixed: 2638014
2020-03-19 14:19:56 -07:00
Sourav Mohapatra
ba099643cb qcacld-3.0: Return success for sched_scan_stop
Presently in the driver, the function __cfg80211_stop_sched_scan
clears rdev->sched_scan_req only when the sched_scan_stop returns
success. If it returns a failure, then its next invocation due to the
clean up of the second interface will have the dev pointer corresponding
to the first one leading to incorrect memory access.

To resolve this issue, return 0 for stop_sched_scan irrespective of the
return status.

Change-Id: I129e3e9c6d9f6a688d0aa97be120ba9731e8df37
CRs-Fixed: 2623160
2020-03-19 14:19:41 -07:00
nshrivas
b23dcc75d3 Release 5.2.0.176X
Release 5.2.0.176X

Change-Id: I823db089f971ecebb4765d3602145e0bcc23473c
CRs-Fixed: 774533
2020-03-19 12:41:56 -07:00
Amruta Kulkarni
d7c24f8a19 qcacld-3.0: Add support to handle assoc reject based on rssi
When AP rejects assoc request based on poor rssi
host will put the AP in blacklist mgr list, only when
rssi value improves by threshold value,should the
STA try to connect to AP.

Change-Id: I78009b89ea07afdd5f3381973a9eb7ec1f73d1b5
CRs-Fixed: 2632015
2020-03-19 12:41:56 -07:00
nshrivas
dff30b1fbc Release 5.2.0.176W
Release 5.2.0.176W

Change-Id: I7129fc0b502c583e9da32b49a8c4d59b063925b6
CRs-Fixed: 774533
2020-03-19 10:45:05 -07:00
Jianmin Zhu
159c7d8bad qcacld-3.0: Check whether SAP need restart
If there is no STA/P2P CLI on same MAC of SAP/P2P GO,
SAP/P2P Go needn't switch channel to force scc.

Change-Id: I529a57f73f529e41b8c0097fccabbe3e0e516993
CRs-Fixed: 2643106
2020-03-19 10:45:05 -07:00
Vulupala Shashank Reddy
53fff0890d qcacld-3.0: Don't add monitor mode if no interface is up
Check if any interface is up and if no interface is up
do not add monitor mode.

Change-Id: I2e1218a14881f597885334c0a195758ed35c5e5b
CRs-Fixed: 2644285
2020-03-19 10:44:45 -07:00
nshrivas
5dedd644e6 Release 5.2.0.176V
Release 5.2.0.176V

Change-Id: I1e40802ffc69d11dd65381f58a6ab0755be16d03
CRs-Fixed: 774533
2020-03-19 07:47:33 -07:00
Jingxiang Ge
e4f1f2a0e5 qcacld-3.0: Fix double create mibstats_lock issue
mibstats_lock is a global variable, current it init
per adapter, so it will fail when init at 2nd time.

Make sure it only create once.

Change-Id: Ia8a57d049fabe311d5b353b5aa612ffa225cbc61
CRs-Fixed: 2643396
2020-03-19 07:47:32 -07:00
nshrivas
e92d543e2e Release 5.2.0.176U
Release 5.2.0.176U

Change-Id: Ib0228027354f053267982628fa0f6578963b39e4
CRs-Fixed: 774533
2020-03-19 05:47:11 -07:00
Pragaspathi Thilagaraj
fd8e907571 qcacld-3.0: Strip the privacy headers of protected deauth/disassoc frames
In pe_disconnect_callback(), while processing deauth/disassoc
frame received after emergency deauth roaming failure, the
reason code is extracted before stripping the ccmp iv, mic trailer
from the unicast frame and mmie is not stripped in case of broadcast
deauth frame. This results in incorrect reason code passed to
userspace.

Strip the ccmp iv, mic trailer from unicast deauthentication/
disassociation frame and strip the mmie from the broadcast
deauthentication/disassociation frame.

Change-Id: I07d7b4515471150d74d796ed6da2f87a928e6e35
CRs-Fixed: 2634822
2020-03-19 05:47:11 -07:00
nshrivas
96824c337f Release 5.2.0.176T
Release 5.2.0.176T

Change-Id: I86d9a45d466e23a48f759423e51fb4c6670bdf09
CRs-Fixed: 774533
2020-03-19 01:36:09 -07:00
bings
23c2312e08 qcacld-3.0: Do not call wlan_reg_legacy_chan_to_freq for freq
sap_ctx->csr_roamProfile.op_freq is already channel frequency.
Do not call wlan_reg_legacy_chan_to_freq for it.

Change-Id: I20ce4eb8852087175c0fae4a7a9dd5e3168e1f24
CRs-Fixed: 2643218
2020-03-19 01:36:09 -07:00
Manjunathappa Prakash
9d37c64121 qcacld-3.0: Enable SMMU S1 for Lahaina platform
Enable IPA SMMU S1 translation feature flag for
Lahaina target.
asm/dma-iommu.h file is removed in latest 5.4 kernel,
resulting in include failure. Remove as it is unused
for version 5.4 and above.

Change-Id: Ie2147f2fc2debad4d700fae5414d1d3becb28f13
CRs-Fixed: 2638580
2020-03-19 01:35:53 -07:00
nshrivas
b4a87f73a9 Release 5.2.0.176S
Release 5.2.0.176S

Change-Id: I26e7efba8044fb24a8340e7b3a6b573693fc6d73
CRs-Fixed: 774533
2020-03-18 15:37:45 -07:00
Abhishek Ambure
09fbde6405 qcacld-3.0: Add interface index for roam scan ch list event
To specify interface index in vendor event for sub command
QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO_INDEX, pass wdev pointer
to cfg80211_vendor_event_alloc().

Change-id: Ied973df111359bbab44e2c1de0888a67e1497034
CRs-Fixed: 2644349
2020-03-18 15:37:45 -07:00
Vevek Venkatesan
02f5dfc5d7 qcacld-3.0: add pld_smmu_unmap support for BENGAL
Add support for pld_smmu_unmap and enable it for
BENGAL target.

Change-Id: I7f6d6f965b7664342bca29b49f05f8eb62737a0c
CRs-Fixed: 2642663
2020-03-18 15:37:21 -07:00
Dundi Raviteja
25a77e7f71 qcacld-3.0: Process pkt_capture APIs based on packet capture mode
Process pkt_capture APIs only if packet capture mode is present.

Change-Id: Ibf08e550a829c266fd108c0023c016ab36728589
CRs-Fixed: 2640309
2020-03-17 23:27:58 -07:00
nshrivas
a14d64d378 Release 5.2.0.176R
Release 5.2.0.176R

Change-Id: Idf97394e3eee470baa6ddd343d19dba2a4ca7bff
CRs-Fixed: 774533
2020-03-17 14:46:02 -07:00
Abhishek Ambure
d365b8c8ef qcacld-3.0: Fix function type for stop_roaming_callback
This fixes a CFI failure in lim_handle_csa_offload_msg.

Change-Id: Ia4f20b7674902f47c6682ae56be8ba872c8176c5
CRs-Fixed: 2643343
2020-03-17 14:46:01 -07:00
nshrivas
b6f98d7551 Release 5.2.0.176Q
Release 5.2.0.176Q

Change-Id: Iade4682ef4a18246ec04ff8ef1ceadaaa908f7f6
CRs-Fixed: 774533
2020-03-17 11:46:55 -07:00
Ashish Kumar Dhanotiya
79d116ce7e qcacld-3.0: Do not start unsolicited timer back to back
Currently there is no check to not start unsolicited timer
if its callback is already in process. If once this timer
expires and callback is invoked, and if this timer again
tries to start before the callback completes there is no
check to prevent this timer from starting.

As the callback of the previous timer expiry is already in
progress, there is no need to start the unsolicited timer
again. To address this issue a check is added before starting
the unsolicited timer to validate if the callback is still
in progress.

CRs-Fixed: 2635740
Change-Id: Ib008562be22356c3a286fab49a61f99d6867c54e
2020-03-17 11:46:54 -07:00
nshrivas
aa8827cfc4 Release 5.2.0.176P
Release 5.2.0.176P

Change-Id: Ia9bcad30f61c164931155295fe8f55ed40374d24
CRs-Fixed: 774533
2020-03-17 09:15:28 -07:00
Naman Padhiar
ba8266612e qcacld-3.0: Add PLD wrapper for idle restart/shutdown
Add PLD wrapper for idle restart/shutdown callbacks for WCN6750.

Change-Id: I068c4bcfc06f68db43bfbe8c788dccfb2cf5489c
CRs-Fixed: 2642710
2020-03-17 09:15:28 -07:00
sheenam monga
a89f7ed3a3 qcacld-3.0: Validate number of bytes before memory allocation
Currently, In function hdd_get_roam_scan_ch_cb memory
is allocated for event response buffer for invalid len.

Fix is to add a validation check for len before alloction
of memory to avoid memory allocation for invalid len.

Change-Id: I14cffdace868fc19358322c36dd2589d7845b8fa
CRs-Fixed: 2640114
2020-03-17 09:15:22 -07:00
nshrivas
b90da07418 Release 5.2.0.176O
Release 5.2.0.176O

Change-Id: I28bef95b52f2a78ca3258b4a8d259d7bc5bdc370
CRs-Fixed: 774533
2020-03-17 05:14:05 -07:00
Liangwei Dong
ead166aef9 qcacld-3.0: Log optimization of hdd_validate_context
Limit logs in hdd context validation during SSR
and Load/unload.

Change-Id: I89cd609309b40dcb57a05cf72fae8690ab00db58
CRs-Fixed: 2640760
2020-03-17 05:14:05 -07:00
nshrivas
30f2b7e243 Release 5.2.0.176N
Release 5.2.0.176N

Change-Id: I240dee34706a667c3e0c2f68332556e988e9bf80
CRs-Fixed: 774533
2020-03-17 01:05:30 -07:00
Kiran Kumar Lokere
b1a2e9a659 qcacld-3.0: Set WEP in addba resp from addba req for NAN
PMF capability information is not available in NAN peer station
data structure as host does not get full capability information
of NAN peer hence WEP bit is not set in addba response frame for
received addba request frames with WEP set.

Set the WEP bit in addba response frame if the received addba request
frame has WEP bit and it is from NAN peer station.

Change-Id: I9f0a02492b3087d0fd53a7bdde273601913ee2ca
CRs-Fixed: 2638789
2020-03-17 01:05:30 -07:00
nshrivas
90914c55b7 Release 5.2.0.176M
Release 5.2.0.176M

Change-Id: I3600d761690c22ee3bc4a02c3052a164295931e5
CRs-Fixed: 774533
2020-03-16 17:23:17 -07:00
Lincoln Tran
f55bc71172 qcacld-3.0: Remove usage of OS specific API in UMAC code
Replace skip_spaces usage with appropriate QDF replacement

Change-Id: I474470d9cfc86fe8df7b6bfc9f1223342255842d
CRs-fixed: 2631974
2020-03-16 17:23:17 -07:00
Alan Chen
3c7aab4c49 qcacld-3.0: Add dummy vendor command policy attribute
Kernel 5.2+ is checking vendor policy attribute even for GET commands.
Add dummy policy attribute to following GET vendor commands:
	QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES
	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS
	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO
	QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS
	QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET
	QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI
	QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS
	QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE

Change-Id: I354b2de86909142ed3db0fb4a4d1545ac2b37d55
CRs-Fixed: 2639687
2020-03-16 17:23:03 -07:00
nshrivas
c2003a4640 Release 5.2.0.176L
Release 5.2.0.176L

Change-Id: I678042156bbd920e4c0e6bfb929fa76e717f609f
CRs-Fixed: 774533
2020-03-16 13:51:42 -07:00