Commit Graph

19111 Commits

Author SHA1 Message Date
nshrivas
2f607373ab Release 5.2.0.177I
Release 5.2.0.177I

Change-Id: I0344ac14f48292fc94c4f6734edc9a4f4dab7158
CRs-Fixed: 774533
2020-03-21 05:31:25 -07:00
Pragaspathi Thilagaraj
6bfeae6ae4 qcacld-3.0: Set unicast key followed by broadcast key in FILS case
Host driver sets broadcast keys followed by unicast keys for
FILS connection. This results in the data packet sent before
unicast set key and peer pn was reset. Sending broadcast keys
first will allow firmware to enable WAL_PEER_ALLOW_DATA and
data tx could start without unicast keys being set. Due
to this TX packet will go unencrypted and TX will fail without
ACK from peer AP, peer pn will be set to 2, after this unicast
key got set and this resets the peer pn to 1. And when next
frame TX was done, pn check failed and firmware assert occured.

Set the unicast keys to firmware first followed by the broadcast
keys for FILS case.

Change-Id: Ia498709ac524e95b831cc7ccdd17e6fc7ae0b130
CRs-Fixed: 2633632
2020-03-21 05:31:25 -07:00
nshrivas
34040b2668 Release 5.2.0.177H
Release 5.2.0.177H

Change-Id: I6e048e7d6ef15cc032f23b8f915957942b631c59
CRs-Fixed: 774533
2020-03-21 02:03:03 -07:00
Chaoli Zhou
af5cedc79e qcacld-3.0: Add CONFIG_MOBILE_ROUTER for Genoa
Disable/enable some feature based on CONFIG_MOBILE_ROUTER,
which should be as same as hasting & rome

Change-Id: Ib0ba2d51e6dc869477226ae452e4439c255d1ee5
CRs-Fixed: 2646429
2020-03-21 02:03:03 -07:00
nshrivas
a33f3be692 Release 5.2.0.177G
Release 5.2.0.177G

Change-Id: I9423e6213a9a0d06b150194158b018505a6a2449
CRs-Fixed: 774533
2020-03-20 17:05:48 -07:00
Alok Kumar
c99a7e3cb0 qcacld-3.0: Add API to get adapter based netif queue history
Currently, netif queue history is displayed for each adapter
by iterating over adapter list in the HDD context. But, this
iteration is not safe when unregistration of netdev going in
parallel in other thread. In case the adapter is removed, the
iteration will result in NULL pointer dereference.

Avoid iterating over adapter list, add call newly added API, which
is adapter based, to get netif queue history. When iteration over
adapter list is needed, call hdd_for_each_adapter_dev_held API.

Change-Id: I45fd8cd80cf21931ee352d612b10752ef0837c06
CRs-Fixed: 2639882
2020-03-20 17:05:47 -07:00
bings
83c7c370d1 qcacld-3.0: Fix build error when WLAN_SUPPORT_RX_FISA defined
Fix print format in core/dp/txrx3.0/dp_fisa_rx.c
Both cds_ieee80211_common_i.h and net/ieee80211_radiotap.h define
IEEE80211_CHAN_*, so only one header is needed in wlan_hdd_tx_rx.c

Change-Id: Ie9c3a7ea04e9b71acf96f007515a7ae6c0def938
CRs-Fixed: 2644359
2020-03-20 17:05:31 -07:00
nshrivas
11ec38deb4 Release 5.2.0.177F
Release 5.2.0.177F

Change-Id: Ie7ebebe1578759f5863333d040f94501f90fc23b
CRs-Fixed: 774533
2020-03-20 06:02:13 -07:00
Bapiraju Alla
51ab1164a1 qcacld-3.0: Synchronize sta_info access in host driver
Currently there is no synchronized access for sta_info. Because of this
memory use after free is getting triggered.

To resolve this, use a reference count for sta_info to check whether it
is in use or not before freeing.

Change-Id: I696461a1f53f4cc4739963f3f97ada31d3fa15f3
CRs-Fixed: 2637074
2020-03-20 06:02:13 -07:00
nshrivas
bcadcc00c3 Release 5.2.0.177E
Release 5.2.0.177E

Change-Id: I1a9e8130936fe10805df72444879786283b7a05a
CRs-Fixed: 774533
2020-03-20 04:19:30 -07:00
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