Commit Graph

21350 Commitit

Tekijä SHA1 Viesti Päivämäärä
Liangwei Dong
f371b49a46 qcacld-3.0: Use powersave osif debug id for vdev get/put
For all Power/WOW operations in HDD layer, use WLAN_OSIF_POWER_ID
reference count dbg id for vdev reference count acquire/release.

Change-Id: Iec49ba5f2dfc1d809f64767d17eb00e4ba25739a
CRs-Fixed: 2819394
2020-11-19 22:45:47 -08:00
snandini
51f38950d8 Release 5.2.0.210W
Release 5.2.0.210W

Change-Id: Iee4cdda0c71a0678ee493b86a2991989de6f86da
CRs-Fixed: 774533
2020-11-19 20:39:03 -08:00
sandhu
a31cfcd002 qcacld-3.0: Add function to convert HW to qdf status
Enhance qdf tx rx to hw tx completion status mapping.
Add inline function to convert hw status to qdf
status. Add dummy argument to qdf_dp_trace_ptr function.

Change-Id: If225bf385a3ce12f354f761594bf3d51ff710a13
CRs-Fixed: 2810592
2020-11-19 20:39:02 -08:00
Bapiraju Alla
82458cee70 qcacld-3.0: Process FW diag events in a separate worker thread
Currently, FW diag logs, management frames and stats responses are
processed in worker context. Because of this, there is a possible
out of memory scenario when there are huge number of diag events
waiting in work queue.

To address this, process diag events in a separate worker thread and
set the limit for the number of diag events that can be queued in
work queue.

Change-Id: Ib9f7b8042479e8b2f4d67c9a4250932b018f29a4
CRs-Fixed: 2821534
2020-11-19 20:38:57 -08:00
snandini
7f3cb5c26c Release 5.2.0.210V
Release 5.2.0.210V

Change-Id: I85136edeeed4e5f8482b80a992918376532330c5
CRs-Fixed: 774533
2020-11-19 14:03:22 -08:00
hqu
592423cb90 qcacld-3.0: Check for max allowed STA vdevs in hdd_start_adapter()
When set ini gEnableConcurrentSTA to wlan1, two adapters with STA
type will be opened in initialization, in STA+P2P_CLI test case,
it will be failed for checking maximum allowed STA vdevs in change
interface APIs from QDF_P2P_DEVICE_MODE to QDF_P2P_CLIENT_MODE. If
just open adapter with STA type and don't start adapter, it won't
create vdev in firmware.

When do interface up action, hdd_start_adapter() will create vdev in
firmware really, so add interface up status check when checking for
max allowed STA vdevs and check max allowed STA vdevs in
hdd_start_adapter().

Change-Id: I5b2dd09fb58aa3135743a029889e689729bd05a7
CRs-Fixed: 2815174
2020-11-19 14:03:21 -08:00
snandini
d1af4a2242 Release 5.2.0.210U
Release 5.2.0.210U

Change-Id: Ia5d79f3329431eff1e563273be5f5e599cd7355c
CRs-Fixed: 774533
2020-11-19 00:51:02 -08:00
Srinivas Girigowda
04ec73013d qcacld-3.0: wma: Remove logs for cds_get_context() checks
cds_get_context() function already takes care of logging the
caller function name in case of any error.
Hence there is no need to add the error log again.
Getting rid of these unnecessary logs reduces driver memory footprint.

Change-Id: I44e2998effe642932d83376bf92083be8d52073d
CRs-Fixed: 2822110
2020-11-19 00:51:01 -08:00
snandini
9c98aa45b0 Release 5.2.0.210T
Release 5.2.0.210T

Change-Id: I60f9e342f131fc213e6560de1ad497700fe15fe6
CRs-Fixed: 774533
2020-11-18 16:23:36 -08:00
sandhu
d4c2f2c440 qcacld-3.0: Add inline function to check RX thread flush condition
Add a wrapper for the RX thread flush condition.

Change-Id: I0358c6cafaa6bc55f443e07afce0d0bb58d301c7
CRs-Fixed: 2783960
2020-11-18 16:23:36 -08:00
snandini
7213cc5db4 Release 5.2.0.210S
Release 5.2.0.210S

Change-Id: I28cc3d12ddc444d376844e3c1daf4acf8634d476
CRs-Fixed: 774533
2020-11-18 14:19:13 -08:00
Yu Wang
6088e94490 qcacld-3.0: move component 'coex' to qcacld project
'coex' component is MCC specific, move to qcacld project.

CRs-Fixed: 2721758
Change-Id: Ic1769ddf7eab6a6acc96349c020a6f311cda6bff
2020-11-18 14:19:13 -08:00
snandini
8fbb8508ad Release 5.2.0.210R
Release 5.2.0.210R

Change-Id: Id1a5e13003aa811fb908f4e73ec20661eac65cb0
CRs-Fixed: 774533
2020-11-18 12:03:52 -08:00
Yu Wang
c37adc1bf1 qcacld-3.0: add api to check if the channel is allowed for sap
Check the factors as below to decide whether the channel is
allowed or not:
 * If the channel is in LTE coex channel avoidance list;
 * If it's STA+SAP SCC;
 * If STA+SAP SCC on LTE coex channel is allowed.

Replace policy_mgr_is_safe_channel() with this new function
for sap channel selection and acs channel filtering, to allow
unsafe channels when it's STA+SAP SCC and STA+SAP SCC on LTE
coex channel is allowed.

CRs-Fixed: 2743042
Change-Id: Ic5a84b2628200fe9decf6972f00706f190f04722
2020-11-18 12:03:52 -08:00
snandini
db21759630 Release 5.2.0.210Q
Release 5.2.0.210Q

Change-Id: I83039a11dd26ea63b7155e3a87ce9786eda9d9ca
CRs-Fixed: 774533
2020-11-18 09:54:44 -08:00
gaurank kathpalia
6ef65a43ed qcacld-3.0: Move ini cfg to LIM
Move ini configuration params to LIM
as per of connection manager.

Change-Id: I85f7dc87fb483d49ed021349f81a1072b4aa114a
CRs-Fixed: 2820684
2020-11-18 09:54:44 -08:00
snandini
4c3e9cf813 Release 5.2.0.210P
Release 5.2.0.210P

Change-Id: I3e8b3c51ffd386466c7b2ff29d18ba273e2b1236
CRs-Fixed: 774533
2020-11-18 07:46:14 -08:00
gaurank kathpalia
2afb8a6688 qcacld-3.0: Add logic to ignore 6Ghz AP if security is not valid
Add logic to
- Check if connect req freq is 6Ghz and security
  is not allowed for 6Ghz, reject connect.
- Ignore 6Ghz APs if connect req security is invalid
  for 6Ghz

Also added user config key_mgmt_mask_6ghz mask
to allow specific AKMs, by default all are allowed.

Add added user config check_6Ghz_security to enable
security checks as per spec.

Change-Id: Iada7bb685b272e26cff7e89cf64d181ed6eb48a4
CRs-Fixed: 2820358
2020-11-18 07:46:14 -08:00
Jyoti Kumari
288dc65b65 qcacld-3.0: Update nw type for tdls peer after channel switch rsp
When firmware sends wma_csa_offload_handler() event, peer should
switch to new channel and update network type. But only frequency
is getting updated, network type is old.

Add check to update network type based on channel frequency

Change-Id: Icd70823f98cfd528863cfb9ec1c2bf5e78e9912b
CRs-Fixed: 2813847
2020-11-18 07:46:10 -08:00
Min Liu
1498fd2554 qcacld-3.0: Channel switch on 2G when CC is updated
Current logic in wlansap_get_chan_band_restrict will skip channel
switch for 2G channel which is disabled due to CC update by mistake.
Update the condiction logic to make it work properly.

Change-Id: Ib4c07447f14a47c2934c63ebdc09821eb8e5a3d1
CRs-Fixed: 2818651
2020-11-18 07:46:06 -08:00
Liangwei Dong
6018e409cf qcacld-3.0: Use nan osif debug id for NAN operation
Change HDD layer to use WLAN_OSIF_NAN_ID reference count
dbg id for vdev reference count acquire/release when process
NAN request.

Change-Id: I5630bedb742a9a31199b3c4f4b1853bf60b029ed
CRs-Fixed: 2819557
2020-11-18 07:46:02 -08:00
snandini
d9d50871a4 Release 5.2.0.210O
Release 5.2.0.210O

Change-Id: Ibbe25afe994298127e91755a7765e8a16a1bbf7e
CRs-Fixed: 774533
2020-11-18 01:25:09 -08:00
Srinivas Girigowda
8b59c029c5 qcacld-3.0: components: Remove logs for cds_get_context() checks
cds_get_context() function already takes care of logging the
caller function name in case of any error.
Hence there is no need to add the error log again.
Getting rid of these unnecessary logs reduces driver memory footprint.

Change-Id: I5bf676c79e9e12a797dc6792ee8014fb30b0dff3
CRs-Fixed: 2821005
2020-11-18 01:25:09 -08:00
Kiran Kumar Lokere
7d4df545b3 qcacld-3.0: Fix LDPC setting for HE connection
Fix the issue with LDPC setting in HE caps sent to FW.

Change-Id: Idc7965d81f32cac5f848b9ade8fc367d27a70e83
CRs-Fixed: 2818299
2020-11-18 01:25:05 -08:00
Abdul Muqtadeer Ahmed
72415a3322 qcacld-3.0: Add a check to set band as auto
Currently in driver when value is set as QCA_SETBAND_AUTO for
QCA_WLAN_VENDOR_ATTR_SETBAND_MASK attr in QCA_NL80211_VENDOR_SUBCMD_SETBAND
command, it return invalid argument error instead of enabling all supported
bands.

To resolve the above issue add a check for the value QCA_SETBAND_AUTO and
if it is true enable all the supported bands.

Change-Id: I0f4f03b8e2e049cc253822582436fd1fabf65133
CRs-Fixed: 2819677
2020-11-18 01:25:01 -08:00
Abdul Muqtadeer Ahmed
70ea08a0fe qcacld-3.0: Add new INI param for SAP SHO configuration
The SHO feature is used to offload beacon/probe response to HW.
So a new  vdev param is required to enable/disable this feature.

Change-Id: I83d71d63485dee8d3433bf967a7feb56c1039f93
CRs-Fixed: 2815270
2020-11-18 01:24:57 -08:00
snandini
6c963360cc Release 5.2.0.210N
Release 5.2.0.210N

Change-Id: I936fb09f1cee76ef9d48926a707f1fa3a0341230
CRs-Fixed: 774533
2020-11-17 23:18:41 -08:00
Abhishek Ambure
92e5224ded qcacld-3.0: Send disassoc cnf if host failed to send disassoc to FW
Problem scenario:
1) Host gets Firmware down indication and stops all timers.
2) While processing association completion, host sends disassoc if
   user changed reg domain during association and new channel falls
   out of current reg domain.
3) Host fails to send disassoc to fw as WMI is in stop state due to SSR
4) Host doesn't check wmi status for disassoc tx and on failure depends
   on disassoc ack timer to complete disassoc cnf.
5) As host stops timers on firmware down indication, disassoc ack timer
   doesn't trigger and host fails to complete disassoc cnf action. Which
   lead to stuck the vdev state machine at suspend down and peer refs
   remains undeleted.

To fix this issue check the status of sending the disassoc, and if the
disassoc failed to send then perform the follow-up actions that are
normally performed upon receipt of the disassoc confirmation.

Change-Id: Ic2b88cfcbcb755a869ee281be4e1e8a9cec8299b
CRs-Fixed: 2816503
2020-11-17 23:18:40 -08:00
Liangwei Dong
9f360f6c08 qcacld-3.0: Use scan dbg id for ref count operations
Change HDD layer to use WLAN_OSIF_SCAN_ID reference count
dbg id for vdev reference count acquire/release when process
scan request.

Change-Id: I4c181cd8213c5f03ca6416306f9468f9643eac99
CRs-Fixed: 2813929
2020-11-17 23:18:35 -08:00
snandini
b087ba16ae Release 5.2.0.210M
Release 5.2.0.210M

Change-Id: I49b46c6dc1944066d10ca750a6c809721c58cc2a
CRs-Fixed: 774533
2020-11-17 19:04:43 -08:00
Jinwei Chen
180ade979c qcacld-3.0: Bypass FISA if IPA RX packet rerouted to host
If IPA RX hit back pressure, FW will reroute RX frames to host
by REO2SW1 ring(reo_destination_indication 2), this might introduce
FISA RX ring mismatch issue.

Bypass FISA if IPA RX packet rerouted to host by
reo_destination_indication 2.

CRs-Fixed: 2820235
Change-Id: Ife8f2168e1942204cfc66a2a135cb93c9a1e9910
2020-11-17 19:04:43 -08:00
Liangwei Dong
baa0bbbae0 qcacld-3.0: Use statistics user id for ref count operations
Change HDD layer to use WLAN_OSIF_STATS_ID reference count
dbg id for vdev reference count acquire/release when process
statistics request.

Change-Id: I9ede0575d0f83c69ab08e05fae12f4c4b9862807
CRs-Fixed: 2805047
2020-11-17 19:04:38 -08:00
Ashish Kumar Dhanotiya
e048ff1d56 qcacld-3.0: Use frequency based api to set channel params
Currently when driver receives CSA, it uses channel number based
api to fill the channel params which does not work for the 6GHz
channels and may give incorrect results, which may result in
unexpected behavior.

To address above issue use frequency based api to set channel
params which gives correct results for all the bands.

Change-Id: I1e94a9fdac8dfae471ec83e9304d33cf154e49e1
CRs-Fixed: 2812548
2020-11-17 19:04:34 -08:00
snandini
74296b9f45 Release 5.2.0.210L
Release 5.2.0.210L

Change-Id: I948ed77ee2d7512fb5be79fbe7b34e2b924fbef6
CRs-Fixed: 774533
2020-11-16 03:34:11 -08:00
Bapiraju Alla
9263a5f2ee qcacld-3.0: Rate limit the logs in SAP data Tx path
Currently, the logs in SAP data Tx path are not rate limited.
If there are any error scenarios in throughput tests, this may endup in
continuous logging of the error messages.

To avoid this rate limit the error logs in SAP data Tx path.

Change-Id: I062b52c90e1e7ed85e74cc774f7817159f98eee6
CRs-Fixed: 2811093
2020-11-16 03:34:10 -08:00
snandini
37e52dbe27 Release 5.2.0.210K
Release 5.2.0.210K

Change-Id: Id8a731c30e5ca0f1e7ecf3b568ce76f71f8efa85
CRs-Fixed: 774533
2020-11-16 01:24:35 -08:00
Surabhi Vishnoi
d8ef47432e qcacld-3.0: Override WLAN_PROFILE to default only if it is unset
Currently WLAN_PROFILE is overridden to default in all cases.
In many targets, defconfig other than default_defconfig needs
to be picked, so set WLAN_PROFILE to default only if it is not
set before.

Change-Id: Ia9a5ad7c9eedd56be59418371867107258e65ea0
CRs-Fixed: 2818090
2020-11-16 01:24:35 -08:00
Arun Kumar Khandavalli
f97275eb2e qcacld-3.0: set the global device mode in the pdev
Set the global device mode which can help in the memory optimization
based on the device mode.

Change-Id: I32d7c2f5be9cf8972ef9ef87ae698655629344b2
CRs-Fixed: 2809941
2020-11-16 01:24:31 -08:00
snandini
2a07cd767d Release 5.2.0.210J
Release 5.2.0.210J

Change-Id: I5ff44383e2b92f9196c952cf80a4d4085a059802
CRs-Fixed: 774533
2020-11-15 23:15:39 -08:00
Jianmin Zhu
c5835c7bee qcacld-3.0: Fix LFR3 roaming and NUD race condition issue
If data stall happens, both LFR3 roaming and NUD may happen,
if LFR3 happens first, updated connected bssid, NUD handler will
add new bssid to blacklist and trigger roaming again by mistake.

Fix: Once roaming succeed, reset NUD status to NUD_NONE to finish
current NUD cycle, but don't zero gw mac addr since roaming does't
update gateway.

Change-Id: I03685ca21348444d929e042f12dc3a837ca51940
CRs-Fixed: 2818785
2020-11-15 23:15:38 -08:00
snandini
7dec302792 Release 5.2.0.210I
Release 5.2.0.210I

Change-Id: I82e9f20d215748043ece28f415bf353c71a0ef07
CRs-Fixed: 774533
2020-11-15 21:04:42 -08:00
Liangwei Dong
aa8d331da8 qcacld-3.0: Use tdls user id for tdls ref count operations
For all tdls operations in HDD layer, use WLAN_OSIF_TDLS_ID
reference count dbg id for vdev reference count
acquire/release.

Change-Id: Ic5ab93eb865e016d485f09a9af062062d1f97526
CRs-Fixed: 2805028
2020-11-15 21:04:42 -08:00
snandini
e0a04a2cf5 Release 5.2.0.210H
Release 5.2.0.210H

Change-Id: I5f757e0b55ad7f4d5a5e8874b768b8a6cee0810f
CRs-Fixed: 774533
2020-11-14 11:50:54 -08:00
Liangwei Dong
a890f44bc1 qcacld-3.0: Use p2p osif dbg id for ref count operations
Change HDD layer to use WLAN_OSIF_P2P_ID reference count
dbg id for vdev reference count acquire/release when process
p2p request.

Change-Id: I485ca13d37d3440b8aee75ced7fba75ff24efbd1
CRs-Fixed: 2813935
2020-11-14 11:50:53 -08:00
snandini
71e26e0ac3 Release 5.2.0.210G
Release 5.2.0.210G

Change-Id: Id7476f1a672a23bbe59f56b48cd486bf2c774fbc
CRs-Fixed: 774533
2020-11-14 09:50:33 -08:00
Liangwei Dong
dde0a42f80 qcacld-3.0: Use OCB osif dbg id for ref count operations
Change HDD layer to use WLAN_OSIF_OCB_ID reference count
dbg id for vdev reference count acquire/release when process
OCB request.

Change-Id: Ia6aabc3c3f41fa0f52cf626c99143f3b9682d35e
CRs-Fixed: 2813939
2020-11-14 18:33:21 +08:00
snandini
bd517a2ba1 Release 5.2.0.210F
Release 5.2.0.210F

Change-Id: Ibb5b480cb03a154ab1b6b3253a746323b30c8dad
CRs-Fixed: 774533
2020-11-13 05:12:38 -08:00
Liangwei Dong
520205fbf1 qcacld-3.0: Add new API hdd_objmgr_get/put_vdev_by_user
Add new hdd_objmgr_get/put_vdev_by_user to include user id(reference
count dbg id) to help identify the ownership of the ref count.
The old hdd_objmgr_get_vdev api is deprecated. And it will be removed
once all of the reference to it replaced by new API.

Change-Id: Ibd6528083d725a5930cece96ed3268b27e5263b9
CRs-Fixed: 2804993
2020-11-13 05:12:38 -08:00
snandini
ec84b335d1 Release 5.2.0.210E
Release 5.2.0.210E

Change-Id: I0cbdb9b2dd1d5c292b93b3e6fcdb3352e58bf4f3
CRs-Fixed: 774533
2020-11-13 02:43:23 -08:00
Guisen Yang
bbc786ebd8 qcacld-3.0: Fix the potential buffer overflow issue
Add check in function 'policy_mgr_get_sbs_channels' to restrict the
array index out of bounds.

Change-Id: I387b666095107faf284e35f073dfe856d38323d3
CRs-Fixed: 2776966
2020-11-13 02:43:23 -08:00