Grafico dei commit

2058 Commit

Autore SHA1 Messaggio Data
Shashikala Prabhu
f7e0de5282 qca-wifi: Move CSA extract API to cmndev
Move CSA extract API to common code.

Change-Id: I27925f3dd21a33cf36ff6fd3bd1b836ac950c794
CRs-Fixed: 2826991
2020-11-30 22:11:22 -08:00
Linux Build Service Account
2b8a916ce6 Merge "qca-wifi: Introduce regulatory APIs to access channel information" 2020-11-30 13:11:07 -08:00
Linux Build Service Account
144e8d38be Merge "qca-wifi: Initialize user retry mpdu queue" 2020-11-30 10:41:39 -08:00
Mainak Sen
79f0560140 qca-wifi: Correct CLI string for tx mode select
Correct cfg80211 CLI string
Change-Id: I81007d20e13d61be3d5207543807b70a953ee628
2020-11-28 19:44:14 +05:30
Manoj Ekbote
1328ea0195 qca-wifi: Initialize user retry mpdu queue
Intialize the retry mpdu queue and add debug prints
to get more useful info

Change-Id: I7dda9d6ddf6e39531911d2e7340c67bb67ac865a
2020-11-27 08:50:53 -08:00
Linux Build Service Account
e8d6678014 Merge "qca-wifi: WMI support for Tx Mode Select" 2020-11-27 07:10:17 -08:00
Vignesh Mohan
a9b8585838 qca-wifi: Introduce regulatory APIs to access channel information
As part of the componentization of channel lists across WIN
components, the existing version of channel list in WIN umac is
removed. Introduce APIs in the regulatory that provide the
required information directly from the regulatory
channel lists.

Introduce the following APIs:
1. wlan_reg_get_txpow_ant_gain
    To get the txpower and antenna gain specified in the regulatory,
    for a given channel.
2. wlan_reg_get_chan_flags
    To get the channel flags (if channel DFS for example), from
    regulatory for the given channel.
3. wlan_reg_get_max_phymode_and_chwidth
    To get the maximum 80211 mode and channel width supported
    by the channel in the given regulatory.
4. wlan_reg_is_phymode_chwidth_allowed
    To check if the given 80211 mode and channel width is supported
    by the channel in the given regulatory.
5. reg_update_max_phymode_chwidth_for_pdev
    To update the maximum 80211 mode and channel width for the
    regulatory, inside regulatory object.
6. reg_modify_chan_list_for_max_chwidth
    Update the regulatory channel list with maximum bandwidth
    for each channel based on the availability of it's
    adjacent channels.

Change-Id: Idb390c10d8901d9e21d4642481168704d7e36333
2020-11-26 14:37:59 +05:30
Mainak Sen
6c990c0cbf qca-wifi: WMI support for Tx Mode Select
When MSCS feature is enabled, Host sends WMI command to
FW to enable Tx Mode switch

Change-Id: Ida559f8972ef8de609578c0e9aa3016116e8a46a
2020-11-25 12:28:04 +05:30
Shashikala Prabhu
68adb6aa00 qca-wifi: Pass vdev_id to FW as part of CHAN_WIDTH_SWITCH command
Populate vdev_id and set vdev_id is valid in WMI_PEER_CHAN_WIDTH_SWITCH_CMDID.

Change-Id: I6c92a595768f0aa8c5f221688d2ceac9c7800329
CRs-Fixed: 2812110
2020-11-24 02:42:40 -08:00
Linux Build Service Account
0dbb451fca Merge "qca-wifi: Add check for FW generated action frames in tx capture" 2020-11-22 22:46:42 -08:00
Linux Build Service Account
b98854c9fc Merge "qca-wifi: Set threshold for WMI diag event queue length" 2020-11-19 20:37:13 -08:00
Padma Raghunathan
675a9a87a8 qca-wifi: Set threshold for WMI diag event queue length
Limit DIAG queue length to avoid memory lockup.

In use-cases where all the cores are busy executing interrupt
handlers and tasklets, work/processes might starve.

To avoid memory being locked up in wmi buf queue which is processed
in work ctxt, it is essential to limit the queue length.

Since highest proportion of the WMI events processed in work ctxt
are FW diag events, to avoid memory lock up, drop FW diag events
when queue length threshold is reached.

Change-Id: I1982eff5bea6b49c0e0b0987c439d2b7af04922e
CRs-Fixed: 2785768
2020-11-19 03:38:52 -08:00
Linux Build Service Account
9e984e1b34 Merge "qca-wifi: no backhaul packet to bridge" 2020-11-19 02:37:49 -08:00
Christopher Chopp
ea10246813 qca-wifi: Add check for FW generated action frames in tx capture
Extend the current check for action frames in tx capture
to include more types of FW generated action frames.
This change adds a generic function to check where action
frames are generated that is easily extended to account
for more types in the future.

Change-Id: I23bb37c5a81b02d2c095060bac909298d1b2283f
CRs-Fixed: 2807802
2020-11-17 10:29:18 -08:00
Nitin Shetty
ba26b63e5b qca-wifi: no backhaul packet to bridge
send received packet to bridge if no backhaul is
enabled for the radio

Change-Id: I07cdf10223e868fe2692efde9909c4c99a3e0fd9
2020-11-16 21:32:55 +05:30
Linux Build Service Account
8773c8c4ba Merge "qca-wifi: Add support for 5-7 channel switch with mode compatibility" 2020-11-16 01:39:35 -08:00
Linux Build Service Account
e569508375 Merge "qca-wifi: Add counter for 11k/v action frames" 2020-11-16 01:39:34 -08:00
Linux Build Service Account
f05788e968 Merge "qca-wifi: Pass 11k/v action frames to Hostapd" 2020-11-16 01:39:33 -08:00
Gyanranjan Hazarika
b0ebda8504 qca-wifi: Add support for 5-7 channel switch with mode compatibility
Add command support to meet the customer use case for switching
channel from 5Ghz to 6Ghz in wideband radio. The switch should
happen conforming to target-band multi-bss mode requirement which
is EMA in 6Ghz

Change-Id: Id55577eb7d0b3424e3b07bcfec054ce9a6556c26
2020-11-13 02:14:24 -08:00
Linux Build Service Account
36b5c09b3b Merge "qca-wifi: Add sens_level cfg80211tool support" 2020-11-12 10:06:47 -08:00
Linux Build Service Account
96ff74b49e Merge "qca-wifi: Disable radar detection after radar found on precac chan" 2020-11-11 01:11:24 -08:00
Srinivas Pitla
4d05abaf4a qca-wifi: fix issue in mpdu_tried_ucast WAR
The earlier WAR was not handling a corner case, where
ba_size equal to mpdu_tried_ucast -1.

This fix updates the check to handle it.

CRs-Fixed: 2813082
Change-Id: Ib69f8232e40ee31bc4a4a2b35ec9e8917195d123
2020-11-09 09:25:55 -08:00
Vignesh U
b8e1892a63 qca-wifi: Disable radar detection after radar found on precac chan
When radar is detected on a zero-wait-precac channel, the precac channel
changes but the phyerror buffers for the previous precac channel keep
coming, affecting the newly configured precac channel and creating false
detects.

Consider, a Cascade AP operating in home channel 36VHT80 and the precac
channel is 52VHT80. When the radar is injected on channel 52VHT80, the
precac channel changes to the next precac channel 100VHT80 but still
continues to receive the queued phyerror buffers, causing radar detects
on channel 100VHT80(false detects with respect to channel 100VHT80).

Disable radar detection after radar got detected on the precac channel.

CRs-Fixed: 2812335
Change-Id: I1e06c53f00e596d9142f3aeb25a00b9da088538b
2020-11-07 11:56:56 +05:30
Neha Bisht
bba089a855 qca-wifi: Change log level of print to dp_info
Change log level of print from qdf_info to dp_info during
rate stats flush to avoid console flooding and backpressure issue.

Change-Id: Ic8a067f989047be1a223af83a2d6d0485dd10ebd
2020-11-06 16:42:59 +05:30
Anirban Sirkhell
73b25de419 qca-wifi: Add counter for 11k/v action frames
Add counters for 11k/v frames sent and received

Change-Id: I738846f914fcd1c84555f00a3bbac0149b0fa21e
2020-11-05 01:35:48 +05:30
Anirban Sirkhell
a646d3ba9d qca-wifi: Pass 11k/v action frames to Hostapd
Pass BTM Query, Response and Neighbor Report Request
to Hostapd if corresponding flag is enabled. By default
handling will be in driver.

Change-Id: Ic7fc1acf26329a48695b3daa40afe04c9e2040b8
2020-11-04 19:56:41 +05:30
Linux Build Service Account
aa4b3c83ee Merge "qca-wifi: Replace WMI_LOGE() with wmi_err()" 2020-11-04 05:37:02 -08:00
aloksing
b1f4cc7f8b qca-wifi: Replace WMI_LOGE() with wmi_err()
Replace WMI_LOGE() with wmi_err()

Change-Id: I875684601dde3a751ad21533f3d284f36affa553
CRs-Fixed: 2810924
2020-11-03 10:16:32 +05:30
narayan
f190983dfe qca-wifi: Add sens_level cfg80211tool support
Add support for configuring RXSOP sensitivity level
using cfg80211tool from userspace.

Change-Id: Ie181737251c73a97863ae29d7dfd34d0d43c35aa
2020-11-02 07:02:49 -08:00
Santosh Anbu
ecc59f3524 qca-wifi: Increase restart request timer to 20s
In independent repeater scenario where STA vdev takes longer for
auth/assoc, and the AP vdevs are waiting on restart request may lead
to restart timeout.

Hence increase restart timeout to 20s which is higher than auth/assoc
timeout.

Change-Id: I5d2a0859e368feda4e1c6d3824eefdbc248b9bac
2020-10-31 01:45:16 -07:00
Linux Build Service Account
2ceba179e4 Merge "qca-wifi: Add support to check NSS WiFi offload status" 2020-10-30 06:38:11 -07:00
Linux Build Service Account
7136ab5e18 Merge "qca-wifi: Add peer authorization command per vap" 2020-10-30 03:09:12 -07:00
Linux Build Service Account
b9db0aa617 Merge "qcacmn: Add support for peer create response event" 2020-10-29 21:06:29 -07:00
Linux Build Service Account
50c89599cf Merge "qca-wifi: Add appropirate check to kickout direct peer" 2020-10-29 04:37:22 -07:00
Naga
3d1c4ee4a0 qcacmn: Add support for peer create response event
Add WMI support to extract data received from fw
for WMI_PEER_CREATE_CONF_EVENTID event id.

Change-Id: Ifcf4c3e2f21be1433b96079405650a3448e0652e
CRs-Fixed: 2797202
2020-10-29 03:01:39 -07:00
Mainak Sen
b9dc91afed qca-wifi: Add peer authorization command per vap
peer authorization support per vap

Change-Id: Ie46a3a4a77059524dbcb83ee826beb3b7caf4219
2020-10-29 14:40:13 +05:30
Linux Build Service Account
e24ab81ff3 Merge "qca-wifi: Fix infinite loop condition in peer_update_rx_rate_stats" 2020-10-28 21:06:32 -07:00
Linux Build Service Account
1265b34293 Merge "qca-wifi: Change return type to QDF_STATUS" 2020-10-28 08:08:35 -07:00
Shiva Krishna Pittala
ec6462e41f qca-wifi: Fix infinite loop condition in peer_update_rx_rate_stats
The loop counter is not incremented in an error path where the peer rate
stats ctx is NULL. As a result, if this error path is exercised,
backpressure is seen on the monitor status ring. Fix it.

CRs-Fixed: 2798226
Change-Id: Iaffc14ad14fb29909459e395c0dfd6811c42ebc1
2020-10-28 00:01:01 -07:00
Jeevan Kukkalli
d4580d9626 qca-wifi: Add appropirate check to kickout direct peer
Add appropriate check to kickout directly associated peer
when it roams to another AP and reachable via TA peer.

Change-Id: I3e7cc0f1f4e4aa3e05fd7b7e823471978d07a64c
CRS-Fixed: 2801038
2020-10-27 05:29:49 -07:00
Linux Build Service Account
4207ea2ebb Merge "qca-wifi: Multi-Link Repeater Enhancements" 2020-10-27 03:07:42 -07:00
phadiman
de33106870 qca-wifi: Add support to check NSS WiFi offload status
Add new command to check if NSS WiFi offload is enabled
or disabled

1. iwpriv wifiX g_nss_wifi_ol
2. cfg80211tool wifiX g_nss_wifi_ol

Change-Id: I0486874bbb794bbcc239f268833176dca8826b5b
2020-10-26 23:08:20 -07:00
Linux Build Service Account
e67282bc26 Merge "qca-wifi: Add ADFS compile-time macros" 2020-10-25 06:36:05 -07:00
Linux Build Service Account
eefea63c00 Merge "qca-wifi: Add host definition for target thermal throttle level" 2020-10-23 12:36:45 -07:00
Vignesh U
692f5fc7ee qca-wifi: Add ADFS compile-time macros
For a 16-MB profile, while insmoding "umac.ko" unknown symbol error for
function "dfs_translate_radar_params_for_agile_chan" is seen.

The actual definition of function
"dfs_translate_radar_params_for_agile_chan" is present in the
dfs_zero_cac.c which is not compiled for a 16-MB profile. Therefore,
the unknown symbol error is seen.

Add ADFS compile-time macros
QCA_SUPPORT_AGILE_DFS and QCA_SUPPORT_ADFS_RCAC to the declaration of the
ADFS specific function dfs_translate_radar_params_for_agile_chan().
As the macros are not present in 16-MB profile, the function becomes an
empty function in the zero_cac.h and definition of the function
dfs_translate_radar_params_for_agile_chan() is present (though empty)
in the umac.ko.

Change-Id: I873231c703796c4ff17ec9a15fe2df7ddde1b8dc
CRs-Fixed: 2801858
2020-10-22 20:16:51 +05:30
Linux Build Service Account
80e25722aa Merge "qca-wifi: fix mpdu_tried_ucast issue" 2020-10-21 13:06:26 -07:00
Srinivas Pitla
c83d9a7536 qca-wifi: fix mpdu_tried_ucast issue
It is found that mpdu_tried_ucast is less than last ba bitmap set,
this is leading inconsistency with mpdus[] array and failed_bitmap.

To address this, on failed_bitmap prep, if mpdu_tried_ucast is less
than last ba bit set, then mpdu_tried_ucast is updated with last ba
bit set.

CRs-Fixed: 2793967
Change-Id: I381b462d0418527dd11ca2c8ae3dc4c8d4bfdba8
2020-10-20 11:28:37 -07:00
Linux Build Service Account
25125317dd Merge "qca-wifi: Remove DA/unused code which is a part of ATF" 2020-10-20 10:08:31 -07:00
Subhranil Choudhury
b7c3f57402 qca-wifi: Multi-Link Repeater Enhancements
1. Remove the  fdb entry linear search.
2. Store the station vap pointers.
3. Add or refresh the secondary Client bridge entries
 to not make them get expired even though traffic is bypassing
 the bridge.

Change-Id: I11a7883d0437794ad8afeb24fc94d77223cf3ad3
2020-10-20 09:53:44 -07:00
Adwait Nayak
5532bbacd9 qca-wifi: Change return type to QDF_STATUS
Maintain harmony in return type as "QDF_STATUS"
for CFR related APIs.

Change-Id: I02378c9818b4282f8d874d8655bc9e2178a2479c
2020-10-19 08:17:09 -07:00