Commit Graph

747 Commits

Author SHA1 Message Date
Aditya Kodukula
9684d8033e qcacld-3.0: Add a sysfs replacement for gtxBWMask
As part of WEXT replacement, replace gtx_bw_mask with a sysfs file.

file path: /sys/class/net/wlanxx/gtx_bw_mask
        wlanxx is adapter name

example: echo 1 > gtx_bw_mask

Change-Id: I40c0f611ca221c91c59d9a3f60927f841385c469
CRs-Fixed: 2686762
2020-05-20 23:47:33 -07:00
Aditya Kodukula
5bb4215e50 qcacld-3.0: Add a sysfs replacement for txrx_fw_st_rst
As part of WEXT replacement, replace txrx_fw_st_rst with a sysfs file.

file path: /sys/class/net/wlanxx/txrx_fw_st_rst
        wlanxx is adapter name

example: echo 1 > txrx_fw_st_rst

Change-Id: I654ea8b66e7067f0e1d23ff053fa4b8d163d878c
CRs-Fixed: 2686665
2020-05-20 22:11:20 -07:00
Aditya Kodukula
029a02db1a qcacld-3.0: Add a sysfs replacement for setwlandbg
As part of WEXT replacement, replace setwlandbg with a sysfs file.

file path: /sys/kernel/wifi/set_wlan_dbg

example: echo 1 1 1 > /sys/kernel/wifi/set_wlan_dbg

Change-Id: I886bcd0ed89460e20db1ea809fa48e3a279bb39b
CRs-Fixed: 2686081
2020-05-20 22:11:16 -07:00
Aditya Kodukula
f527f9aeb6 qcacld-3.0: Add a sysfs replacement for getStats
As part of WEXT replacement, replace getStats with a sysfs file.

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

example: cat /sys/class/net/wlanxx/get_stats

Change-Id: I762f61304407876b61b6970688e3715612c60d35
CRs-Fixed: 2685602
2020-05-20 22:11:12 -07:00
Aditya Kodukula
e514533315 qcacld-3.0: Add a sysfs replacement for get_tx_stbc
As part of WEXT replacement, replace get_tx_stbc with a sysfs file.

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

example: cat /sys/class/net/wlanxx/get_tx_stbc

Change-Id: I3024a574c7aa35398bd4c8ee30f8235ef2fe3128
CRs-Fixed: 2682374
2020-05-20 22:11:08 -07:00
Manjunathappa Prakash
9e1e95c70f qcacld-3.0: Get back the WAR to confirm WBM IDLE ring LSB write
On Lahaina platform it is seen that WBM IDLE ring init is failing,
Write to WBM_IDLE link ring LSB write is failing.
Add temporary WAR to do back to back write of WBM IDLE link ring
LSB address config register.

Change-Id: Iccaf222038fb571ed518a90d7e7ac4e655ba5010
CRs-Fixed: 2690491
2020-05-20 15:20:00 -07:00
Alan Chen
b04e0e3c61 qcacld-3.0: Add a sysfs replacement for motion detection commands
As part of WEXT replacement, replace mt_bl_config, mt_bl_start,
mt_config, mt_start with a sysfs file.

file path: /sys/class/net/wlanxx/mt_bl_config
file path: /sys/class/net/wlanxx/mt_bl_start
file path: /sys/class/net/wlanxx/mt_config
file path: /sys/class/net/wlanxx/mt_start
        wlanxx is adapter name

example: echo 1 1 1 1 > mt_bl_config
example: echo 1 > mt_bl_start
example: echo 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 > mt_config
example: echo 1 > mt_start

Change-Id: Ife5df2cfae7c9489d6e9d6c2746a1e7367ed5012
CRs-Fixed: 2686772
2020-05-20 06:12:26 -07:00
Alan Chen
3290e55248 qcacld-3.0: Add a sysfs replacement for thermal_cfg
As part of WEXT replacement, replace thermal_cfg with a sysfs file.

file path: /sys/kernel/wifi/thermal_cfg

example: echo 1 1 1 1 1 2 1 > thermal_cfg

Change-Id: I4dfb9f661154f001150a205ca2ba4d08c3da8361
CRs-Fixed: 2685723
2020-05-20 06:12:23 -07:00
Alan Chen
bb1227276b qcacld-3.0: Add a sysfs replacement for get_temp
As part of WEXT replacement, replace get_temp with a sysfs file.

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

example: cat /sys/class/net/wlanxx/get_temp

Change-Id: I6e530562347c936fb980f4eed4c3a55cb9804bdd
CRs-Fixed: 2684669
2020-05-20 06:12:19 -07:00
Yeshwanth Sriram Guntuka
732f074be1 Revert "qcacld-3.0: Add feature flag to not process rxdma decrypt err"
In PMF cert test case, peer device sends disassoc req to APUT.
After the STA cleanup is done on DUT, ping data packets are still
sent by the peer STA causing rxdma decrypt errors. Rxdma decrypt
errors are not processed and the control path callback to send
deauth frame to peer STA is not invoked resulting in test case
failure.

Fix is to revert commit bf58054b02
("qcacld-3.0: Add feature flag to not process rxdma decrypt err").

Change-Id: I39686a4b16d256bd4d4b62a782457e941cfda8d6
CRs-Fixed: 2686159
2020-05-17 12:29:24 -07:00
Aditya Kodukula
3a81007f01 qcacld-3.0: Add a sysfs replacemnet for wowlDelPtrn
As part of WEXT replacement, replace wowlDelPtrn with a sysfs file.

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

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

Change-Id: I446456df5bd003b7328ba7afc0a4fb5e60059e11
CRs-Fixed: 2682245
2020-05-16 02:45:07 -07:00
Bapiraju Alla
367572ad55 qcacld-3.0: Add a sysfs replacement for getChannel
As part of WEXT replacement, replace getChannel with a sysfs file.
This feature can be controlled using configuration flag
CONFIG_WLAN_SYSFS_GET_CHANNEL

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

example command: cat /sys/class/net/wlan1/get_channel
	output: Channel number: 1

Change-Id: I3040af3d19eb83a819ca83cdbb74a70acd041698
CRs-Fixed: 2681803
2020-05-15 20:14:43 -07:00
gaurank kathpalia
322d8eb806 qcacld-3.0: Cleanup IBSS code from LIM
Cleanup IBSS related code from LIM.

Change-Id: Idebb0f55aa27751f1fdd7b4c1fb8124ae29eb382
CRs-Fixed: 2687017
2020-05-15 18:47:18 -07:00
Bapiraju Alla
6b2b3ea7c8 qcacld-3.0: Add a sysfs replacement for getTdlsPeers
As part of WEXT replacement, replace getTdlsPeers with a sysfs file.

This feature can be controlled using configuration flag
CONFIG_WLAN_GET_TDLS_PEERS

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

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

Change-Id: I66123266d6a3bf4c5c82f70186e35aa9942533b1
CRs-Fixed: 2681810
2020-05-15 16:37:56 -07:00
Jianmin Zhu
c73c2828fb Revert "qcacld-3.0: Add WAR to confirm WBM IDLE ring LSB write"
This reverts
Change-Id: I8d6766e33a3912d197e543f0e7e252513e0253ab
Origin issue has fixed by
Change-Id: I350b810a6cef8eec46428e57f5b779f888552c1b

Change-Id: I4bb8eab90c9a0341f7bc99972f44f576d7e07dc2
CRs-Fixed: 2681665
2020-05-15 05:24:26 -07:00
Alan Chen
de1d2e193e qcacld-3.0: Add a sysfs replacement for get_range_ext
As part of WEXT replacement, replace get_range_ext with a sysfs file.

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

example: cat /sys/class/net/wlanxx/get_range_ext

Change-Id: Ic4b5076efce837d9c98167d6a807722adbbc74df
CRs-Fixed: 2683682
2020-05-15 00:36:40 -07:00
Alan Chen
d463ed704c qcacld-3.0: Add a sysfs replacement for set_dp_trace
As part of WEXT replacement, replace set_dp_trace with a sysfs file.

file path: /sys/kernel/wifi/set_dp_trace

example: echo 1 1 1 > set_dp_trace

Change-Id: I3358ad4f483f66f643c4aa5538fd2c9172d8f077
CRs-Fixed: 2683643
2020-05-15 00:36:35 -07:00
Alan Chen
d9641d06ce qcacld-3.0: Add a sysfs replacement for txrx_stats
As part of WEXT replacement, replace txrx_stats with a sysfs file.

file path: /sys/class/net/wlanxx/txrx_stats
	wlanxx is adapter name

example: echo 1 1 > txrx_stats

Change-Id: I677111a48eb117044ac992616d468c1604b2bae0
CRs-Fixed: 2682369
2020-05-14 23:03:00 -07:00
Alan Chen
072b0b5daa qcacld-3.0: Add a sysfs replacement for txrx_fw_stats
As part of WEXT replacement, replace txrx_fw_stats with a sysfs file.

file path: /sys/class/net/wlanxx/txrx_fw_stats
	wlanxx is adapter name

example: echo 1 > txrx_fw_stats

Change-Id: Icad1f920ef01a4b86efca786da4873a361cd2dfc
CRs-Fixed: 2682352
2020-05-14 23:02:56 -07:00
Alan Chen
3264896675 qcacld-3.0: Add a sysfs replacement for setRadar
As part of WEXT replacement, replace setRadar with a sysfs file.

file path: /sys/class/net/wlanxx/set_radar
	wlanxx is adapter name

example: echo 1 > set_radar

Change-Id: I6451f506c1525dcfc48c988f965cc6dedf64b369
CRs-Fixed: 2680424
2020-05-14 23:02:51 -07:00
Alan Chen
e735aef7ac qcacld-3.0: Add a sysfs replacement for setMonChan
As part of WEXT replacement, replace setMonChan with a sysfs file.

file path: /sys/class/net/wlanxx/set_mon_chan
	wlanxx is adapter name

example: echo 1 1 > set_mon_chan

Change-Id: Id7d21b23129fdf6e37c99924ad91a19e3c03a0d2
CRs-Fixed: 2678501
2020-05-14 23:02:47 -07:00
Alan Chen
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
Utkarsh Bhatnagar
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
Bapiraju Alla
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
Aditya Kodukula
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
Aditya Kodukula
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
Aditya Kodukula
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
Bapiraju Alla
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
Jingxiang Ge
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
Jingxiang Ge
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
Jingxiang Ge
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
Jingxiang Ge
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
Alan Chen
e93ba0f5b1 qcacld-3.0: Add a sysfs replacement for reassoc
As part of WEXT replacement, replace reassoc with a sysfs file.

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

example: echo 0 > reassoc

Change-Id: Ib4f3582bb8c164dd4f3ab739367520b9aeb0f5b9
CRs-Fixed: 2676629
2020-05-08 12:33:18 -07:00
Alan Chen
549fb49793 qcacld-3.0: Add a sysfs replacement for set_fw_mode_cfg
As part of WEXT replacement, replace set_fw_mode_cfg with a sysfs file.

file path: /sys/kernel/wifi/set_fw_mode_cfg

example: echo 1 1 > set_fw_mode_cfg

Change-Id: I851df440f9eb5f73798deaf3b4d0f128f6925f26
CRs-Fixed: 2675570
2020-05-08 12:33:13 -07:00
Nisha Menon
5cfa485d6b qcacld-3.0: Enable flag to check return val of deliver to stack
Enable DELIVERY_TO_STACK_STATUS_CHECK to check if return status
of deliver to stack function is a success. If not then drop the
nbufs and update the appropriate stat counters.

Change-Id: I0576016b66ada8696824855da1893ce0b18ee50e
CRs-Fixed: 2677414
2020-05-03 18:18:46 -07:00
Manjunathappa Prakash
4fd77c6d83 qcacld-3.0: Add flag for increased Tx descs
Add flag for increased Tx descs. And Enable the flag for qca6490.
Based on 1Tx:8Rx NAN test case experiment, it requires increase in
Tx descriptors to burst trafficto each Rx device.

Change-Id: I364ada1ee80afcaf3db3d50efa16a95054a4f7f4
CRs-Fixed: 2658549
2020-04-21 16:54:52 -07:00
Aditya Kodukula
f1c3387ee4 qcacld-3.0: Add a feature flag WLAN_POWER_DEBUG for power stats
Power stats is moved from debugfs to sysfs, and hence add the feature
flag WLAN_POWER_DEBUG such that this feature can be compiled out for
low memory foot print drivers.

Change-Id: Ic395f393580fcd59faa4e4676f67a39ff37bdd1a
CRs-Fixed: 2665089
2020-04-18 05:00:54 -07:00
gaurank kathpalia
70b68f8075 qcacld-3.0: MCL specific movement from cmn to cld of stats
Move the MCL specific files related to cp stats from the
cmn to cld folder.

Change-Id: I00ce5d650780f9b74c64923c8392f06222e651a5
CRs-fixed: 2552458
2020-04-17 07:36:07 -07:00
Manjunathappa Prakash
2c10ce10dc qcacld-3.0: Add WAR to confirm WBM IDLE ring LSB write
On Lahaina platform it is seen that WBM IDLE ring init is failing,
Write to WBM_IDLE link ring LSB write is failing.
Add temporary WAR to do back to back write of WBM IDLE link ring
LSB address config register.

Change-Id: I8d6766e33a3912d197e543f0e7e252513e0253ab
CRs-Fixed: 2662295
2020-04-16 00:12:54 -07:00
Wu Gao
4933c905f5 qcacld-3.0: Enable CFR in Kbuild
This is part of adding channel frequency response. Enable CFR and
streamfs in Kbuild for QCA6490 only.

Change-Id: I7ef0eff10cfbe09e7fb3e14cefede0a352af5d9a
CRs-Fixed: 2637187
2020-04-13 21:13:41 -07:00
Nisha Menon
5a8ea4c3a3 qcacld-3.0: Enable MCL feature flag HIF_CPU_PERF_AFFINE_MASK
This feature is enabled in order to move the WLAN IRQs
to the gold cores only for defconfig builds. The IRQ
affinity hint is updated on boot up and when the cpu
hotplugs in.

Change-Id: I8014c181c8ba66875f13736638db91f6a5174f49
CRs-Fixed: 2656331
2020-04-09 05:20:14 -07:00
Yeshwanth Sriram Guntuka
929edf94c4 qcacld-3.0: Enable build configuration for dp hang event
Enable the build configuration for dp hang event to
enable the datapath hang event logging feature.

Change-Id: I8044f977e417a311a17e446cc6b71211d217ae4b
CRs-Fixed:
2020-04-02 20:44:19 -07:00
Arun Kumar Khandavalli
74014d9143 qcacld-3.0: Update hdd hang data
Whenever a recovery is triggered in the hdd layer update the
various vdev data for hang event:
	1) Vdev id
	2) vdev opmode
	3) vdev state and substate

if the reason for recovery is max scan failures update the last
scan reject, reason and the vdev id on which scan is rejected.

Change-Id: I84928e56bac1fe58e7eada0a0574b2f23124ae65
CRs-Fixed: 2651694
2020-04-01 12:39:39 -07:00
Arun Kumar Khandavalli
29ca29fb41 qcacld-3.0: Add build configuration for the htc hang event
htc hang event configuration has been added, enable
the build configration for the feature.

Change-Id: I5441f95288db46ca58ef44f4c825b9f4f7cf59ac
CRs-Fixed: 2651750
2020-04-01 12:39:00 -07:00
gaurank kathpalia
82511bc630 qcacld-3.0: Add support for STA+NAN+NDI+NDI
Add support for four port concurrency for
STA+NAN discovery + NDI + NDI.

Change-Id: I7d6d3f482a61bef7f3d0a31eee3fdfe5e5e9d879
CRs-Fixed: 2633982
2020-04-01 10:46:22 -07:00
Arun Kumar Khandavalli
8a779258cf qcacld-3.0: Add build configuration for the wmi hang event
wmi hang event configuration has been added, enable
the build configration for the feature.

Change-Id: I8c7034d07f369f79191a2496e9000f83eecdba6e
CRs-Fixed: 2651741
2020-03-31 15:04:25 -07:00
Arun Kumar Khandavalli
b2e4ddd34c qcacld-3.0: Add build configuration for the qdf hang event
In qdf new hang event notifier chain has been added, enable
the build configration for the feature.

Change-Id: I98e2701499133d208af863b401fc47fafec35226
CRs-Fixed: 2648449
2020-03-31 11:37:54 -07:00
Arun Kumar Khandavalli
76bb1fa316 qcacld-3.0: Add build configuration for the qdf notifier chain
In qdf new os specicfic notifier chain has been added, enable
the build configration for the feature.

Change-Id: Ic08b3ebc3b173839496428a27d0eb4d7a1633cb6
CRs-Fixed: 2648245
2020-03-31 11:37:38 -07:00
Lihua Liu
ddb8d72760 qcacld-3.0: Add workaround for TXDMA HW limitation
Per HW team's analysis, we find a TXDMA HW limitation:
ADDR0&0x1FFFFFFF8 should not equal ADDR1&0x1FFFFFFF8.
Otherwise, TXDMA will run into exception, which cause TX fail.
ADDR0: the address of last words in previous buffer;
ADDR1: the address of first words in next buffer;

We hit this limitation in NAT forward TSO jumbo case whose buffer
address of two fragments like below:
tso_frags = (
(length = 0x42, vaddr = 0xFFFFFFD0F5FA2F82, paddr = 0x1F5FA2F82),
(length = 0x05A8, vaddr = 0xFFFFFFD0F5FA2FC4, paddr = 0x1F5FA2FC4)
In this case, ADDR0 = 0x1F5FA2F82 + 0x42 -2 = 0x1F5FA2FC2,
ADDR1 = 0x1F5FA2FC4, then
ADDR0&0x1FFFFFFF8 = ADDR1&0x1FFFFFFF8.
To avoid this, shift server bytes for ADDR0.

Change-Id: If9334a6861a03432eb70356df41a11ad971159e3
CRs-Fixed: 2641066
2020-03-30 10:03:33 -07:00
Karthik Kantamneni
06a63cafdd qcacld-3.0: Moselle changes for WHUNT simulation support
Add PLD layer and config changes for simulating
IPCI virtual device in WHUNT.

Change-Id: Ia07ce0884f0e5ffe9b4d23977476c1789390e1c9
CRs-Fixed: 2648150
2020-03-25 15:25:13 -07:00