For ML capable client associating with ML capable SAP in ML mode,
the cfg80211 will send the MLD address of the STA as part of add
key after successful EAPOL handshake.
Use this MLD address to look up the SAP MLD peer list and get all
the peers from this MLD list and send add key on the link address
of each link peer.
For legacy clients the address sent from the cfg80211 will be
legacy MAC address which will be used directly to fetch peer.
Change-Id: I2659a8a7c5d221ce980139dcc36d528045e3545b
CRs-Fixed: 3323799
Currently, only single pd_threshold is fetched and
treated as SRG and NON-SRG pd threshold instead of
handling both threshold separately.
Fix is to get SRG and NON-SRG pd threshold from
userspace instead of single pd threshold
Change-Id: I2a131ea9040c799bc12a17a9ce42be02da8a717b
CRs-Fixed: 3328189
Enable NAPI schedule latency histogram stats in debug mode
which helps to debug the NAPI shcedule delay issues.
Change-Id: Idc58a5c2eab6fcb9ac55ab04cf083982d0aed003
CRs-Fixed: 3318049
In normal scenario, owe_pending_assoc_ind is inserted to
owe_pending_assoc_ind_list and would be released when
sap is destroyed.
Once wlansap_roam_process_infra_assoc_ind failed to handle
assoc_ind, owe_pending_assoc_ind will not be inserted to
owe_pending_assoc_ind_list. There would be memory leakage.
Change-Id: I6e799cae09d0bdc0beaf1a8c3f2e55c48c9056e0
CRs-Fixed: 3323377
If the underlying target supports MLO indicate the same via
wiphy to the kernel/userplane.
Change-Id: I9cb40ceb2769b31f464dfd630a0f2a6587b8057e
CRs-Fixed: 3323553
For virtual interface, add support to create the interface
as ML capable.
Currently implementation will create a single link ML interface.
This ML capability will only be enabled for STA/SAP type mode.
Change-Id: I11263460ee8404c8ea319cd139d92b080035b416
CRs-Fixed: 3315353
Current implementation for MAC address update for SAP
doesn't check if the adapter is ML capable or not.
Add the logic to check if the adapter is ML capable
in SAP mode and update MLD address if it is true.
Change-Id: I06ce99e53439904acbc1f96f3aedba816d58f0da
CRs-Fixed: 3323654
When rx throughput is relatively high, driver will not refill rx
rates info. This has been done in wlan_hdd_get_peer_rx_rate_stats()
so that wlan_hdd_refill_actual_rate() do not need to consider this
condition. Otherwise, we will fail to report rates info to kernel.
Change-Id: Icf677138d7c51b66a0afed87ba4897d6fd5b7d25
CRs-Fixed: 3328555
Get Spatial Reuse stats per MAC based on the VDEV where
Spatial Reuse stats are requested from.
Change-Id: Iaf4197d7424ee7f8a825fa77e39cd055e2c41283
CRs-Fixed: 3319066
Add support to register for LPASS data message htc service
for Direct Link datapath.
Change-Id: Iff9be53841088abe884d8e282bf13509a99ddeb2
CRs-Fixed: 3317634
Initialize and deinitialize Direct Link datapath for
MISSION mode in wlan start and stop modules respectively.
Change-Id: I33f0e14f686d9f565440c287b26ad9719624220e
CRs-Fixed: 3331068
arch=SDXPINN is a new MDM platform. Hence disable some
unneeded features for it.
Change-Id: I3f2162591a0d0d6278712c325c93fb13b200381e
CRs-Fixed: 3331499
FISA update may come when target in suspend state, then
UMAC force wake may return failure and lead to system timeout
crash. Change is used to defer the update when resume happens.
Change-Id: I8d3082355f780d11fd5047d67f916f0a7dd0c6e8
CRs-Fixed: 3325498
With WLAN_FEATURE_NAN=n and kernel version > 4.9.0 , wiphy_register()
returns failure and throws below warning:
WARNING: CPU: 1 PID: 8 at net/wireless/core.c:641
wiphy_register+0x5ac/0x944
With above config, NL80211_IFTYPE_NAN is not advertised to
wiphy->interface_modes. But NL80211_IFTYPE_NAN is advertised
to wiphy->iface_combinations. Hence the failure and warning are seen.
Fix is to advertise NAN iface_combinations only when NAN feature
flag and kernel version are met.
Change-Id: Iaceea699939df919c17dc81a1195f7dea1543982
CRs-Fixed: 3329527
If ml sta is not "connected" state, no need to do link state handling.
After disconnected, target will clear the force active/inactive state
and host will remove the connection entry finally.
After roaming done, active/inactive will be re-calculated.
Change-Id: Ic9ba3e3ef704b3dcdd8185e9b0864a9cbac000c7
CRs-Fixed: 3322063
With 11be mlo, the number of open station interfaces is 3.
Modify the check in policy manager api for the same.
CRs-Fixed: 3320739
Change-Id: I89166ebdf1559cde6f77f5a5c535e5f2e81eefc5
Currently, the driver has VHT rate table for MCS
indices ranging from 0 to 9, but FW supports VHT rates
for MCS 10 and 11 as well. So, update the VHT rate table
accordingly.
Change-Id: Iecb55d664f6dbb4a10eb98d75cf942af4833ca45
CRs-Fixed: 3325194
Currently, roaming is disabled with requestor "RSO_CONNECT_START"
on the STA when concurrent P2P-client is connected .
It's re-enabled once the P2P-client is disconnected but with
requestor RSO_INVALID_REQUESTOR. Roaming module still doesn't
re-enable roaming as it expects roam-enable command from the
requestors(i.e. RSO_CONNECT_START in this case) which disabled
roaming.
Pass right requestor to re-enable roaming.
Change-Id: Icb3deeed788ca248391b4b84288229aea2bdb8c2
CRs-Fixed: 3330219
Currently in function hdd_get_station_info, it does not malloc the
NLA_HDRLEN for each attribute, it causes no enough buffer to put
the data.
Since in that function, it combines lots of info for the station,
define WLAN_STATS_INFO_LEN to malloc enough buffer.
Change-Id: I31deccb329c5b14abc97e30ee75de9452f0e06e0
CRs-Fixed: 3325629
Currently host driver indicates frame pcap logging feature as
supported by default to fw.
Host driver does not support this feature as of now, so indicate
this feature as not supported to fw in feature set capability info.
Change-Id: I5a6f4d83cca1b5b92d8a9159b68349534b112d92
CRs-Fixed: 3329222
For MLO STA+SAP case, mlo link maybe in inactive state after
connected and the hw mode maybe not updated, check MCC/SCC by
policy_mgr_are_2_freq_on_same_mac may not match MCC/SCC state
after the link is activated by target later. So to check frequency
match or not to decide SAP do force SCC or not if MLO STA 2 links
are present.
Change-Id: I614e6879cf4f9614b979fc3c78f87b76fc6c7c16
CRs-Fixed: 3313043
Currently sme_switch_channel set new_ch_width as phy_ch_width, while
wma_csa_offload_handler set new_ch_width as raw bit in wide bandwidth
channel switch IE.
Clean up the code. Define new_ch_width in csa_offload_params as
phy_ch_width.
Change-Id: Iadecc7693bf4ffd9f9562405ef18ea9d25d45c9e
CRs-Fixed: 3324762
Whenvever WiFi is disconnected, link layer stats are cleared
by wlan_hdd_clear_link_layer_stats(). In the current driver
implementation the statsClearReqMask is set clear IFACE_AC and
IFACE_ALL_PEER only. This results in driver reporting incorrect
contention stats, even though WiFi is disconnected.
To resolve this issue, update statsClearReqMask to clear
IFACE_CONTENTION stats as well.
Change-Id: I1e07df91823db1db70f73075982e551f4b8a85c7
CRs-Fixed: 3323943
If existing STA+STA is MLO STA, the current HW mode is not
reliable because the STA link maybe inactive. HW mode may
change if MLO STA becomes active.
Add special handling to this case by checking MAC frequency
range to decide DBS or SBS.
Change-Id: I4d3728965d2f687805535abb0716bb1b58e1c51d
CRs-Fixed: 3328517
In concurrency case: GO on 5180 MHz, SAP on 5765 MHz,
MLO STA vdev 0 5180 MHz, MLO STA vdev 1 2462 MHz.
When the MLO STA is up and driver does force SCC on
SAP, the get PCL is failed because the GO vdev,
MLO STA vdev 0 and vdev 1 are all non-SBS channels
between each other. Driver doesn't handle the case in
policy_mgr_get_index_for_ml_sta_sap_sbs if current
hw mode is SBS. This case can happen the mlo sta link
vdev is inactive after get connected.
To fix it add new API:
policy_mgr_get_index_for_ml_sta_sap_hwmode_sbs to
handle it. It will return the correct PCL index
to avoid 3 home channels on same mac.
Change-Id: Ia16f8a391b34fc15287a93590b2c119d58250e20
CRs-Fixed: 3326358
Remove WMI_PDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD which is sent to
initialize the hardware registers. The initialization of hardware
registers is done as part of WMI_VDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD
Change-Id: I272fbd6723836efb9864cb78bdaf3e0eacf45554
CRs-Fixed: 3329913
Change the default driver log trace level for HAL
to INFO. This is to disable logging the debug logs
from HAL module to the driver logs.
Also fix the way in which DP module default log
level is being set.
Change-Id: I8b068f31dcb733bf7714b6e7234f01f3ce180edf
CRs-Fixed: 3319410
In case of ML SAP, userspace needs assoc resp IE to get all
the ML link info.
So, Add support to save assoc_resp ie pointer in peer common object
which will send to userspace.
Change-Id: If19857ecce62092b1aa4e7fef17c09e819822f5f
CRs-Fixed: 3325938
In case of bandwidth is 80/160 MHz, use ccfs0 value from VHT
or HE ops and if bandwidth is 320 MHz, use ccfs1 value from
EHT ops. Thus, ccfs0 value in EHT op is redundant and needs
to be ignored.
Change-Id: Ia8f988ac28349be7bce47388d9f8b844fa52a90e
CRs-Fixed: 3305667
Currently, SR enable can be set even if sta is not connected
to AP due to which success is returned to userspace but command
is not sent to FW.
Fix is to not to entertain any SR operation if station is not
connected or connected AP is not supporting SR.
Change-Id: Ie46e5f4db12a1ecf8eea44847a97355f26163ed8
CRs-Fixed: 3321577