Commit Graph

18806 Commits

Author SHA1 Message Date
Pragaspathi Thilagaraj
cb33b74888 qcacld-3.0: Disable simultaneous scan from upper layers
The default value of ini gDualMacFeatureDisable is 0 and this
enables DBS scan with simultaneous scan from upper layer to
firmware. P2P scans get priority over sta scans and when
continuoes p2p scans are issues from some userspace application,
STA doesn't get scan time and APs in the environment are not
seen the scan results on STA interface.

To avoid this, change the default value of the gDualMacFeatureDisable
to 6, which disables simultaneous scans from upper layer to the
firmware.

Change-Id: I7ea3ed521270fc50acba30f84749d35ee60fcaa0
CRs-Fixed: 2632562
2020-03-11 11:03:59 -07:00
nshrivas
b07d87e7ea Release 5.2.0.175R
Release 5.2.0.175R

Change-Id: I6e05fab71c175a08ca4e5decefac9ae3737511d2
CRs-Fixed: 774533
2020-03-11 09:36:23 -07:00
Arun Kumar Khandavalli
68c99e72e7 qcacld-3.0: Send vdev delete to firmware on notification
Presently vdev delete is sent to firmware 1st and the object manager
vdev delete is deleted after all the references are released.
With this change the vdev delete is sent to firmware when all the
references are released and the vdev delete is sent to firmware via
the object manager vdev delete notification.

Change-Id: I67bea0d2b2a0d2d9eb4602e5d0b8bbdcafdd4d26
CRs-Fixed: 2618278
2020-03-11 09:36:23 -07:00
nshrivas
1877eb82a3 Release 5.2.0.175Q
Release 5.2.0.175Q

Change-Id: Iacaf08ede13d10c754563bea6b0d912f057cfa79
CRs-Fixed: 774533
2020-03-11 05:23:14 -07:00
Jingxiang Ge
2131384024 qcacld-3.0: Fix sta_info use after free in hdd_softap_stop_bss
In hdd_softap_deregister_sta, cdp_clear_peer may return fail
as peer has been deleted in other path, but the free of sta_info
will be continue.
So in hdd_softap_stop_bss, it will still access mac address
from sta_info, which will cause use after free.

Fix:
   Even cdp_clear_peer return failure, it is expected, so only
   log but not return failure to caller function.
   In hdd_softap_stop_bss, remove mac address info log as in
   hdd_softap_deregister_sta, there has been enough log for
   each failure case.

Change-Id: Id06c78cb8d215488eb34d8412359ac2d684756d5
CRs-Fixed: 2637287
2020-03-11 05:23:14 -07:00
nshrivas
69ae181848 Release 5.2.0.175P
Release 5.2.0.175P

Change-Id: I662a98fab9e1d90f04bdacccd8f45ce856607a33
CRs-Fixed: 774533
2020-03-11 03:49:01 -07:00
Jianmin Zhu
898c426f55 qcacld-3.0: Support Go for 4th connection
When 4th port of Go started, PCL should be same as SAP.

Change-Id: I84557b90a834cc44fd56070b966e5f2bb42d4836
CRs-Fixed: 2629769
2020-03-11 03:49:01 -07:00
nshrivas
df11b0d352 Release 5.2.0.175O
Release 5.2.0.175O

Change-Id: I49d10b8eb6e2197944f07e31c01146c0ac4e70f6
CRs-Fixed: 774533
2020-03-11 01:46:34 -07:00
Alan Chen
cc46ff0ae5 qcacld-3.0: Add policy attribute to SET_TRACE_LEVEL
According to new changes in kernel 5.4 version onwards, driver has to
provide the policy for a NL command to be verified against while
registering wiphy to the kernel.

To satisfy kernel 5.4 requirement add policy to following vendor
command as part of this change:
	QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL

Change-Id: Ifbeba29b5c3c7783217ed5f2352286e5537753e6
CRs-Fixed: 2633340
2020-03-11 01:46:34 -07:00
nshrivas
11c6811a81 Release 5.2.0.175N
Release 5.2.0.175N

Change-Id: Idebf0966b87a6fce1b348b0b55932cdbcf14d2c9
CRs-Fixed: 774533
2020-03-10 18:54:49 -07:00
Pragaspathi Thilagaraj
1fd88f59f3 qcacld-3.0: Try association with the same BSS on receiving assoc reject
For SAE connection, if sta has a PMKID cached from previous
full SAE authentication and uses it for the open authentication
with the AP and if the AP rejects the association with invalid
pmkid (53), then the STA tries association with next AP. This
could result in association with a low score candidate.

Retry association with same AP, with full SAE authentication,
if AP rejects association with reason code invalid pmkid. Limit
the retry count to 1 per AP.

Change-Id: I5b26822ff9bbeea51de1b80852d5d325d28bf17f
CRs-Fixed: 2625987
2020-03-10 18:54:49 -07:00
Pragaspathi Thilagaraj
1229e319b0 qcacld-3.0: Delete pmk entry from crypto table on assoc reject
Currently when association reject with reason code 53(invalid
pmkid) is received from the AP, then we delete the pmksa entry
for that AP from csr_session, but with converged crypto component,
the entry needs to be deleted from the crypto pmk table.
Else when associating to the same AP again, driver will use the
stale pmk for the AP again.

Delete the pmk entry from crypto pmk table when association
reject is received from AP with reason code 53.

Change-Id: I54f4a7ee7e02d35e0560bfad9fe2e3466aaa361d
CRs-Fixed: 2636570
2020-03-10 18:54:34 -07:00
nshrivas
db1f08d4a2 Release 5.2.0.175M
Release 5.2.0.175M

Change-Id: I793bbe52693608580f220a89846df27793d3fcbe
CRs-Fixed: 774533
2020-03-10 14:44:37 -07:00
gaurank kathpalia
23e479b963 qcacld-3.0: Add more info in connect prints
Add more info in connect prints.

Change-Id: Id467afbf4e9920c81d8bb37f29451faa97e93546
CRs-Fixed: 2638385
2020-03-10 14:44:37 -07:00
nshrivas
6a3402d87f Release 5.2.0.175L
Release 5.2.0.175L

Change-Id: I487025674619f595e9dd9e11909239a03b03c30e
CRs-Fixed: 774533
2020-03-10 09:20:32 -07:00
Guisen Yang
a3c54de471 qcacld-3.0: Move sme_get_roam_scan_ch() out of FEATURE_WLAN_ESE
A unknown symbol sme_get_roam_scan_ch() error will happen when
probing wlan module without the enablement of FEATURE_WLAN_ESE.
Move the definition of sme_get_roam_scan_ch() out of the body
of FEATURE_WLAN_ESE.

Change-Id: Ie39133778b6e569d40ee05bffff5c27343f1507a
CRs-Fixed: 2634396
2020-03-10 09:20:32 -07:00
nshrivas
4dc74ab301 Release 5.2.0.175K
Release 5.2.0.175K

Change-Id: I151fb97999c51968b2524ca9c009760355721f6a
CRs-Fixed: 774533
2020-03-10 02:01:20 -07:00
Jeff Johnson
b74a841d1c qcacld-3.0: Conditionally enable WEXT support
Currently CONFIG_WLAN_WEXT_SUPPORT_ENABLE is unconditionally enabled
in many defconfigs, including the default defconfig, but this leads to
build failures when WEXT is not configured in the Kernel. So update
the defconfigs to enable CONFIG_WLAN_WEXT_SUPPORT_ENABLE only when
CONFIG_WIRELESS_EXT is enabled in the Kernel.

Change-Id: Iecfd4e899c2b09c489547dd1a8ff70f71983853f
CRs-Fixed: 2620792
2020-03-10 02:01:20 -07:00
nshrivas
8bba4f0a61 Release 5.2.0.175J
Release 5.2.0.175J

Change-Id: I1b8dde9699f847a038a3dd491ea8c980474252a7
CRs-Fixed: 774533
2020-03-10 00:19:23 -07:00
Jingxiang Ge
ba6213b1b6 qcacld-3.0: Add policy attribute for tdls/supported_feature
According to new changes in kernel 5.4 version onwards, driver has to
provide the policy for a NL command to ve verified against while
registering wiphy to the kernel.
To accommodate these changes, add policy for all the following
vendor commands that are being registered in the driver

    QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE
    QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE
    QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS
    QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES

Change-Id: I4ad3d952d2af8f1d7f37179f9c92b0e77fc2eb23
CRs-Fixed: 2635755
2020-03-10 00:19:23 -07:00
nshrivas
0d364672c5 Release 5.2.0.175I
Release 5.2.0.175I

Change-Id: I2aae98d4c93fe86d947078bf78c08957226762da
CRs-Fixed: 774533
2020-03-09 22:45:28 -07:00
Jianmin Zhu
db3f428eb9 qcacld-3.0: IPA uc not ready for race condition
Race condition between ifconfig and ipa uc event handler thread.
While ifconfig thread creating vdev1, the vdev is locked, ipa uc
event handler thread tries to lock psoc, becomes failed for 1
dev locked, gets error EAGAIN but doesn't try again. IPA uc
event is abandoned without handling.

Fix:
IPA uc event handling can't be abandoned but can be blocked
since it is called in separated work thread, block DSC API
should be used here.
Blocked Operation and Transition have no much difference in DSC,
and they need block each other too, should share same
completion and queue, can share same API.

With WDI 3.0 over GSI, WDI control event is not needed. Therefore
provide a wrapper API for wlan_ipa_uc_send_wdi_control_msg().

Change-Id: Idceff767d62c1e81046a696cb58f70a897cbd074
CRs-Fixed: 2618490
2020-03-09 22:45:28 -07:00
nshrivas
fbac72826d Release 5.2.0.175H
Release 5.2.0.175H

Change-Id: Ieadb2aea4beb70ddc547f037f05e24aa9d60b912
CRs-Fixed: 774533
2020-03-09 20:57:32 -07:00
Mohit Khanna
09dec2d715 qcacld-3.0: Enable FEATURE_HAL_DELAYED_REG_WRITE
Enable feature to do delayed register writes in HAL for lithium
products.

Change-Id: I5158b10b0fecc125e2ece42987965dd5684d3c34
CRs-Fixed: 2631227
2020-03-09 20:57:31 -07:00
Lincoln Tran
4cb4b007a1 qcacld-3.0: Add ini to pass xLNA bypass config to FW
Add new ini CFG_SET_SAP_XLNA_BYPASS under fw_offload to allow host
to pass config to FW. WMI_PDEV_PARAM_SET_SAP_XLNA_BYPASS makes the
SAP xLNA bypass configureable.

Change-Id: Ie501005f3035f14b3f23cdd260f401a6af81b798
CRs-fixed: 2632088
2020-03-09 20:57:16 -07:00
nshrivas
9ca81c3f90 Release 5.2.0.175G
Release 5.2.0.175G

Change-Id: Ib6caa198c84ef03e2b89500255969d23adc8cfd6
CRs-Fixed: 774533
2020-03-09 12:45:03 -07:00
Naman Padhiar
580e5e989d qcacld-3.0: Correction in SMMU mapping and interrupt registeration
Add pld wrapper for interrupt registration and SMMU map for
WCN6750.

Change-Id: Iea7130f3462b4d1fb2bf0dde147f7e5f51c491b4
2020-03-09 12:45:03 -07:00
nshrivas
3667f24544 Release 5.2.0.175F
Release 5.2.0.175F

Change-Id: I212417765db614b4110be215eb17e486ce4a22c6
CRs-Fixed: 774533
2020-03-09 09:55:16 -07:00
Tushnim Bhattacharyya
6f4fcbc18d qcacld-3.0: update ch_width in lim_tdls_update_hash_node_info
Update ch_width for tdls peer in dph hash table inside
lim_tdls_update_hash_node_info.

Change-Id: Iaa07015a01e1e6b483d8544c7f66c1e4276273ac
CRs-Fixed: 2636050
2020-03-09 09:55:16 -07:00
Jingxiang Ge
a6a955d19f qcacld-3.0: Add debugfs for unit_test_host/unit_test_target
These debugfs files are to replace wext cmd setUnitTestCmd
/unit_test/wlan_suspend/wlan_resume.

unit_test_host:
    /sys/kernel/debug/wlan_xx/unit_test_host
    wlan_xx is driver name
unit_test_target:
    /sys/kernel/debug/wlan_xx/unit_test_target
    wlan_xx is adapter name
wlan_suspend:
    /sys/kernel/debug/wlan_xx/wlan_suspend
    wlan_xx is adapter name
wlan_resume:
    /sys/kernel/debug/wlan_xx/wlan_resume
    wlan_xx is adapter name

Change-Id: I1ddf44b47a3f0d2e11ff74022dc1a26888da974c
CRs-Fixed: 2631424
2020-03-09 09:54:51 -07:00
nshrivas
b84b7473cf Release 5.2.0.175E
Release 5.2.0.175E

Change-Id: I49932687123b77550f64668e7c06a934d3df9738
CRs-Fixed: 774533
2020-03-09 05:47:00 -07:00
Bapiraju Alla
4a668d9d24 qcacld-3.0: Add policy attribute to hdd_wiphy_vendor_commands
According to new changes in kernel 5.4 version onwards, driver has to
provide the policy for a NL command to ve verified against while
registering wiphy to the kernel.

To accommodate these changes, add policy for all the following
vendor commands that are being registered in the driver

QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS
QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG
QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME
QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT
QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT
QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER
QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS
QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS
QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL
QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES

Change-Id: I1fa51d2fdf75a20098fe651769352d69d8fbd48c
CRs-Fixed: 2633726
2020-03-09 05:47:00 -07:00
Bapiraju Alla
621e688bb8 qcacld-3.0: Add policy attribute to hdd_wiphy_vendor_commands
According to new changes in kernel 5.4 version onwards, driver has to
provide the policy for a NL command to ve verified against while
registering wiphy to the kernel.

To accommodate these changes, add policy for all the following
vendor commands that are being registered in the driver

QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY
QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT

Change-Id: I33498d0980e96d7aca6c1cf3da8941654d2d6380
CRs-Fixed: 2633925
2020-03-09 05:46:44 -07:00
nshrivas
5df979042c Release 5.2.0.175D
Release 5.2.0.175D

Change-Id: Ibe7015397d50dd56963f175fb69db7c255ea11db
CRs-Fixed: 774533
2020-03-08 23:58:15 -07:00
Srinivas Dasari
ef993fd575 qcacld-3.0: Stop bus_bw timer as part of stop_adapter for NDI
bus_bw timer start happens when first NDP is connected and
stop happens when last peer is departed indication is received
from firmware. But as part of driver unload, driver issues
stop_bss and firmware doesn't send any NDP END indication after
receiving this. So the timer started as part of first NDP confirm
is not stopped.
Try to stop the timer after processing the sme_disconnect which
is issued as part of stop_adapter for NDI mode.

Also, in STA+NDI concurrency scenario, bus bandwidth timer is
stopped on STA disconnection since hdd_any_adapter_is_assoc
checks only for other active STA or SAP. Add an NDI active
check so that timer is not stopped when NDPs are present on
an NDI.

Change-Id: Ibec447846fefad153261830c34bf2fa914636c7a
CRs-Fixed: 2625586
2020-03-08 23:58:14 -07:00
nshrivas
ff3fcbfa29 Release 5.2.0.175C
Release 5.2.0.175C

Change-Id: I4f9dd0cc7dbf816deadd37289e179cecd43c2e4c
CRs-Fixed: 774533
2020-03-07 14:32:55 -08:00
Min Liu
fd0c7f1208 qcacld-3.0: Add policy attribute to hdd_wiphy_vendor_commands
According to new changes in kernel 5.4 version onwards, driver has to
provide the policy for a NL command to ve verified against while
registering wiphy to the kernel.

To accommodate these changes, add policy for all the following
vendor commands that are being registered in the driver

QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST
QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST

Change-Id: I664e59564642c25fad931aca37cbc696b0c53b49
CRs-Fixed: 2635225
2020-03-07 14:32:55 -08:00
nshrivas
e2124e159c Release 5.2.0.175B
Release 5.2.0.175B

Change-Id: I7fa9ed05c4b6f652ea19c6dafda7bdee48ec4b7d
CRs-Fixed: 774533
2020-03-07 03:19:45 -08:00
Srinivas Girigowda
802283bd11 qcacld-3.0: Add policy attribute to SUBCMD_GET_CHAIN_RSSI
According to new changes in kernel 5.2 version onwards, driver has to
provide the policy for a NL command to be verified against while
registering wiphy to the kernel.

To satisfy kernel 5.2 requirement add policy to following vendor
command as part of this change:
    QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI

Change-Id: Id1d1f1ee339bcef83b714e33cc174f886fee5ce6
CRs-Fixed: 2634263
2020-03-07 03:19:45 -08:00
nshrivas
7289d17503 Release 5.2.0.175A
Release 5.2.0.175A

Change-Id: I49374abb08a60c71844414ccdfcfb17ef0fa0c61
CRs-Fixed: 774533
2020-03-07 01:45:36 -08:00
Jianmin Zhu
3fa522c495 qcacld-3.0: Fill vdev mlme bss channel just after vdev start
Copy desire channel to vdev mlme bss channel after vdev start,
several APIs used bss channel before it is filled, issue happens
like wrong max tx power is set.

Change-Id: Ib46b5b9eebc2000d703dc542c97f85281c0f376c
CRs-Fixed: 2636775
2020-03-07 01:45:36 -08:00
Srinivas Girigowda
51b1536f7a qcacld-3.0: Add policy attribute to SUBCMD_EXTERNAL_ACS
According to new changes in kernel 5.2 version onwards, driver has to
provide the policy for a NL command to be verified against while
registering wiphy to the kernel.

To satisfy kernel 5.2 requirement add policy to following vendor
command as part of this change:
    QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS

Change-Id: If2e7aec3d6f6d98168e0ceededea8d86db7078d9
CRs-Fixed: 2634255
2020-03-07 01:45:07 -08:00
nshrivas
8dcd27c0b8 Release 5.2.0.175
Release 5.2.0.175

Change-Id: I03dfb703fa2868d510b1c81a514af9da2276e20f
CRs-Fixed: 774533
2020-03-06 23:41:20 -08:00
Liangwei Dong
93c03dad7f qcacld-3.0: Flush pmksa cache for SAP when SAP stop
In certain case, the active SAP interface will be deleted by
__wlan_hdd_del_virtual_intf by upper layer. In that case,
we need to flush pmksa in SAP PMKID cache.

Change-Id: I9a152df7a4c27aef82664f039fbca18259d6b63a
CRs-Fixed: 2635424
2020-03-06 23:41:20 -08:00
nshrivas
5d219dda31 Release 5.2.0.174Z
Release 5.2.0.174Z

Change-Id: Ie5acaeaf83779e73195e480392625c4c5d9e7819
CRs-Fixed: 774533
2020-03-06 22:06:39 -08:00
Abhinav Kumar
d47cc6f4eb qcacld-3.0: Log enhancement for PNO scan
Remove unwanted prints for PNO scan.

Change-Id: I1223086b2987e9687ee814647437dcecda351da7
CRs-Fixed: 2636639
2020-03-06 22:06:39 -08:00
Alok Kumar
5f09287be2 qcacld-3.0: Disable GRO/LRO for PM_NDI_MODE
Disable GRO/LRO when NDP session is established and
enable it back after tear down of last NDP session.
Enable back GRO/LRO only if there is no active session
or there is no concurrency with STA MODE.

Change-Id: I322888fa18e8bef19844b626c94efac201550b0c
CRs-Fixed: 2631044
2020-03-06 22:06:17 -08:00
nshrivas
dbbec865b3 Release 5.2.0.174Y
Release 5.2.0.174Y

Change-Id: I0b0ede979aaa71329591f0dbaee5274fa5eb4a00
CRs-Fixed: 774533
2020-03-06 20:33:44 -08:00
Ashish Kumar Dhanotiya
919239acdb qcacld-3.0: Check for vendor vht ie to fill assoc ind param
Currently there is no check for vendor vht ie in lim fill
assoc indication param api. If a station fills its vhtcaps
in vendor vht ie in assoc request, lim does not fill
vhtcaps information in assoc indication params from
station's assoc request and it results in invalid caps info
in assoc indication to upper layers.

To avoid this issue, add a check to look for vendor vht caps
before copy of the vht caps to assoc indication from assoc
request.

Change-Id: If80136d9a923d23b7db3ebec1d49e6e4012e6dd2
CRs-Fixed: 2633003
2020-03-06 20:33:43 -08:00
nshrivas
c9b88383e2 Release 5.2.0.174X
Release 5.2.0.174X

Change-Id: I9dc4a752ce0801436e82c8f0a287960eb85bd812
CRs-Fixed: 774533
2020-03-06 18:51:43 -08:00