Gráfico de commits

1988 Commits

Autor SHA1 Mensaje Fecha
sheenam monga
f5066f2149 qcacld-3.0: pcl code clean up
In current implementation, validation code of
SCC, MCC, DBS or SBS is repetitive for all
combinations.

Remove repetitive validation code and make
common apis for scc, mcc and dbs validation.

Change-Id: Ic88f01dd9bbcc3d5dcc3453b2c6fef030cfe0305
CRs-Fixed: 3052959
2021-10-19 16:25:21 -07:00
Srinivas Dasari
3d0e41cad1 qcacld-3.0: Abort any ongoing p2p scans while enabling NAN
Framework disables p2p before enabling NAN as P2P+NAN concurrency
is not supported. NAN operations happens through wifihal and p2p
operations happen through wpa_supplicant which are two different
userspace components. Wifihal call to enable NAN may come to host
driver before disabling p2p through wpa_supplicant. There are high
chances for p2p scan to be in running state while NAN enable is
received. Firmware NAN state machine goes to inconsistent state
and disables NAN as p2p scan is running in such cases.
So, stop the ongoing p2p scan before enabling NAN as P2P+NAN
concurrency is not supported currently.
Also, forward the pdev to NAN component inorder to iterate through
all P2P vdevs.

Change-Id: Ibe30a5ebe90514aee4f6721cdc5476570524cad8
CRs-Fixed: 3054576
2021-10-19 16:25:15 -07:00
Yu Tian
25985fb598 qcacld-3.0: Add TX pending indication when sending wake up to FW
FW may experience HWDTIM mode enter and exit, if HOST can't queue
frames fast enough, this will bring 10ms latency for TX under WoW.
This change adds an indication bit to notify FW whether a TX happens
after WoW wakeup, then FW can discard HWDITM and reduce TX latency.
Change-Id: I74f7311fc0639186ee0bca711160bb8c0d5d9fb3
CRs-Fixed: 3055501
2021-10-18 14:51:37 -07:00
Li Feng
1331092b43 qcacld-3.0: Configure magic pattern in line with ini setting
The ini gEnableWoW was designed to enable or disable both magic
pattern match and pattern byte match, but now host ignore the
magic pattern setting from the ini, always enable the magic
pattern instead.

configure magic pattern in line with ini gEnableWoW setting.

Change-Id: I309aff03de9bdbd36fe391784ba54cbfa0cad67b
CRs-Fixed: 3047199
2021-10-18 09:43:05 -07:00
Huashan Qu
a3861249ad qcacld-3.0: Set hs_20_ap in cm_connect_start_ind()
When connect with assoc_ie has HS20_OUI_TYPE ie, hs_20_ap should
be set to true for using afterwards.

Change-Id: Id3003290473bdfa0adb0fc6471ae052e7944ab3d
CRs-Fixed: 3056979
2021-10-18 09:43:00 -07:00
Pragaspathi Thilagaraj
4c4778a509 qcacld-3.0: Add correct attribute for reason codes in logging event
For deauth/disassassociation RX/TX, the connectivity logging event
is sent. In this event the QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE,
is used to send the frame reason code. But userspace expects
QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE attribute.

Fill QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE instead of
QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE.

Change-Id: I90d58f251f0e2d4647cbde3c76d4a22779c97290
CRs-Fixed: 3054797
2021-10-15 15:31:48 -07:00
Utkarsh Bhatnagar
bec3468f4e qcacld-3.0: Add support for Lower and Upper share
For SBS Frequency range, the frequency range can
be of Either Lower 5Ghz Frequency shared with
2.4Ghz Frequency or Upper 5Ghz Frequency shared
with 2.4ghz phy.
Add support for both the shares.

Change-Id: Ibf17cf155e52534e029bd596f70349faf8cc03ee
CRs-Fixed: 3056464
2021-10-14 19:23:52 -07:00
Pragaspathi Thilagaraj
c3548d50ff qcacld-3.0: Fix race between dequeue logs and deinit connectivity logging
As part of stop modules, the deinit connectivity logging happens and
the queue, all the pointers are deinitialized. But while
initializing the write pointer the write pointer spinlock is not
acquired. This results in null pointer dereference of write_ptr
from other context.

Protect the access to the write pointer before setting it to
NULL in wlan_connectivity_logging_stop().

Change-Id: I69dc57b9e661004203f58754824496953105726f
CRs-Fixed: 3054306
2021-10-14 19:23:48 -07:00
Utkarsh Bhatnagar
27e63bcaeb qcacld-3.0: STA SBS concurrency changes
In if_mgr_validate_candidate() adds SBS
check to allow a STA connection on SBS
channel when MCC is not allowed .

Change-Id: Ia8007a4beabf546ff293986124f4ef985ccaeacc
CRs-Fixed: 3052797
2021-10-14 10:16:12 -07:00
Aditya Kodukula
25130a97ab qcacld-3.0: Correct the kernel doc of ICMP APIs
Correct the Kernel documentation of ICMP feature APIs.

Change-Id: Iec2fe332c24e11835ebd6546dda40603f6f0173d
CRs-Fixed: 3055077
2021-10-13 17:42:25 -07:00
Pragaspathi Thilagaraj
180fd2e36d qcacld-3.0: Fix connectivity logging roam result and roam reason
Roam result is printed as failure always since the
is_roam_successful flag is not passed to the
roam successful attribute to userspace. For roam
reason, the wrong attribute is used to convert the roam
sub reason from driver values to userspace values.
In WTC roam, the sub reason & vsie is not filled
from the right roam trigger TLV.

Fix the connectivity logging roam result and roam
subreason and WTC values passed to userspace.

Change-Id: Id276054868d907a801e87c1fd9cd7bb3b7c4e150
CRs-Fixed: 3051447
2021-10-13 15:22:45 -07:00
Tushnim Bhattacharyya
f71379600b qcacld-3.0: Set default value for bss_color_collision_det_sta to 1
For STAUT to follow the rules governing OBSS Narrow Bandwidth RU in
UL OFDMA Tolerance Support, bss_color_collision_det_sta to be set
to 1.

Change-Id: Ibe283f8bec9febbaf9a876d1afd55389ea4c971d
CRs-Fixed: 3053624
2021-10-12 11:02:34 -07:00
Surya Prakash Sivaraj
1840b420af qcacld-3.0: Update VHT IE with highest supported LGI rate
Currently, the Rx/Tx highest Long GI data rate field in
the  VHT IE is filled with short GI data rate. Therefore,
change the highest supported data rate back to LGI data
rate.

Allow the short GI rate to be filled as the highest supported
rate in the wiphy if short GI is enabled.

Change-Id: Ie0652b4cdeef370cb8ad3d11b5d36b6959c1cbcb
CRs-Fixed: 3053946
2021-10-12 04:51:55 -07:00
Aditya Kodukula
37026bc3ff qcacld-3.0: Add Support to offload icmp feature to fw
Add support to offload icmp feature to fw in case of
suspended state to avoid high power consumption.

Change-Id: I3ff19d71eac530c75be57e6b52b975e755ff2a53
CRs-Fixed: 3042452
2021-10-12 00:08:44 -07:00
Ashish Kumar Dhanotiya
fbd44f9434 qcacld-3.0: Pass correct band info to roam set band
Currently driver always sets band value as REG_BAND_MASK_ALL
to roam set band which is incorrect.
Set correct band value from regulatory to roam set band.

Change-Id: I2cfb0c92e1eca549175135811d0122162281ba06
CRs-Fixed: 3050318
2021-10-11 12:14:32 -07:00
Ashish Kumar Dhanotiya
693f6400d1 qcacld-3.0: Add ini to enable/disable vht mcs 10 and 11 support
Currently there is no ini to enable/disable vht mac 10, 11
and this feature is completely based on FW capability.

Based on current requirement add support to enable/disable
vht mcs 10/11 feature from ini.

CRs-Fixed: 2861854
Change-Id: I350daea8a2f81bfeac25ccdda026d1a5d1c133e3
2021-10-08 23:15:43 -07:00
sheenam monga
ed0d0fce88 qcacld-3.0: Add support for for 3rd connection in DBS
Currently, If CLI+CLI is present in 5G SCC or 5G MCC then
3rd connection should come in DBS. Hw mode change is required
to come up in DBS. As entries for CLI+CLI are missing in
policy_mgr_next_action_three_connection_table_type, by default
next action is updtaed as NO_OP and hw mode change fails due to which
connection fails.

Fix is to add CLI+CLI entries in
policy_mgr_next_action_three_connection_table_type to avoid connection
failure.

Change-Id: Ia935866506a62e54fb0e410df81a367e3e5b56b1
CRs-Fixed: 3052752
2021-10-08 20:59:11 -07:00
sheenam monga
550b13ea82 qcacld-3.0: Add support for 3rd mode when CLI+CLI exists
Currently support is not there for 3rd mode when CLI+CLI
connection is there on DUT.

Update PCL table for 3rd mode when CLI+CLI exsits and add
support to fetch index based on new connection band and
concurrency.

Change-Id: I6041c40b3208d0b33dff2b4f9dc854d2d2dc17a1
CRs-Fixed: 3050537
2021-10-08 18:09:28 -07:00
Surabhi Vishnoi
6cdd0dd785 qcacld-3.0: Deliver tx offload mgmt pkts based on filter
Deliver tx offload management to mon interface in packet capture
mode based on config filters added by vendor command.

Change-Id: Id60529b963e3021d7744858980b316b546606550
CRs-Fixed: 3045460
2021-10-07 09:19:43 -07:00
Surabhi Vishnoi
f830f1fc71 qcacld-3.0: Add check for mgmt/ctrl tx packets in pkt capture
Deliver management and control tx packets to monitor interface
only if corresponding filter is set by vendor command.

Change-Id: Ifc7f0ecfce7d7a105902e8a9ce522ba0325ee9cd
CRs-Fixed: 3044855
2021-10-07 09:19:38 -07:00
Surabhi Vishnoi
aa11b6825c qcacld-3.0: Add check for mgmt/ctrl rx packets in pkt capture
Deliver management and control rx packets to monitor interface
only if corresponding filter is set by vendor command.

Change-Id: I9aeb8071cfc6207359f8d7ec74af2a21e2742d1e
CRs-Fixed: 3044857
2021-10-07 09:19:34 -07:00
Deeksha Gupta
1bdf606dab qcacld-3.0: Limit ROC for listen if NAN or NDI present
In P2P, if NDP is present, limit max ROC duration to
400ms on DBS and 250ms on non-DBS case.
If NAN is present, limit max ROC duration to 450ms on DBS
and 300ms on non-DBS case.

Change-Id: I2e943d2f55984464812bba16ca78dfab8681cf30
CRs-Fixed: 3046904
2021-10-07 07:05:30 -07:00
Surya Prakash Sivaraj
2846627650 qcacld-3.0: Cleanup CSR/LIM for Roam sync indication failure in CSR
Currently, failure in csr_roam_synch_cb is not handled, therefore
failure during roam sync indication processing in CSR, leads to
out-of-sync between LIM and CSR sessions.

Handle the failure in csr_roam_synch_cb, by aborting the
roam complete notification to FW, and then process HO failure from
FW to cleanup LIM and CSR which will hold different BSSID profile.

Use vdev id instead of BSSID to retrieve/delete the LIM session.

Change-Id: I5ff2280e7ba1a8cb8e44c0c6b70647bf12b6ef31
CRs-Fixed: 3046370
2021-10-07 00:20:36 -07:00
Lincoln Tran
e3a6adfe58 qcacld-3.0: Handle MLO STA disconnect from south
Currently, southbound MLO disconnects are not handled properly because
the partner link is not being disconnected. To fix this, update
current calls to cm_disconnect to use mlo_disconnect instead, because it
can handle both legacy and MLO disconnections.

Change-Id: If908e2391290fd4a328f3d7d213c5ef6c1f5452c
CRs-fixed: 3029864
2021-10-06 20:03:12 -07:00
Will Huang
83e382dc2f qcacld-3.0: Disable AP+AP+STA SCC/MCC on same mac
3 connection SCC/MCC on same mac is not prefer, if allow STA connect to
different channel of AP+AP SCC channel on same mac, there is no
implementation to restart SAP on new channels to avoid MCC.

Based on change Id2e9ad7d17bab6ea0aff6913b25f0eb330dc6c13,
fix is to change third connection dbs pcl table, only allow STA connect
on different band. For SBS capable chip, STA connect on same mac is
allowed, so don't change sbs pcl table.

Change-Id: I0229ae710b793e8ecd2240c37d7ca00d7694bb44
CRs-Fixed: 3039787
2021-10-06 04:22:23 -07:00
Srinivas Dasari
fbd5ee5c48 qcacld-3.0: Cleanup ROAM_TARGET_IF_CONVERGENCE usage
wma to target_if convergence code is guarded under the feature
flag ROAM_TARGET_IF_CONVERGENCE and it's is enabled currently.
Remove the flag usage and remove the deprecated code(else part)
also.

Change-Id: I6973d9c366ec6a9c6164dd19f6f4775dd3ebf5f0
CRs-Fixed: 3049942
2021-10-06 00:02:06 -07:00
sheenam monga
898339bbbc qcacld-3.0: Add support for STA+GO and CLI+GO for liberal mode
Currently in liberal mode STA+GO and CLI+GO scenario is not
handled, so when sta is there and Go tries to come up then
GO should follow STA or CLI's channel in case of force scc
but as handling is not there so Go doesn't consider scc
channel.

Fix is to add handling of STA+GO and CLI+GO for liberal mode.

Change-Id: I227fb0661c5c3a41b296fd0c954ac87675f28ed6
CRs-Fixed: 3048501
2021-10-05 15:22:53 -07:00
Balaji Pothunoori
5e3247e93f qcacld-3.0: update default addba response rx aggr size to 256
update default addba response rx aggregation size to 256.

Change-Id: Ie79bd9ce6d5e5a95e706c9bda3124bb3fc913ce5
CRs-Fixed: 3050726
2021-10-05 13:07:33 -07:00
Pragaspathi Thilagaraj
330a20ccff qcacld-3.0: Retain WTC mode value after vdev delete
After mac randomization, the change interface causes
the WTC mode to be reset as part of the hdd_init_station_mode()

Initialize the WTC mode during start modules as part
of the mlme component cfg values population.

Change-Id: I4a57c29053f0100c14cef067952d49cecbdc8ea5
CRs-Fixed: 3047594
2021-10-05 13:07:28 -07:00
Vulupala Shashank Reddy
b1e8b3f39e qcacld-3.0: Add filter for data packets in packet capture mode
Deliver data packets to monitor interface only if
corresponding filter is set by vendor command.

Change-Id: Ibf24349d17d1e649819447b1cde36a834e5579a4
CRs-Fixed: 3046233
2021-10-05 09:52:04 -07:00
Liangwei Dong
26da9327ad qcacld-3.0: Update SSID to vdev for roam sync
During different SSID roaming the SSID maybe changed,
save ssid from beacon to roam sync ind struct and update
to mlme.

Change-Id: I83522334a2b86de13584ef4b5f55e6df68ec261a
CRs-Fixed: 3047205
2021-10-05 09:51:58 -07:00
Vulupala Shashank Reddy
f29e867e6b qcacld-3.0: Add check for data tx rx based on vendor command
This commit adds check for data tx and rx packets based on vendor
command received from user.

Change-Id: Ieddb96d8778131ec5876c55462b518e1db552f57
CRs-Fixed: 3046231
2021-10-05 05:06:38 -07:00
Vulupala Shashank Reddy
15f71d055b qcacld-3.0: Add tgt support to send beacon report period to FW
Add tgt support in packet capture component to send user
configured beacon report interval to FW.

Change-Id: Ibeb9f9a7f9ad2c2afa6929c492bd1029784b5f9e
CRs-Fixed: 3046224
2021-10-05 05:06:33 -07:00
Vulupala Shashank Reddy
e5e7e8049f qcacld-3.0: Add support to send config to FW based on filter
In packet capture component add support to send ctrl and beacon
frames config to FW based on frame filter received from user through
vendor command.

Change-Id: Ie45ea2135e237a156fb60663e3f85cc601490e4a
CRs-Fixed: 3046222
2021-10-05 05:06:28 -07:00
Vulupala Shashank Reddy
76dfbb1112 qcacld-3.0: Add support to send mode to FW based on frame filter
In packet capture component add support to send data and mgmt
mode to FW based on frame filter received from user through
vendor command.

Change-Id: Ib6d0d8abe53c29ea6c52900c628d87b603baf1e3
CRs-Fixed: 3046220
2021-10-05 05:06:23 -07:00
Utkarsh Bhatnagar
29ebd12842 qcacld-3.0: Fix logic for filling DBS/SBS freq range
Fix logic for filling DBS/SBS freq range at the time
of init from mac phy capabilities.

Change-Id: I6e6bc2ea5fa2dd349337d663c813ff473ce787a4
CRs-Fixed: 3049819
2021-10-05 05:06:18 -07:00
Utkarsh Bhatnagar
49d461ba28 qcacld-3.0: Dump SBS concurrency
Add condition in policy_mgr_dump_current_concurrency()
so as to dump SBS concurrency as well.

Change-Id: I64c7d5623df57e4c1812f21fac63ea55fbaee4c8
CRs-Fixed: 3048236
2021-10-04 16:13:42 -07:00
abhinav kumar
95a959d694 qcacld-3.0: Prepare scan filter freq list only when STA is present
Prepare scan filter frequency list only if STA + STA councurrency
present.

Change-Id: I4b9f8e57f559291cf778a7e9e80309ce10c3894b
CRs-Fixed: 3049000
2021-10-04 11:39:50 -07:00
Utkarsh Bhatnagar
ba429d18b8 qcacld-3.0: Use policy_mgr_are_sbs_chan() for valid SBS channels
Use policy_mgr_are_sbs_chan() to check for valid 5/6 Ghz
SBS channel instead of WLAN_REG_IS_FREQUENCY_VALID_5G_SBS
which will only check for 5Ghz SBS channel

Change-Id: I1c2ee1dffac1f4a8619e02ebc342e27af61a63d2
CRs-Fixed: 3047071
2021-10-01 23:39:20 -07:00
Utkarsh Bhatnagar
1fde9cdcbf qcacld-3.0: Add Policy Mgr Util APIs for SBS
Add Policy Mgr Util APIs such as:
	policy_mgr_are_2_freq_on_same_mac()
	policy_mgr_are_3_freq_on_same_mac()
	policy_mgr_are_sbs_chan()
	policy_mgr_is_current_hwmode_dbs()
	policy_mgr_is_current_hwmode_sbs()
	policy_mgr_are_3_freq_in_freq_range()
	policy_mgr_are_2_freq_in_freq_range()
	policy_mgr_is_cur_freq_range_sbs()

Change-Id: Ic85e48fa48c1c0cc7fa9e7ca6c8dbf2c8abfb94a
CRs-Fixed: 3047019
2021-10-01 10:59:35 -07:00
Vulupala Shashank Reddy
924b163c6c qcacld-3.0: Set frame filter based on vendor command
Currently, packet capture mode frame filter configuration
is done based on ini. This change enables user to set the
packet capture mode frame filter configuration at runtime
through vendor command
QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE.

Change-Id: Ifd40a9295394324b0cde4ff15bb55ea77851a6bc
CRs-Fixed: 3046091
2021-10-01 07:51:51 -07:00
Srinivas Girigowda
a58817a89b qcacld-3.0: Replace WLAN_ALL_SESSIONS_DIALOG_ID with TWT_ALL_SESSIONS_DIALOG_ID
There are duplicate macros for the same purpose, hence
replace WLAN_ALL_SESSIONS_DIALOG_ID with TWT_ALL_SESSIONS_DIALOG_ID.

Change-Id: I63130869eed8dffcce85fe6a04586592ab3eaca2
CRs-Fixed: 3047686
2021-09-30 15:14:58 -07:00
Alan Chen
fb87ff490c qcacld-3.0: Enable more WoW logging modules
Enable more WoW logging modules to help with debugging by changing ini
gFwDebugWowModuleLoglevel=1,3,5,3,18,1,19,3,31,1,36,1,57,3.

Change-Id: Ib42e16188c2572d04971be0e28836797286faeac
CRs-Fixed: 3042611
2021-09-30 15:14:53 -07:00
bings
a44cf88b36 qcacld-3.0: Implement legacy commands of easy mesh
Provide below APIs for easy mesh.
API to get the current frequency of the given VDEV.
API to get acs status of the given VDEV.
API to get cac status of the given VDEV.
API to get/set bandwidth of the given VDEV.
API to get band information of the given VDEV.
API to get connected STA count of the given VDEV.
API to get BSSID of the given VDEV.
API to get SSID of the given VDEV.
API to set channel of the given VDEV.
API to get/set cac timeout of the given VDEV.
API to get/set country code of the given VDEV.

Change-Id: Ia0bd201ad8155a66a4a8c5517f6fa43f3f358505
CRs-Fixed: 3027192
2021-09-30 10:51:28 -07:00
Jyoti Kumari
25f4f0840f qcacld-3.0: Send PCL list to fw after STA connects in open mode
In open mode, driver sends PCL list to firmware as part of STA
connection completes. To send the PCL list, driver checks whether
active session increases or not. But in current scenario, first
STA connection complete happens and then active session increases
which results no PCL list to firmware.

As part of fix, first increase the active session and then do STA
connection completes so that PCL list will be send to firmware
after successful STA connection in open mode.

Change-Id: Ie920aad7d1d693f04e5b4c13806ec09078ffd8c9
CRs-Fixed: 3042257
2021-09-30 03:09:59 -07:00
Alan Chen
0c0edb5670 qcacld-3.0: Always enable WoW for RTPM suspend
gSuspendMode is for system suspend to choose between WoW and pdev
suspend. For RTPM suspend, should always enable WoW.

Change-Id: Ibf95ca79ded73f9c68e14b8dac4ec68d979f9db6
CRs-Fixed: 3047812
2021-09-30 01:00:01 -07:00
abhinav kumar
0fae493005 qcacld-3.0: Register DSCP action frame for wake up
Currently, the bitmap of action frames that can wake up the
host during suspend is sent via the wmi command
WMI_WOW_SET_ACTION_WAKE_UP_CMDID. This bitmap doesn't include
DSCP action frames so currently the host doesn't wake up for
DSCP action frames when in suspend mode.

Enable wake up for DSCP action frame for runtime PM as well
as for wow mode.

Change-Id: I51ba3e8ef52755af25ed922161028dfbaccaa250
CRs-Fixed: 3046595
2021-09-29 17:20:15 -07:00
Yu Wang
d3a8dfe1b6 qcacld-3.0: update rates set on connect success
Update operational rates set, extended operational rates set
and MCS based rates set in VDEV MLME legacy priv object on
connect success.
Refine the APIs for fetching these rates.

Change-Id: I7697b3d2e26e2fc565a2e672afe19f255af89d7e
CRs-Fixed: 3044036
2021-09-28 21:11:56 -07:00
Pragaspathi Thilagaraj
7e90b8b5f5 qcacld-3.0: Fix missing attributes in connectivity logging events
Fix few missing attribute in below connectivity events:
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE
QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP

Also send the roam candidate info properly to userspace.

Change-Id: Ia9c4f095316adf8f40294f1e119cad648749bb72
CRs-Fixed: 3037650
2021-09-28 21:11:51 -07:00
Deeksha Gupta
6c451072ad qcacld-3.0: Fix possible OOB in extract_peer_stats_count_tlv
Currently in function extract_peer_stats_count_tlv,
num_peers is copied directly to wmi_host_stats_event
structure without any validation which may cause
out of bound issue if num_peers provided in fixed
param becomes greater than actual number of peer
stats info.

Fix is to validate num_peer_stats_info before populating
stats_param->num_peer_stats_info_ext.

Change-Id: Icfb1c4fd34d3ec9120064e14bb65e35f8539f7fd
CRs-Fixed: 3032139
2021-09-28 11:53:43 -07:00