Commit Graph

15941 Commits

Author SHA1 Message Date
sheenam monga
cc692a8d34 qcacld-3.0: Add ini support for tx_retry_multiplier
Add ini support for tx_retry_multiplier and send
tx_retry_multiplier to fw as PDEV_STATS_TX_XRETRY_EXT
pdev param, so that fw can multiply the counter by the
percentage provided by user.

Change-Id: Ie2f06dc3aaa4a161a451b68abd085cc1537eb468
CRs-Fixed: 3066799
2021-11-10 02:30:44 -08:00
Rachit Kankane
5a066678c6 qcacmn: add reason code
Add new reason code REASON_HOST_TRIGGERED_SILENT_DEAUTH to silently
deauthenticate the peer STA

Change-Id: Ibb4b81562f6802cadb1a9c9fa1452f0875f02ded
CRs-Fixed: 3070895
2021-11-10 00:57:38 -08:00
Edayilliam Jayadev
c194d157aa qcacmn: Simulation debug support for reo
Debug frame work to simulate the generation of management
frames by HW, processing of management frames by FW and Host.
This would help in exercising the management Rx reorder
algorithm.

Change-Id: I9ec585b1bb41a5eb5e6226d0151ad23143fdb8f7
CRs-Fixed: 3017577
2021-11-09 13:27:09 -08:00
VIJAY RAJ
8755e4f699 qcacld-3.0: Fix fw_timestamp copy in cm_roam_trigger_info_event
In cm_roam_trigger_info_event, fw_timestamp is not copied to
wlan_log_record.

Add changes to copy fw_timestamp to wlan_log_record in
cm_roam_trigger_info_event.

Change-Id: I8ec7796b656d716e6ab3b7613be0c1332d5c9fa0
CRs-Fixed: 3068843
2021-11-09 00:21:21 -08:00
Jianmin Zhu
6c24423cc5 qcacld-3.0: Add self bss roam check for connnect cmd
Add self bss roam check in roam invoke cmd handler,
If ini enable_self_bss_roam is 0, don't permit to roam
to current connected bss, just keep current connection.

Change-Id: I7fe724e26d15bcc008957829e4e3384c60b58773
CRs-Fixed: 3069587
2021-11-08 13:21:18 -08:00
Utkarsh Bhatnagar
7bc758e77e qcacld-3.0: SAP concurrency changes
SAP concurrency changes to support
SBS

Change-Id: I8a509b20ab172bce2df977f69a78f5ec0070535a
CRs-Fixed: 3052123
2021-11-08 11:20:33 -08:00
Srikanth Marepalli
5585a7d918 qcacld-3.0: Add wow event and reason for roam event stats
This change sends the new wow event in the bitmap to FW only
when the roam stats suspend mode attribute is enabled from the
user space.
Also, the new wow reason is added to wake up the host while
sending the roam event stats.

Change-Id: Iaefb229929e8791870f33bf787487f7c20daf218
CRs-Fixed: 3050830
2021-11-08 09:41:50 -08:00
Amruta Kulkarni
f37635b58c qcacld-3.0: Fix freqency list copy in cm_roam_scan_info_event
In cm_roam_scan_info_event, qdf_mem_copy is performed with
different sizes.

Fix is to assign frequency values instead of mem copy.

Change-Id: Ie7dc4eaf4d7c0b65100edd77d7c2306e53e2ea9b
CRs-Fixed: 3065698
2021-11-08 09:41:44 -08:00
Srikanth Marepalli
16dc45a6f3 qcacld-3.0: Fill the vendor attributes with the Roam stats
This change gathers the roam event stats from the FW.
New vendor event is used to fill in the vendor attributes
whenever the roam stats are received from Firmware.

Change-Id: I9a2ddef62d26b0b68897891788733df452ac1ceb
CRs-Fixed: 3036518
2021-11-08 09:41:34 -08:00
Srikanth Marepalli
f3adf737ea qcacld-3.0: Vendor command changes to enable the roam events stats
Add new vendor command to enable the roam events stats from the
driver/FW in both resume and suspend mode.
New roam param is introduced to indicate the FW to enable/disable
the roam stats using the new roam set command.

Change-Id: I6d04f0946e6735613a4cf3d4361bf31052314fa0
CRs-Fixed: 3036518
2021-11-08 09:41:27 -08:00
Sai Rupesh Chevuru
b1db784a64 qcacmn: send event to control path to inditate presence of backhaul
send event to control path on receiving 1st 4-address frame from backhaul
Change-Id: I7c78566d0adf275aeb2edd29233a42563d156fc5
2021-11-08 05:19:56 -08:00
Mohit Khanna
2c4ac431f0 qcacmn: Avoid tracing packets at high throughputs
Avoid tracing data packets at high throughput levels. This helps save
CPU cycles.

CRs-Fixed: 3059712
Change-Id: Ideca04e142a2f4080cd5758fe27f0b526ea4f9ad
2021-11-08 05:19:51 -08:00
Mohit Khanna
9d2cde1128 qcacmn: Add last TX/RX timestamp in DP peer stats
Add timestamps for last TX/RX in peer stats. This stat is needed to be
passed on to upper layers on demand.

CRs-Fixed: 3059712
Change-Id: If0d8b7dc3c139e4d1b670bf98f3f574f02ea9715
2021-11-08 05:19:46 -08:00
Mohit Khanna
81e29163db qcacmn: Add throughput based RTPM API support
Add support to invoke HIF runtime PM APIs in TX packet path based on
throughput level. Essentially at high throughputs, where runtime PM is
not expected to provide power gains, invoking the APIs is deterimental to
performance.
Hence invoke runtime_pm APIs based on throughput level.

CRs-Fixed: 3059712
Change-Id: I49d111bffa8a37c68abbdd54911f9ecc22430562
2021-11-08 05:19:41 -08:00
Mohit Khanna
25652ed9d8 qcacmn: Return invalid peer state if peer is not found
Return an appropriate value in case a peer is not found.

CRs-Fixed: 3059712
Change-Id: I951d4dd900cde0606e8f03c2b8748f5e76fe5736
2021-11-08 05:19:36 -08:00
Yeshwanth Sriram Guntuka
d9eb751658 qcacmn: Add support to affine individual grp irqs
Add support to affine individual grp irqs to either
perf or non-perf cluster.

Change-Id: I90006645acb82b71c63d2255722e2c67bb7a2f46
CRs-Fixed: 3059676
2021-11-08 05:19:31 -08:00
Yeshwanth Sriram Guntuka
6c7d7a2b2e qcacmn: Set the min tx rings config param to 1
INI config to set the number of tx rings to 1
or 2 does not take effect since the value of
WLAN_CFG_NUM_TCL_DATA_RINGS_MIN is 3.

Fix is to set WLAN_CFG_NUM_TCL_DATA_RINGS_MIN to 1
to allow for a lower number of tx rings cfg.

Change-Id: Idc7881f75d42fabda5d3ed55e74c9eb784f7705f
CRs-Fixed: 3070272
2021-11-08 05:19:25 -08:00
Yu Wang
33958ed42f qcacmn: handle MLO scenario for candidate validating
Add flag to indicate whether MLO is supported by the candidate or not,
which is helpful when checking concurrency.

Change-Id: I166ad2963163ae4dc7989516b654dce4cb635cec
CRs-Fixed: 3013418
2021-11-07 22:52:53 -08:00
Yu Wang
cd3585de7d qcacld-3.0: add concurrency checking for MLO STA
Update the concurrency policy for STA mode.
For an upcoming STA connection:
1. Disallow the 2nd STA connection if multiple STA connections are
   not allowed.
2. Allow the secondary MLO link when primary link is connected.
3. Disallow ML STA when ML STA/SAP is present.
4. Disallow the 3rd STA.
5. Allow for the other cases.

Change-Id: I70c41177b7a3a9aa9cbac0aaced08c6eafca2b6d
CRs-Fixed: 3012577
2021-11-07 22:52:37 -08:00
Jinwei Chen
045a3225cd qcacmn: Fix HMT compilation issue
Fix HMT compilation issue due to mismatch between HW header file and
print.

Change-Id: Ic0c8a59638ae6816651397898b0ca9eb3cd9ad7f
CRs-Fixed: 3069697
2021-11-07 21:18:45 -08:00
Yeshwanth Sriram Guntuka
e4bd6bb939 qcacmn: Repurpose the IPA tx ring pairs for normal use
Repurpose the IPA tx and tx completions rings for
normal use when IPA is disabled either via config
flag or ini.

Change-Id: Ia4b6a89c73d888a217bdef40e3c05435c3bb1bb2
CRs-Fixed: 3059730
2021-11-05 12:32:35 -07:00
Jinwei Chen
dcdd40116f qcacmn: fix dp_rx_process_be dead loop issue
For T-put test case, if near_full IRQ is fired, ring_near_full
flag will be set and host will always reap reo2sw ring as much
as possible, but if quota 0, this will lead to dead loop
in dp_rx_process_be.

stop reaping reo2sw ring if quota is 0 even ring_near_full is set.

Change-Id: Ifea885162be3ccc6ae0515fc3c2538c459372887
CRs-Fixed: 3067231
2021-11-05 06:26:07 -07:00
Utkarsh Bhatnagar
a12b4ac946 qcacld-3.0: Cleanup WMA HWMODE
Cleanup WMA HWMODE and WMA HWMODE List
as the same functionality is already taken
care by policy manager

Change-Id: I5dc1342422e70737111f882013ed3a6351a85336
CRs-Fixed: 3064739
2021-11-05 02:34:33 -07:00
Amruta Kulkarni
fdb5610801 qcacld-3.0: Fix sign for rssi threshold
In connectivity logs, for roam scan fix sign for rssi threshold.

Change-Id: I850103b3b60b0a98ac06dd0f6ba55248e52fba93
CRs-Fixed: 3068780
2021-11-04 23:11:49 -07:00
Shwetha G K
9ba3c35fdb qcacmn: Update chan capture status bitmask
Update channel capture status bitmask

Change-Id: Id4bb7601ea981da6f48a6e8ae258ae8af51bef13
CRs-Fixed: 3057984
2021-11-04 19:06:16 -07:00
Utkarsh Bhatnagar
ac5bbbe881 qcacld-3.0: SBS changes for allowing concurrency
Modify policy_mgr_is_concurrency_allowed() to support
SBS concurrencies as well. For this, the following
sub functions are modified/added:

policy_mgr_allow_same_mac_diff_freq(): Check whether
different Frequencies are allowed on same MAC

policy_mgr_allow_same_mac_same_freq(): check whether
given frequency is allowed for same mac

Modify policy_mgr_allow_new_home_channel() to consider
Frequency Range of Mac instead of Operational Frequency
Band.

policy_mgr_allow_sap_go_concurrency() is also modified
to consider frequency range.

Change policy_mgr_is_5g_channel_allowed() and
policy_mgr_is_6g_channel_allowed() to allow STA on SBS
channel if SAP/Go on DFS Channel and no other active
2.4 Ghz connection.

Change-Id: Ifcd001d70e4705b33f1b7e2e3f6c296e0545eeeb
CRs-Fixed: 3052778
2021-11-04 10:19:34 -07:00
sandhu
c66cd33bac qcacmn: Fix WHUNT compilation issue
Fix hamilton whunt compilation. Remove mesh_sta print

Change-Id: Ia025a3ebf7f209d47d4c101c5eb6e834a4db79b9
CRs-Fixed: 3068950
2021-11-04 02:16:19 -07:00
Alan Chen
af16930bc8 qcacld-3.0: Delete use cases of INI enable_dynamic_pcie_gen_speed_switch
INI item enable_dynamic_pcie_gen_speed_switch is no longer. Hence,
delete all uses cases of it.

Change-Id: I1082620c4354bda48ebc54aae7e72e5a81c4aa94
CRs-Fixed: 3068122
2021-11-03 21:11:10 -07:00
Rajeev Kumar
d1e7fb4279 qcacmn: Deprecate INI item enable_dynamic_pcie_gen_speed_switch
INI item enable_dynamic_pcie_gen_speed_switch is no longer needed
and hence deprecate it.

Change-Id: I4d00c761fd21353bdd880a9c93f2faf4fc174264
CRs-Fixed: 3068091
2021-11-03 19:45:37 -07:00
abhinav kumar
7a48a8aa35 qcacld-3.0: Update PCL config in FW after roaming
If STA + STA concurrency is in DBS then irrespective of
primary interface configuration, DUT should meet below
expectations:
1. Roaming should get enabled on both the STAs interfaces.
2. Host should ensure that roaming bands are restricted to
   maintain only DBS

Change-Id: Ib28cb232650893e46da0dd8e7d47d3876546a1a1
CRs-Fixed: 3056820
2021-11-03 18:20:22 -07:00
Bapiraju Alla
b3afe1b27a qcacmn: Print FW CRM sub ID version during driver init
During driver load, print FW CRM sub ID value received in service
ready ext event.

Change-Id: I710508c9c12a476690e0379938c30c916293620f
CRs-Fixed: 3067102
2021-11-03 16:15:30 -07:00
Shwetha G K
0d831d42c4 qcacmn: Waikiki CFR changes
Waikiki CFR changes

CRs-Fixed: 3057989
Change-Id: Ib2028ecede35cc2e531a394f5229a71b84757b9f
2021-11-03 12:54:43 -07:00
Shwetha G K
9c320060ac qcacmn: Waikiki CFR changes
Add CFR support inclusing 240MHz & 320MHz for
Waikiki Chip.

CRs-Fixed: 3057992
Change-Id: I87499369a076ca561fea066ebbfc2ebeab854868
2021-11-03 12:54:38 -07:00
Bapiraju Alla
055acf7a87 qcacmn: Notify partner links info in connect response to the supplicant
Fill ML partners info in connect response structure of the connect
notification to the supplicant.

Change-Id: I3b972254138d0f00ef63f2b4d336d142e6d5e2ae
CRs-Fixed: 3036325
2021-11-03 11:31:38 -07:00
Harsh Kumar Bijlani
0807791b80 qcacmn: Add APIs to return all supported rates for a specific mode
Add APIs in order to support TR-069 commands to return all the
supported rates for a specific mode based on gi setting, no. of
spatial streams and channel bandwidth.

Change-Id: If6999e59b8c83d0b5a15054bfdaa97465f8992e4
CRs-Fixed: 3066766
2021-11-03 09:55:39 -07:00
Utkarsh Bhatnagar
8d1f8d1b4a qcacmn: Extract SBS Lower Band End freq
Add support for extracting SBS Lower Band
End freq from rx service ready event.

Change-Id: I402d7519507fbce733a000a546473aa00e8844d5
CRs-Fixed: 3065158
2021-11-03 08:23:25 -07:00
Utkarsh Bhatnagar
efd765307b qcacld-3.0: Fill sbs lowerband end freq
Update policy mgr sbs lowerband end freq
with the value received in FW Rx service ready
event.

Change-Id: I1664876765dcd5217ffce62ec81ba59b36bbaf21
CRs-Fixed: 3065151
2021-11-03 08:23:12 -07:00
Wu Gao
6b5f3433f5 qcacld-3.0: Fix compilation issue about roam offload
This change fixed compilation issue when defined macro
WLAN_FEATURE_CONNECTIVITY_LOGGING but no WLAN_FEATURE_ROAM_OFFLOAD.

Change-Id: I78f58c2bcfffb66ddf9390a8d724821faa90563c
CRs-Fixed: 3066954
2021-11-03 08:23:08 -07:00
Wu Gao
567f10af94 qcacld-3.0: Fix compilation issue about 64-bit division
This change fixed compilation issue about the 64-bit division in
sdxlemur - a 32-bit architecture, which is not defined
"__aeabi_uldivmod" for the 32-bit architecture.

Change-Id: Ief75e7903fe301f5641fa4f734dc8129a7501b7e
CRs-Fixed: 3067887
2021-11-03 08:23:03 -07:00
Neha Bisht
084e26e4d9 qcacmn: Fix double increment of tx ifconfig stats
In ifconfig athX stats, tx packets and bytes were getting double
incremented in NSS offload disabled case. It was due to tx.comp_pkt
stats getting updated both in per packet Tx completion path and in 
Tx per ppdu indication from HTT path.
Fix by updating stats only in the Tx. completion path.

Change-Id: Id75d914874480a4e24ccb13223818b67869eb378
2021-11-03 00:21:45 -07:00
Pragaspathi Thilagaraj
050a4dbaaf qcacld-3.0: Print BTM response for WTC BTM frame also
For the WTC BTM roam trigger, BTM response is not printed.
So print the BTM response logs for WTC BTM frame also.

Change-Id: I679697ec08a42a862c251175261162bc95206d03
CRs-Fixed: 3062727
2021-11-02 21:21:23 -07:00
sheenam monga
a4ba2f1844 qcacmn: Update Regulatory Database to 37th version
Add below changes as part of 37th Reg DB version
    a.) Add superdomain FCC1_6G_09 for US AFC Testing
    b.) Add sub 6G domain FCC1_6G_09 reg rules for new domain.
    c.) Add 6G support for GERMANY, ICELAND, PERU and NORWAY.
    d.) Change reg domain pair id for TANZANIA and SOUTH_AFRICA.

Change-Id: I7af2778954c65f85b727453a0a0527e2d4d09089
CRs-Fixed: 3064525
2021-11-02 19:32:21 -07:00
sheenam monga
00cb0d5ed0 qcacmn: Update Regulatory Database to 36th version
Add below changes as part of 36th Reg DB version
a.) Update FCC1_CLI_LPI_REGULAR_6G to FCC1_CLI_LPI_DEFAULT_6G.
b.) Add sub 6g domains APL3_AP_VLP_6G and APL3_AP_LPI_6G and
    reg rules for new domains.
c.) Add superdomain FCC1_6G_07 and APL3_6G_08 for Brazil and UAE

Change-Id: I2d379762f9d5953c47c88e08511fe227ea25ce85
CRs-Fixed: 3057765
2021-11-02 19:32:17 -07:00
Bapiraju Alla
22979965ce qcacld-3.0: Fix 11BE compilations when kernel doesn't support 11be
Along with 11BE feature macro, check for Kernel 11be macro to avoid
compilation issues when kernel doesn't support 11be.

Change-Id: I9fb84b6263cbdca4cde93e3a581acdbfe0fe2b34
CRs-Fixed: 3066175
2021-11-02 19:32:01 -07:00
Yeshwanth Sriram Guntuka
1ede276269 qcacmn: Add QDF api to get smp processor id
Add QDF api to get smp processor id.

Change-Id: If0187ca1bc609f4cb9107bbb343b2bb180910f46
CRs-Fixed: 3066767
2021-11-02 16:32:07 -07:00
Lincoln Tran
a89e4f0c78 qcacmn: Fix MLO peer manager compilation issue
Fix MLO compilation issue while exporting the symbol
wlan_mlo_link_peer_delete.

Change-Id: I911917ab7f142fdc49ea99e9613ddb6fb86b5ab3
CRs-Fixed: 3067718
2021-11-02 16:32:03 -07:00
Edayilliam Jayadev
31da41ae4e qcacmn: Clamp the FFT bin values before filling SAMP message
Each FFT bin value is represented as an 8 bit integer
in SAMP message. But depending on the configuration,
the FFT bin value reported by HW might exceed 8 bits.
Clamp the FFT bin value between the min and max value
which can be represented by 8 bits. For linear mode,
min and max FFT bin value which can be represented by
8 bit is 0 and U8_MAX respectively. For dBm mode,  min
and max FFT bin value which can be represented by 8 bit
is S8_MIN and S8_MAX respectively.

CRs-Fixed: 3056458
Change-Id: I9ec75f781a130d3ed0d0d9393975fd5874961ce0
2021-11-02 14:56:21 -07:00
Gururaj Pandurangi
8c56c00a0e qcacld-3.0: Revert "Disable 6G security check if RF testmode is enabled"
The RF test mode cfg item is kept as 1 by default and no action is required
during init if it is set.

Change-Id: Ieb561fb81f77470c45df46ee2319ff51c05df742
CRs-Fixed: 3056554
2021-11-02 11:02:21 -07:00
Srinivas Dasari
88a3ff888d qcacld-3.0: Don't proceed with NDP peer handling if NDI is not UP
Firmware might send NDP peer indication/NDP responder response
while NDI deletion is in progress. Currently, NDP peer entry
gets added though vdev is moved to DOWN state and cleanup is
in progress. This leads to stale peer entry on that NDI vdev
and doesn't allow vdev delete when IFF_DOWN comes, as a peer
is present.
Check the vdev state before creating peer for NDP and skip
peer creation if NDI vdev is not in UP state(which indicates
that the vdev down is happening).
Also, don't process the NDP confirm if NDP peer is not created.

Change-Id: I73e79cc33b1a294e3f4a4a6e2f371033862c5709
CRs-Fixed: 3061756
2021-11-02 06:29:20 -07:00
Amruta Kulkarni
ca27f1f305 qcacld-3.0: Update freq param in connectivity log
While logging, scoring info freq param is not updated.
Fix is to add freq info in the log record sent to supplicant.

Change-Id: Id3c0d154e245376f494970c99589db0c3d37f7ac
CRs-Fixed: 3065693
2021-11-02 04:59:56 -07:00