提交图

2781 次代码提交

作者 SHA1 备注 提交日期
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
Bing Sun
00740c5de2 qcacld-3.0: Add API to get/set HT20/40 mode for easymesh
Add API to get/set HT20/40 mode for easymesh AP mode

Change-Id: Ic6b06b4bd05003537939a77cdd8daa82d2ecc5fa
CRs-Fixed: 3034726
2021-09-30 10:51:34 -07:00
Utkarsh Bhatnagar
b133ed84cb qcacld-3.0: Fill Current MAC Frequency Range
During wma_pdev_hw_mode_transition_evt_handler()
get the freq range from mac_freq_mapping[] present in
 wmi_pdev_hw_mode_transition_event_fixed_param and  pass
till policy_mgr_hw_mode_transition_cb() and update
cur_mac_freq_range[MAX_MAC] from it. if no freq range
provided (legacy chipsets) then use
freq_range_caps[MODE_HW_MAX][MAX_MAC] to fill the
range depending on the new HW mode.

Change-Id: I145d48052ce37724b0f697c19a1041f5a908cb54
CRs-Fixed: 3044976
2021-09-27 20:09:50 -07:00
Sai Pavan Akhil Remella
41300fcf7c qcacld-3.0: Update scan result APIs to map MDID in PMK cache
PMK stale entry will be updated in driver by framework after
disconnection with AP. Since there is no connected profile
in driver no MDID is associated. On new PMKSA addition in
driver it will check for cached entry based on MDID and
remove older one. This commit associates MDID to the cache
entry from the scan result if no connected profile is
present.

Change-Id: I9e8362387a53f622b9c52c4ba994939cabf244aa
CRs-Fixed: 3030376
2021-09-21 09:30:12 -07:00
Will Huang
5936edf256 qcacld-3.0: Add H2E require flag to extended support rate
If SAE/H2E required by hostapd configure, it must populate in
supported rate or extended support rate set, add host driver support
to check this flag and populate it in extended support rate set.

Change-Id: Id75b5743e93a1a0f1d13150d5436d256e2ca117c
CRs-Fixed: 3016492
2021-09-17 01:18:06 -07:00
Bing Sun
5a436dd523 qcacld-3.0: ARP response dropped at host driver
ARP response dropped at OSIF due to non-availability
of sta entry with MLD address.
Added sta entry in OSIF/HDD context with MLD address.

Change-Id: Iff70197ca5707b88ea80b42a60a2b1fb383f00a9
CRs-Fixed: 3017249
2021-09-09 01:13:38 -07:00
Pragaspathi Thilagaraj
100c310363 qcacld-3.0: Set PS config per vdev
Currently the PS config received from kernel/userspace is set
to mac_ctx globally. This causes PS config set for one vdev to
override on the other vdev.

To avoid this, set the PS config per vdev.

Change-Id: I6a2e2a9d8fb67b94d9d5f1d4164077990bdaf4a5
CRs-Fixed: 3007060
2021-09-01 14:02:27 -07:00
abhinav kumar
81f39a5be4 qcacld-3.0: Allow ADDROAMSCANFREQUENCIES command after SET
Whenever the host receives the SETROAMSCANFREQUENCIES command,
the host sets ROAMSCANCONTROL to 1 internally. This results
host ignore the ADDROAMSCANFREQUENCIES command if the specific
channel list is already configured.

As per new requirements, the host should not ignore any
ADDROAMSCANFREQUENCIES command which comes after
SETROAMSCANFREQUENCIES.

Change-Id: I9896ff21cdf97ebfcdcf5b198e981f5bd2f501c6
CRs-Fixed: 3022063
2021-08-31 20:04:32 -07:00
abhinav kumar
56f4ef74eb qcacld-3.0: Remove ioctl cmd SETROAMSCANCHANNELS in driver
Remove ioctl cmd SETROAMSCANCHANNELS in the driver as this
is no longer required from Android S onwards.

Change-Id: I904b7a5407997b07c23a40f14d6c7328ec9de8ea
CRs-Fixed: 3021662
2021-08-31 20:04:20 -07:00
Amruta Kulkarni
b62a42517c qcacld-3.0: Fix compilation issue in sme
Declare sme_update_bfer_eht_cap() api static to fix
compilation issue.

Change-Id: I7061860d3cd8fdd9be532e650af7b7fc267843a5
CRs-Fixed: 3018138
2021-08-20 15:13:04 -07:00
Utkarsh Bhatnagar
d790174870 qcacld-3.0: Move get qos related API to LIM from CSR
Move get qos related API to LIM from CSR.

Change-Id: I44f32ea6588bebd2205bccf62d2267958884f260
CRs-Fixed: 3017623
2021-08-19 17:34:11 -07:00
Abhishek Singh
e39f095832 qcacld-3.0: Remove unused QOS code from SAP flow
Remove unused QOS code from SAP flow.

Change-Id: I255f28b7dab5a666cf086f8af27d3d04ef791d10
CRs-Fixed: 3016885
2021-08-19 17:34:06 -07:00
Mohammed Ahmed
03abb282d0 qcacld-3.0: Fix incorrect layering in scan component
Replace ucfg api call with wlan api calls for internal components.

Change-Id: Ie29483e9d80473ea54f8c3cdf350cfed3295d92b
CRs-Fixed: 3011182
2021-08-19 02:13:58 -07:00
Kiran Kumar Lokere
1cd5123e4a qcacld-3.0: Config support for punctured preamble Rx HE cap
Add configuration support for punctured preamble Rx HE capability.

Change-Id: Ia4df4b6d2ecc45df6392252e2e705cbeae413f24
CRs-Fixed: 3016538
2021-08-18 23:55:04 -07:00
Kiran Kumar Lokere
a70df38665 qcacld-3.0: Config support for BTWT and Rx control frame to MBSS
Add configuration support for broadcast TWT support and Rx control
frames to MultiBSS HE capabilities.

Change-Id: I2b3075a21c919c120e7a1ff674ac33fdd5d73801
CRs-Fixed: 2979513
2021-08-18 23:55:00 -07:00
Deeksha Gupta
a6a66909f0 qcacld-3.0: Handle TWT session if power save mode disable
In case if .set_power_mgmt command comes with ps disable,
then driver needs to teardown all existing twt sessions on
STA interface and if any TWT setup request command comes
after ps disable then also driver rejects the command.

Change-Id: Ib7c86fd257c52b9bac57124b744dc7a9e8405560
CRs-Fixed: 2997260
2021-08-18 21:03:59 -07:00
Utkarsh Bhatnagar
235135f84d qcacld-3.0: Fix unnecessary logs in connect path
Fix unnecessary logs in connect path.

Change-Id: I60a5e7380eccbe0406e45da398f1f690b09ce820
CRs-Fixed: 3016952
2021-08-18 18:43:27 -07:00
Jyoti Kumari
6209487c3c qcacld-3.0: Disable beamformer for single chain
If there is single chain support then driver should disable
beamformer instead of enable

As part of fix, check the number of chains by intersecting the
firmware capability and ini config. If it is 1 then set
su_bformer, mu_bformer and num_soundingdim as 0

Change-Id: I84434c741cbf774f368657b2c57668f6e7b99991
CRs-Fixed: 3003257
2021-08-18 14:21:01 -07:00
Kiran Kumar Lokere
dec08a2999 qcacld-3.0: Configure FW to prevent PM during TWT suspend
Configure FW to prevent entering into power save during the
TWT suspend and resume when the STA role is testbed device.

Change-Id: If0d1d93076d60a3cd72e5c07f7e5b8519a039988
CRs-Fixed: 2995102
2021-08-18 12:07:58 -07:00
Bapiraju Alla
6874af8035 qcacld-3.0: Fix ac fallback issue when TSPEC id deleted
When TSPEC session is deleted, the access category of the data packets
should be downgraded to next lower AC. But this is not happening due to
acm mask is not getting updated when bss descriptor is NULL.

To fix this ssue, update acm mask from bss descriptor only when beacon
IEs are not present.
Also move qos related logic to LIM and bring missig changes which were
there before connection manager.

Change-Id: I9da80cf492b01762b4cc0a7b73271a0f5fe4b4a4
CRs-Fixed: 3011069
2021-08-18 12:07:53 -07:00
Bapiraju Alla
aaff44964d qcacld-3.0: Create STA self peer with MLD mac address
For station case, create self peer with MLD MAC address.

Change-Id: I53b545763f15df5650e8b4b3dc7ea6ffddc88228
CRs-Fixed: 2994409
2021-08-11 01:33:11 -07:00
Kiran Kumar Lokere
e922d3148f qcacld-3.0: Fix the 6G security check config setting
Enable the 6G security check config setting in reset defaults.

Change-Id: I514754a965204c3d27bfdd5ca6dc5e07e95bdd7f
CRs-Fixed: 2985397
2021-08-10 17:58:03 -07:00
Will Huang
08dab6a394 qcacld-3.0: Update country code from beacon when do rrm scan
The RRM request may have different country code with DUT internal
regdb configure, use country code from beacon IE if it is present,
otherwise use internal country code to verify op class of neighbor
report channel list.

CRs-Fixed: 2997474
Change-Id: I35a62d9791f08d26dd8a892739612eb422805523
2021-08-08 21:00:29 -07:00
sheenam monga
65ff004e45 qcacld-3.0: validate ap ocv capa before sending rsn to fw
Currently driver sends rsn caps to fw via
WMI_VDEV_PARAM_RSN_CAPABILITY without validation of ap
capability to support ocv which may cause issue during csa.
when ocv cap is set in vdev param, then fw does sa query and
may not get any data if ap doesn't support ocv which may lead
to disconnection.

Fix is to set ocv capability in rsn based on ap capability to
avoid unwanted disconnection.

Change-Id: I90f9ccffb00878592179a3159adee0b3199555a3
CRs-Fixed: 3008137
2021-08-07 13:41:45 -07:00
Kiran Kumar Lokere
f4ed112b3c qcacld-3.0: Add support to configure bss max idle period
Add support to configure the bss max idle period for STA.

Change-Id: Ifc56f6513a2b643ab574937c5216b53bdea1d2c5
CRs-Fixed: 2829159
2021-08-05 15:13:22 -07:00
Abhishek Singh
19c5bff34a qcacld-3.0: Enable OBSS scan for open mode after connection
Enable OBSS scan for open mode after connection and optimize the
logs in OBSS path.

Change-Id: I91eefc2fe368f5f92e7345aed87591a8b3fdd913
CRs-Fixed: 3006209
2021-08-03 19:54:27 -07:00
Pragaspathi Thilagaraj
4543b8e423 qcacld-3.0: Update pmk cache only for connected BSSID
In OKC enabled cases, when multiple pmk entries exist, the user
space sends set_pmksa command for BSSID other than the connected
bssid. In that case driver updates the global pmksa cache with
the new PMK received for the non-connected BSSID. This results
in invalid pmk sent to firmware.

To avoid this, update the pmk cache only for connected BSSID.

Change-Id: I006595ea5b913d439007a8fb9d767454a71eeac1
CRs-Fixed: 2937182
2021-07-23 05:34:19 -07:00
Jyoti Kumari
f93a29459a qcacld-3.0: Add support for TWT ack event
In case if TWT command (i.e setup, terminate, pause, resume,
nudge) comes from userspace and if the firmware is in below mode
1. scan in progress
2. roam in progress
3. CSA is in progress
4. any other error
then the command needs to be rejected in userspace context

Synchronize the TWT commands so that whenever command goes from
driver to firmware, then driver will receive ack event first
followed by respective event (i.e add dialog, delete dialog,
pause, resume, nudge) with below condition
1. If driver receives the ack event as successful then driver
   waits for this ack event, respective event with status of the
   TWT action frame over the air is expected.
2. If driver receives the ack event as failure then it will
   reject the TWT command request in userspace context.

Change-Id: Ib68b89b74b5e44f28106884efd7412cee49f5bd8
CRs-Fixed: 2987978
2021-07-20 11:08:57 -07:00
Arun Kumar Khandavalli
a019216f89 qcacld-3.0: Remove mac address field from the csr session
csr has a mac address field which is redundant, the same can be
retrieved from the vdev object.

Hence remove the mac address field from the csr and update the same
from the vdev object.

Change-Id: I948cf858ddb26795e236aa4099186e5d10f504a6
CRs-Fixed: 2990480
2021-07-20 08:28:18 -07:00
Srikanth Marepalli
0ec902c074 qcacld-3.0: Invalid pmkid in the FT-EAP disconnection case
During FT-EAP roaming after session timeout if the FTIE received
in the EAPOL of full EAP is improper, the supplicant would
disconnect the AP with the reason FTIE mismatch.
During this disconnection supplicant flushes all the existing PMK
cache entries and eventually the framework would add these cache
entries again (apparently, the current entry would be with the
older PMK). On this addition to the driver, there is no connected
profile and thus no MDID is associated to this PMKSA entry(AP1-PMK1).
Further, on the fresh (Full EAP) connection to the AP2 with the
same MDID, a new cache entry gets added and thus MDID from the
connected profile gets associated with the PMKSA cache entry. At
this point of time, there are two PMKSA cache entries (AP1-PMK1
without MDID and AP2-PMK2 with MDID).
Adding further, if the incorrect PMK (without MDID / stale entry)
i.e. PMK1 is given to the firmware on the RSO command for the
specific BSSID (here AP1) during roam, further roams shall be
calculated with this PMK1 and result in to the invalid pmkid
issue.
Thus, avoid this situation by removing that stale PMKSA entry in
the driver and this entry can be deleted only when it is associated
with the MDID. Driver on the new pmksa addition shall check for the
matching pmksa cache entry with the MDID and delete the earlier ones.
To associate the MDID, this commit checks for the same from the scan
entry of the BSSID, if there is no connected profile for the same
(this happened when the framework has added the cache entry when in
the disconnected state).

Change-Id: If81d66059173dda8d7a2940ca10dc96ef16e125c
CRs-Fixed: 2972115
2021-07-14 20:14:22 -07:00
Utkarsh Bhatnagar
7f9ad91112 qcacld-3.0: Move sme_ft_api to connection manager ucfg api
Move sme_ft_api to connection manager ucfg apis.

Change-Id: If710be0d8a4a9d45d37f588389e40f66c62c7487
CRs-Fixed: 2990112
2021-07-14 07:25:23 -07:00
Abhishek Singh
2a28a53ee0 qcacld-3.0: Remove unused functions and structures from CSR
Remove unused functions and structures from CSR.

Change-Id: I0441a74423294cdbe11a906700147fd5cbaad75b
CRs-Fixed: 2989123
2021-07-13 04:11:48 -07:00
Abhishek Singh
bac97712b7 qcacld-3.0: Cleanup crypto params from roam profile struct
Cleanup crypto params from roam profile struct.

Change-Id: Ib3acb7f2ee669ba05da7011a56a54487d5100033
CRs-Fixed: 2988892
2021-07-12 12:09:40 -07:00
Abhishek Singh
15222dc106 qcacld-3.0: Cleanup pCurRoamProfile from csr session
Cleanup pCurRoamProfile and related code from csr session

Change-Id: I58cd74ed82f6bbccbdea3218c83c18dab2a8afb4
CRs-Fixed: 2987926
2021-07-10 02:58:24 -07:00
Abhishek Singh
cd8f5cc201 qcacld-3.0: Trigger SSR if pe session already exist for vdev
Trigger SSR if pe session already exist for vdev, i.e vdev is
not in init state during connect req.

Also Add SSR if roam command timeout.

Change-Id: I83be76215f5c4daca2429a2528f825baabed92e3
CRs-Fixed: 2982362
2021-07-02 13:53:55 -07:00
Pragaspathi Thilagaraj
70e6c4fc40 qcacld-3.0: Add support to send set IE request in cnx manager
With connection manager enabled, the send IE request is
not sent after connection.

Add support to send set IE request after connection is
successful in connection manger.

Change-Id: I2f30eb67ba295e0ca416ccb40e12a376e0d7a47e
CRs-Fixed: 2976734
2021-07-02 07:24:42 -07:00
Abhishek Singh
2b47c7272d qcacld-3.0: Rename CSR/SME function to represent SAP/NDI start/stop
CSR/SME use connect/disconnect API as these were common between
STA/SAP/NDI, but as connection manager removed the STA related code
from SME/CSR, rename the functions to represent NDI/SAP start/stop.

Change-Id: I7875e163f1976627e521308813ad3e1ed279a906
CRs-Fixed: 2981040
2021-07-02 00:33:42 -07:00
Abhishek Singh
a651b893b9 qcacld-3.0: Remove unused params of struct csr_roam_info
Remove unused params of struct csr_roam_info.

Change-Id: I90aeafc9618ca9569769b7d708d4b552c5ef93ae
CRs-Fixed: 2981156
2021-07-01 04:23:56 -07:00
Abhishek Singh
76ff2f706c qcacld-3.0: Cleanup STA specific code from SAP/NAN start bss
Cleanup STA specific code from SAP/NAN start bss.

Change-Id: Iae62d8f01fef297f68ec7836b787b178167f0e69
CRs-Fixed: 2980398
2021-06-29 21:39:07 -07:00
Abhishek Singh
a2c4145a3c qcacld-3.0: Cleanup unused params from csr structs
Cleanup unused params from csr structures.

Change-Id: I8384ad5e8c6a9d7f33ffe9bc1ed5508776f39607
CRs-Fixed: 2980067
2021-06-29 19:14:49 -07:00
Ashish Kumar Dhanotiya
89c41b9256 qcacld-3.0: Enable utf for connection manager
Add a logic to enable utf for connection manager.

Change-Id: Id8ac70c6437bb9d77cc374abbbeea17dab6f9e3a
CRs-Fixed: 2975701
2021-06-29 19:14:36 -07:00
Yu Wang
df4bcbdb97 qcacld-3.0: Add sanity check for RRM global channel list
Add sanity check for RRM global channel list to avoid
possible NULL-Pointer issue.

Change-Id: Icfbf5282304a549a0dc92889f83cb1a31dde15b2
CRs-Fixed: 2972194
2021-06-29 01:33:01 -07:00
Abhishek Singh
1af81f83c6 qcacld-3.0: Code cleanup for unused csr files
Code cleanup for unused csr files.

Change-Id: I15d4e64534c960c7f048f2a7b7bbedac419700da
CRs-Fixed: 2978777
2021-06-28 14:41:29 -07:00
Abhishek Singh
5ca9e12a4e qcacld-3.0: Code cleanup for connection manager MLME/SME
Remove unused code related to ndef FEATURE_CM_ENABLE in MLME/SME.

Change-Id: I022823296d2e186450a1a1082a975eccf0b7c122
CRs-Fixed: 2977907
2021-06-28 14:41:24 -07:00
Abhishek Singh
046eb026ea qcacld-3.0: Code cleanup for connection manager in LIM/WMA
Remove unused code related to ndef FEATURE_CM_ENABLE in LIM/WMA.

Change-Id: I1697f0a6c9102e3b70ce6f7a1c78ea895d4d160b
CRs-Fixed: 2977902
2021-06-28 12:24:29 -07:00
Abhishek Singh
e9531a9d24 qcacld-3.0: Code cleanup for connection manager CSR
Remove unused code related to ndef FEATURE_CM_ENABLE in CSR.

Change-Id: I156b7ee286f666ee5d660312bf5ba2fe364165c4
CRs-Fixed: 2977584
2021-06-27 23:35:22 -07:00
abhinav kumar
e0fe068d35 qcacld-3.0: SAP not following STA channel
With below INI configuration, SAP is not following the STA
channel. It's forming STA + SAP MCC instead of Forced SCC.
1. gWlanMccToSccSwitchMode = 4
   (QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE)
2. gEnableSAPManadatoryChanList=1

When channel switch mode is
QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE and if STA
is on 5ghz and SAP also comes on 5ghz then driver considers
the HW mode as DBS capable and it allows SAP to form
MCC which is not favorable.

For non_DBS target, the fix is to allow SAP to
do force SCC if the channel switch mode is
MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE.

Change-Id: I4b945dc1831909caff72f8398c959f4450765f2b
CRs-Fixed: 2972273
2021-06-25 11:56:00 -07:00
Srinivas Dasari
043081eff7 qcacld-3.0: Cleanup NDI session even if BSS start is in progress
NDI delete may get issue while NDI creation is still in progress.
NDI session doesn't get cleaned up as it's done based on
CSR_IS_CONN_NDI(&session->connectedProfile), which is valid only
after the NDI is created i.e. START_BSS success.
So cleanup should happen based on an intermediate check,
i.e. if WLAN_SER_CMD_VDEV_START_BSS is still in queue.
This was there earlier but got removed as part connection mgr
cleanup as the station connection is moved to CM path.
Add a check on WLAN_SER_CMD_VDEV_START_BSS and cleanup NDI.

Change-Id: If692cf0e594cbdcb89cd1d8a0ad591b5bae3de49
CRs-Fixed: 2969276
2021-06-24 09:31:00 -07:00
Pragaspathi Thilagaraj
7e1ce1ef23 qcacld-3.0: Update exteneded capabilities after connection
The extended capabilities IE is sent during vdev create and
this doesn't have the merged extended capabilities from the
userspace. So some of the fields advertised in association
request are not advertised in the re-association request.

Fix the missing fields not set in the extended capabilities IE
by sending the set IE message to LIM after connection is
successful.

Change-Id: I322d057f602e0362f12b362e7818e84cbb056cf4
CRs-Fixed: 2971072
2021-06-23 21:18:46 -07:00
Utkarsh Bhatnagar
d86ace0aea qcacld-3.0: Vendor cmd to set SW retry threshold value
The following vendor cmd can be used to set the
sw retry threshold per vdev for all AC:

Aggresive:     QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY
Non-Aggresive: QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY

Change-Id: I49d88ae1f3f6142d8a420fd92f6f40bf3aad03e6
CRs-Fixed: 2945913
2021-06-22 07:54:55 -07:00