19462 Commits

Author SHA1 Message Date
96d62585ee qcacld-3.0: Add a sysfs replacement for set_scan_cfg
As part of WEXT replacement, replace set_scan_cfg with a sysfs file.

file path: /sys/kernel/wifi/set_scan_cfg

example: echo 1 1 1 > set_scan_cfg

Change-Id: I0807a0fc7ab4e3963386f5f5979b039c291896d9
CRs-Fixed: 2678470
2020-05-14 21:34:58 -07:00
28edf2eb89 Release 5.2.0.185X
Release 5.2.0.185X

Change-Id: Ie17820384a8b08f061f65eb11351c0350e540ba8
CRs-Fixed: 774533
2020-05-14 17:49:11 -07:00
b0bf5ddb1b qcacld-3.0: Removed FEATURE_WLAN_RMC feature
Removed all the API realted to  FEATURE_WLAN_RMC
as well as related SME/WMA code.

Change-Id: Id471ccabcfd183fbcc7ff4e4953991f9e1551526
CRs-Fixed: 2686364
2020-05-14 17:49:11 -07:00
d00d63fedd Release 5.2.0.185W
Release 5.2.0.185W

Change-Id: Id99313de3553c94563655997602ca0cc93a37630
CRs-Fixed: 774533
2020-05-14 13:04:13 -07:00
bf047d7143 qcacld-3.0: Bypass FISA for non-regular RX delivering frame
Bypass FISA for non-regular RX delivering frame

Change-Id: I835229379779057f1b8cddcfffc3b3863137e5bc
CRs-Fixed: 2683727
2020-05-14 13:04:13 -07:00
ebb777bda8 Release 5.2.0.185V
Release 5.2.0.185V

Change-Id: I5781e9f56e1e684231e3ced6b2a81cb2f98fee5e
CRs-Fixed: 774533
2020-05-14 11:20:42 -07:00
ba6b3520d3 qcacld-3.0: Add a sysfs replacement for get_sta_info
As part of WEXT replacement, replace get_sta_info with a sysfs file.

This feature can be controlled using configuration flag
CONFIG_WLAN_SYSFS_GET_STA_INFO

file path: /sys/class/net/wlanxx/get_sta_info
	where wlanxx is adapter name

example command: cat /sys/class/net/wlanxx/get_tdls_peers

Change-Id: Iac23cdc92a860279480ec9703697f22b2f0b5223
CRs-Fixed: 2682163
2020-05-14 11:20:42 -07:00
6cca230131 Release 5.2.0.185U
Release 5.2.0.185U

Change-Id: Id66f0c4b9ff303178ef83a137e73fea79d5ebeb6
CRs-Fixed: 774533
2020-05-14 08:49:43 -07:00
6e244ca777 qcacld-3.0: Add a sysfs replacement for wowlAddPtrn
As part of WEXT replacement, replace wowlAddPtrn with a sysfs file.

file path: /sys/class/net/wlanxx/wowl_add_ptrn
	where wlanxx is adapter name

example: echo 08:01:FFFFFFFFFFFF0000:FC > wowl_add_ptrn

Change-Id: I46d00fd8a15851cf2838f3b07a0ec2d1050d1087
CRs-Fixed: 2680490
2020-05-14 08:49:43 -07:00
e10a627c6c Release 5.2.0.185T
Release 5.2.0.185T

Change-Id: I049727025e846dc7bf863d6caf99e18c0d806719
CRs-Fixed: 774533
2020-05-14 07:04:53 -07:00
0907e9f8b3 qcacld-3.0: Cleanup IBSS in CSR layer
Cleanup IBSS related code from CSR/SME layer.

Change-Id: I4a15b0c59b55382ffb6a5c67049a6b24e3e00cbe
CRs-Fixed: 2685889
2020-05-14 07:04:53 -07:00
d280fe0dd0 Release 5.2.0.185S
Release 5.2.0.185S

Change-Id: I89de678544f14dec25a1bada646e63f1416e9584
CRs-Fixed: 774533
2020-05-14 02:17:00 -07:00
326f4481d9 qcacld-3.0: Add a sysfs replacemnet for wow_ito
As part of WEXT replacement, replace wow_ito with a sysfs file.

file path: /sys/kernel/wifi/wow_ito

example: echo 1 > wow_ito

Change-Id: I11cf9acfc4282b910145efa527682ab1738eaaa0
CRs-Fixed: 2680332
2020-05-14 02:17:00 -07:00
5d77b1b715 qcacld-3.0: Add a sysfs replacement for scan_disable
As part of WEXT replacement, replace scan_disable with a sysfs file.

file path: /sys/kernel/wifi/scan_disable

example: echo 1 > scan_disable

Change-Id: Icaa7083d0f7b2cefd0f77cb7da7fe0d3d52d36c5
CRs-Fixed: 2676764
2020-05-14 02:16:55 -07:00
a7b4ee1df8 qcacld-3.0: Don't force RSSI trigger in controlled roaming mode
Host configures rssi trigger, connected ap rssi delta and rssi
threshold in firmware. As rssi threshold is hit, firmware start
roam scan. Firmware decreases further RSSI threshold by connected
ap rssi delta if matching profile ap not found and so on.
Example: STA connects to an AP and host sets rssi trigger,
connected ap rssi delta=5 and rssi threshold as -25dbm. Firmware
starts roam scan as the rssi threshold is hit. In the roam scan
if desired profile ap is not found, decreases rssi threshold
by 5dbm i.e connected ap rssi delta. Now rssi threshold becomes
-30dbm and then firmware triggers roam scan and so on.

Thus the rssi threshold changes dynamically when controlled
roaming mode is set from userspace, to fix this do not force
RSSI triggers when controlled roaming from userspace is enable.

Change-Id: I1de3f71ca96de9f464d5d33b0271f99c55cff535
CRs-Fixed: 2681882
2020-05-14 02:16:51 -07:00
fa053e4857 Release 5.2.0.185R
Release 5.2.0.185R

Change-Id: Ibce6b05f57c8ddefa5729d7c25e3a8501550a82c
CRs-Fixed: 774533
2020-05-13 21:07:14 -07:00
5537b67b89 qcacld-3.0: Update rx ldpc capability based on ini configuration
Update rx ldpc capability based on ini
configuration(gEnableRXLDPC).

Change-Id: Ic160850f4fbba19a8faebc7f0c0545f21834de93
CRs-Fixed: 2677946
2020-05-13 21:07:14 -07:00
deb6257efe Release 5.2.0.185Q
Release 5.2.0.185Q

Change-Id: Ic249f7508d114ae4fbb7ae84a8a573176b8b7fa0
CRs-Fixed: 774533
2020-05-13 19:17:37 -07:00
f3e4542667 qcacld-3.0: Removed IBSS from wlan_policy_mgr
Removed IBSS feature from wlan policy Manager

Change-Id: If31514e8b67042a798419e29ddda0538e2ebb265
CRs-Fixed: 2681063
2020-05-13 19:17:36 -07:00
f3a05294f4 Release 5.2.0.185P
Release 5.2.0.185P

Change-Id: I12eb48264e9c4113afad3ed045babba1f9735737
CRs-Fixed: 774533
2020-05-13 12:39:42 -07:00
9171aece4a qcacld-3.0: Add a sysfs replacement for connect info
Add sysfs entry to get connection info instead of debugfs.

This feature can be controlled using configuration flag
CONFIG_WLAN_SYSFS_CONNECT_INFO

file path: /sys/class/net/wlanxx/connect_info
	where wlanxx is adapter name

example command: cat /sys/class/net/wlanxx/connect_info

Change-Id: Ibe183e4665cdbea66b83abd4732e7ef33843612d
CRs-Fixed: 2682856
2020-05-13 12:39:41 -07:00
5cb4bcdee5 qcacld-3.0: Handle memory leak during start/stop SAP
Free beacon memory in all execution paths to avoid memory leak.

Change-Id: Ibc5f8c90a142891fd4e60c79ca5ed75c708ecad6
CRs-Fixed: 2682205
2020-05-13 12:39:38 -07:00
a6c7940468 Release 5.2.0.185O
Release 5.2.0.185O

Change-Id: I11a24283abcbc576c0cc5b30446918d53b5d9109
CRs-Fixed: 774533
2020-05-13 08:37:28 -07:00
f2f38a5e89 qcacld-3.0: Add a log to print nan separate vdev capa of host and fw
Currently, there is no log to identify whether the firmware doesn't
support NAN separate vdev or it's disabled through the ini param
nan_separate_iface_support. Add a log to print the firmware
and host capabilities when either of these is not supported.

Change-Id: I76ad6e192b7b7fc07c106f652df947767f7b4578
CRs-Fixed: 2684544
2020-05-13 08:37:28 -07:00
1bb89fb4dc Release 5.2.0.185N
Release 5.2.0.185N

Change-Id: I06199d54ecd128f9fda041949ec57c04571e4be8
CRs-Fixed: 774533
2020-05-13 04:57:07 -07:00
f47d2eb63f qcacld-3.0: Remove IBSS support from HDD
Remove IBSS support from HDD layer.

Change-Id: Ie581faa15317b8523b36507bb1662246b95c2e47
CRs-Fixed: 2684352
2020-05-13 04:57:07 -07:00
37f2e82393 Release 5.2.0.185M
Release 5.2.0.185M

Change-Id: I9bf6ca85b91e129f24367aac75bed5ebbfe216a0
CRs-Fixed: 774533
2020-05-13 01:30:20 -07:00
aeb4629aa4 qcacld-3.0: Correct the names of structure and API about spectral
There is change modified the name of structure and API about spectral
cmd operations registration. So, add this change to correct them in
wma layer.

Change-Id: Icf1b8eb84e6cd6d110fe32ab30566c68ea33e2d7
CRs-Fixed: 2682782
2020-05-13 01:30:20 -07:00
d4724cf9af qcacld-3.0: Delete older PMK of all APs which have the same PMK
Currently when supplicant sends set_pmkid_cache (Either after initial
connection or after session timeout with AP) to host to set
the new pmkid derived after the EAP is done. Host deletes PMK entry
only if bssid/ssid matches.
For OKC, the PMK derived from the initially associated AP will be
used for deriving PMKID for all APs. In case of connection with OKC
supported APs, If STA receive session timeout from AP, HOST should
delete older PMK of all APs which have the same PMK. Else While
roaming HOST could send older PMK to OKC supported AP and this
results PMK flush in FW and leads to full EAP.

Change-Id: I95881db229d5193cbdc22c5f30e1375b3892fbd4
CRs-Fixed: 2679737
2020-05-13 01:30:15 -07:00
8dc196464b Release 5.2.0.185L
Release 5.2.0.185L

Change-Id: Iabb04110fa8adfbbb9ebff0ccf8a77a4ee0138be
CRs-Fixed: 774533
2020-05-12 23:36:47 -07:00
32bc20bc53 qcacld-3.0: Use hex dump instead of printing WOW pattern
Currently in the driver, we are printing the WOW pattern to the kernel
logs. This pattern is an array and printing it one by one can lead to
excessive logging.

Instead of printing one by one, use qdf_trace_hex_dump() to print the
pattern in one go. Also move the logging from kernel to the driver logs.

Change-Id: I6a3b02b0e57d8c27bb5ea4a7c44f67634c0f33fd
CRs-Fixed: 2661242
2020-05-12 23:36:47 -07:00
fa85d03310 qcacld-3.0: Add a sysfs replacement for modify_acl
As part of WEXT replacement, replace modify_acl with a sysfs file.
file path: /sys/class/net/wlanxx/modify_acl
example: echo 0x00 0x11 0x22 0x33 0x44 0x55 0 0 > modify_acl

Change-Id: I2022a50be84fa21a437aed9ecfdbe4d4bba613df
CRs-Fixed: 2682881
2020-05-12 23:36:42 -07:00
17a9810ebe Release 5.2.0.185K
Release 5.2.0.185K

Change-Id: Iac23e051c5313316d6d527e98bd3c945e53416c6
CRs-Fixed: 774533
2020-05-12 15:36:08 -07:00
9b181b365f qcacld-3.0: Add NULL check for adapter->vdev in interop_ap
In the function __wlan_cfg80211_set_interop_issues_ap_config the
adapter->vdev pointer is being passed to fetch the psoc without any
prior NULL check. This can lead to NULL pointer dereference.

Add a NULL sanity check before performing action based on adapter->vdev

CRs-Fixed: 2681524
Change-Id: I0c58a3a263fe5166e0c13a5f866f4bccfa031086
2020-05-12 15:36:08 -07:00
cdfa210156 qcacld-3.0: free the skb if osif_vdev_sync_op_start failed
If osif_vdev_sync_op_start failed, that means operation on
net_dev is not permitted. So, free the skb before return.

Change-Id: Icd366c2d9d947e39f26f1b21878bfe0154a55fdc
CRs-Fixed: 2681018
2020-05-12 15:36:04 -07:00
d064902a66 qcacld-3.0: Update disconnect rssi on every disconnect rssi event
Currently there is a check to validate if the station is in
associated state or not in the hdd lost link cp stats info cb,

There is a race condition where if the disconnection happens
from ap in that case the callback gets invoked before the
connection state in the station context gets updated and thus
the rssi on disconnect is not updated.

To address above issue remove the check to validate the station
state and update the rssi on disconnect irrespective of the
state of the connection.

Change-Id: I9cc6a08cdf0a1081adfde7a9423a665bc977cffc
CRs-Fixed: 2678667
2020-05-12 15:36:00 -07:00
c25f24b8d8 qcacld-3.0: Add support for HTT_T2H_MSG_TYPE_CFR_DUMP_COMPL_IND msg
Add support to parse the HTT_T2H_MSG_TYPE_CFR_DUMP_COMPL_IND
message. This target to host message is received when CFR feature
is enabled.

Change-Id: I592cd5ca663018f2958550e6e3e383bb796ee168
CRs-Fixed: 2680730
2020-05-12 15:35:56 -07:00
26912417a3 Release 5.2.0.185J
Release 5.2.0.185J

Change-Id: Ibccbfad1e55bc0e008b8b86880b530f79fc3dba6
CRs-Fixed: 774533
2020-05-12 13:45:10 -07:00
ca4db85bc2 qcacld-3.0: Fix issue with OBSS scan cmd send failure
OBSS scan enable WMI command is not correctly set for one of
the TLV of the command which corrupted the length of the next
TLV of the command and lead to command send failure.

Correct the buffer offset of the TLV in the OBSS scan WMI command.

Change-Id: Ieb9467c52ae9d9dab602485b4b63fc9de48e6924
CRs-Fixed: 2681000
2020-05-12 13:45:08 -07:00
a04e1c5dd8 qcacld-3.0: Register sysfs entries only for Mission mode
Some of the psoc/pdev specific sysfs entries are valid only for
mission mode and a no-op for the non-mission modes.

Add a sanity check for global mode type while adding and removing
the interface.

Change-Id: If017f583f9b3a29c7d43e59709227a9ba639764d
CRs-Fixed: 2682924
2020-05-12 13:45:04 -07:00
229a7c7200 qcacld-3.0: Enable FW log parsing feature by default
Currently FEATURE_FW_LOG_PARSING is enabled if the
target is not lahina. With the new requirement it is
required to enable this feature by default.

To address above requirement enable this feature by default.

Change-Id: I2a1e944c7ae76b3747c73202f3b25fa880111d2f
CRs-Fixed: 2683325
2020-05-12 13:45:00 -07:00
45a77d66f0 Release 5.2.0.185I
Release 5.2.0.185I

Change-Id: I92cb7283982f7677c613da1795125370ad3722fd
CRs-Fixed: 774533
2020-05-12 08:36:59 -07:00
999e31af36 qcacld-3.0: Move sysfs create/destroy to start/stop adapter
Move adapter-specific sysfs files, create/destroy, to start/stop adapter
such that unwanted sysfs creations can be avoided for sap only files.

Change-Id: Icff8df5f773fda0560400360c37d644274df456e
CRs-Fixed: 2683477
2020-05-12 08:36:59 -07:00
67aef89ea5 Release 5.2.0.185H
Release 5.2.0.185H

Change-Id: I75ae8f48e752e2477d0c7a02e7e7e66d1ced36e4
CRs-Fixed: 774533
2020-05-11 13:32:08 -07:00
c57df4421d qcacld-3.0: Add logs for sar safety and sar unsolicited timers
Currently there are no logs to check at what time SAR safety timer
or sar unsolicited timer starts or stops.
Add debug logs to know the exact time when the sar safety timer
and sar unsolicited timer start and stop.

Change-Id: I2feaff17c6940a18d35bc4271549eda5dc36a13a
CRs-Fixed: 2679214
2020-05-11 13:32:08 -07:00
cf8e2ecbbf Release 5.2.0.185G
Release 5.2.0.185G

Change-Id: Ia7d95239a270e5fb6a3520114b41feb018cf675c
CRs-Fixed: 774533
2020-05-11 11:44:01 -07:00
9ff73b6c5b qcacld-3.0: Add a sysfs replacement for unit_test_target
As part of WEXT replacement, replace unit_test_target with
a sysfs file.
file path: /sys/class/net/wlanxx/unit_test_target
        wlanxx is adapter name
        example: echo 5 2 2 1 > unit_test_target

Change-Id: I7815a4238dc39e468ae8e43d26405dc72a0a84df
CRs-Fixed: 2681473
2020-05-11 11:44:01 -07:00
02938bab2b qcacld-3.0: Add a sysfs replacement for suspend/resume
As part of WEXT replacement, replace wlan_suspend/wlan_resume
with a sysfs file.
file path: /sys/class/net/wlanxx/wlan_suspend
           /sys/class/net/wlanxx/wlan_resume
                wlanxx is adapter name
example:
         echo 0 0 > wlan_suspend
         echo > wlan_resume

Change-Id: I378afaa5f0ee00d893f4f9eb3e6ce2e80062b43f
CRs-Fixed: 2680776
2020-05-11 11:43:57 -07:00
4accf73e7b qcacld-3.0: Add a sysfs replacement for crash_inject
As part of WEXT replacement, replace crash_inject with a sysfs file.
file path: /sys/class/net/wlanxx/crash_inject
        wlanxx is adapter name
        example: echo 1 1 > crash_inject

Change-Id: Ica3e2c0941e9217b42ed7cd3194fe98c8f0d0aa9
CRs-Fixed: 2680684
2020-05-11 11:43:54 -07:00
53af32a7d9 Release 5.2.0.185F
Release 5.2.0.185F

Change-Id: Ide9b19409d894536eb8e6d14548f66561425ba3e
CRs-Fixed: 774533
2020-05-11 07:11:26 -07:00