Currently, wmi_roam_event_id data is extracted and processing is
also done in wma. This is not inline with component model where
target_if takes care of data extraction and handover the extracted
data to corresponding component(connection mgr in this case).
Add changes to support the same. As the legacy CSR/LIM is not
yet converged, have a wrapper from connection mgr to wma to call
these legacy APIs.
Change-Id: I0e22bbccfe21200b90771a01f9ee7454f4ecb119
CRs-Fixed: 2990355
During enumeration all adapters, if adapter is not "up",
it is unnecessary to check connecting or not. Otherwise,
the vdev is not created for the adapter and the
sme_roaming_in_progress will output "ROAM: incorrect vdev ID"
error message.
Change-Id: I3df5379a7d0b88c439d49711c36000717c7a433b
CRs-Fixed: 3002674
Current it use __RET_IP to get caller in rtpm resume
function, if it print info by %ps, it will do a
symbol lookup which takes time.
Change as replacing __RET_IP with rtpm_dbgid, so it is
still able to get caller information and avoid time
cost here.
Change-Id: Ic9465fba1a8e6a6a2289303ed6994a22b393a4e4
CRs-Fixed: 3001693
In ROAM DONE event handling, policy mgr restart sap is not invoked after
updating the connection info and hw mode info thus not restarting the sap
after roam sync
To solve this, adding policy manager check after updating the policy
manager connection table.
Change-Id: Ifb8a5eecb98c05166986052ccc32422dbbe3bef7
CRs-Fixed: 2991721
In __iw_setnone_getnone api, fix the datatype from uint8_t
to qdf_freq_t for channel frequency.
Change-Id: Icc34c7e0ac2072707dae2046187c7a845cdb3a4b
CRs-Fixed: 2978017
Currently there is no provision to configure fixed rate for 11be.
Add sysfs entry to configure fixed rate for 11be.
To set 11be rate, write 1 byte value to the sysfs entry as below.
In this 1 byte, MSB 3-bits represents NSS and LSB 5-bits represents
MCS. For e.g. the below command will configure the 11be rate to MCS
7 and NSS 2.
echo 0x47 > /sys/class/net/wlan1/11be_rate
Change-Id: I96a328c0844e2fe20053a26acf1824e048a74fed
CRs-Fixed: 2999842
Currently, host driver expects NDP_END indication from firmware
within 2 seconds after sending request to firmware. Driver shall
timeout and cleanup the corresponding NDP entry if no response is
received within 2 seconds. But firmware may take upto 2.5 seconds
to exhaust the NDP_END frame retries.
So, increase the timeout to 4 seconds to accommodate these retries
and to be inline with current NAN_DISABLE timeout.
Change-Id: Ida1abc25b4ff64aea810c88dbf36f9577b23ffd8
CRs-Fixed: 3002176
Some AP has different HT ch width setting in beacon/assoc resp.
FW uses assoc response to decide the BW of HT AP in Roaming sync.
Fix by overwrite beacon HT BW setting from assoc resp frame to
keep sync with FW.
Change-Id: I784e4b1735f4f217713f65c30092bac2ad6cb698
CRs-Fixed: 2995520
In a beacon template, there is a mismatch of twt responder bit in
HE caps and extended caps.
During start BSS, there is a kernel flag related with twt
responder. Intersect this kernel flag and service bit capability
before calling twt enable/disable api in start BSS.
Change-Id: I0725fc560904c622cc47f43958bcd490daacfa2f
CRs-Fixed: 2995538
If WoW not support, not advertise wiphy_wowlan_support when
registering wiphy device. To make sure wiphy_suspend can follow
the flow of WoW not support.
Both function wlan_hdd_cfg80211_init() and hdd_wiphy_init() set
wiphy->wowlan. Change I4bbaec9ba4268099507567b4e03cee51ee1d11f7
already fixed it in function hdd_wiphy_init(). This change fixed
it in function wlan_hdd_cfg80211_init().
And, not advertise wiphy_wowlan_support even kernel version less
than 3.11.
Change-Id: Ia68d1a8bae85d9ec891b81634b9704e8500587cd
CRs-Fixed: 2989891
Mlo peer mgr needs all link info including the assoc peer information.
Provide all link info to mlo mgr.
Change-Id: If44572834cbed020cc52366d09e4e8bbb618ee2f
CRs-Fixed: 2999477
HAL_RX_DESC_GET_80211_HDR is replaced by hal_rx_desc_get_80211_hdr
api. Due to this compilation error is seen.
Fix this by using new api hal_rx_desc_get_80211_hdr instead of
HAL_RX_DESC_GET_80211_HDR.
Change-Id: I52bbae9d1a58cb13c8e6706a47e300db824251f3
CRs-Fixed: 2992548
wlan_peer_mlme_get_assoc_peer is renamed to wlan_peer_mlme_is_assoc_peer
Relace wlan_peer_mlme_get_assoc_peer with wlan_peer_mlme_is_assoc_peer
Change-Id: I2b3d98a359d2b8e4e7f3f5016be3ca7a7f3f888f
CRs-Fixed: 2999486
Remove the usage of csrPersona from csr_roam_profile
and the unused wlan_sap_get_roam_profile function.
Change-Id: Ic7621c5e178a141b7e6e9d820d71fadfbff071ed
CRs-Fixed: 2998988
In connected STA scenario, tcp_adv_win_scale is reset to 1
on runtime suspend. If any TCP connection gets initiated, the
SYN packet will cause a runtime resume. The bus bandwidth
work gets scheduled ~100msecs after resume is done. This
can result in a smaller TCP window value to get used for
the TCP connection initially and the window size does not
increase even with tcp_adv_win_scale updated to 2 as part
of bus bandwidth work.
Fix is to not reset the tcp_adv_win_scale config if any
adapter is connected on runtime suspend.
Change-Id: If10a1e1fd0efc8217f8136a60cfb01b03485a21d
CRs-Fixed: 2969041
tcp_adv_win_scale value does not get reset to the default
value by cnss daemon for WLAN_SVC_TP_LOW throughput level.
This could result in undesired behavior if the tcp param
value is used for TCP connections after disconnection or
wifi turn off.
Fix is to use the previous WLAN_SVC_TP_NONE level to
reset the tcp_adv_win_scale parameter.
Change-Id: I3d312abc2a873a7b35d8a411c60bce7832742c4b
CRs-Fixed: 2995589
from csr_roam_profile
In the SAP module, remove the usage of ch_params and
op_freq from csr_roam_profile. Instead, the SAP module
uses ch_params and chan_freq from sap_ctx.
Change-Id: I26ff00286b8e0cec33d3a63098f93d4000684df0
CRs-Fixed: 2998985
In the SAP module, remove the usage of phyMode from
csr_roam_profile. The SAP module uses phyMode from
the sap_ctx directly.
Change-Id: I6ca484901f29dfa35405dcdcb88e25cc09f498d6
CRs-Fixed: 2998982
Populate EHT PHY and MAC capabilities from target to
tDot11fIEeht_cap structure.
Change-Id: Idf0af3c78afafcd5682760cdfd23bacd3c1dff76
CRs-Fixed: 2998861
If EHT cfg is not present, there's no need to populate EHT PHY
and MAC caps to wiphy.
Change-Id: If4d002976f23d1fb847c7976cce6d2c1d5c42260
CRs-Fixed: 2998476
In sap standalone on 5G channel, when LTE unsafe event
shows the SAP working on unsafe channel, SAP moves to
2G channel because the current logic will select
safe channel from ACS list.
The preference is 5G safe channel if available.
This change will select safe channel in same band firstly
from the list.
Change-Id: Ibc45a05845692b0dd8a02fd98aef2f7b15d00729
CRs-Fixed: 2996401
For STA+P2P concurrency case, once p2p disconnect, STA max tx power is
updated in F/W too per SAR by design, app can't correct it since reconfig
same max tx power as original is refused by driver.
Fix by not comparing cached max tx power for each vdev in driver when set
max tx power, can set same value as original again to F/W directly.
Change-Id: Ic417946006f07be40aa34f1dc022d7fb5c4aa213
CRs-Fixed: 2996316
There is wrong logic and won't define CONFIG_AR900B for HSP platform.
So add this change to correct the logic and define CONFIG_AR900B
properly.
Change-Id: I60e3bf0a0f9778a821bbe89289cf88f4dbc432e0
CRs-Fixed: 2996497
Use wlan_cm_is_vdev_roaming() API in wma, instead of
wma->interfaces[vdev_id].roaming_in_progress.
Change-Id: Icb88246b2c45c052a1d42dece4983b1e534fe608
CRs-Fixed: 2993180
Preauth ROC timer is LIM_FT_PREAUTH_SCAN_TIME which is 50 ms, while
the preauth timeout is 1 second, in case of offchannel operation
scan complete firstly before auth resp frame received, host doesn't
stop the preauth timer or indicate that preauth req is processed,
before sending resp(failure) to connection manager. Thus if auth
resp is received after scan complete, it is processed and create
pe session which won't be deleted later.
Fix is to not initiate the failure from scan ROC complete but let the
preauth timer take care of the failure.
Change-Id: Ib93b4d2c6c6f0044535a8f41af0ef4baeaf468f6
CRs-Fixed: 2992079
Currently intermediate EP vote access is set without checking
for previous state and reg work handler completion.
In some of the error scenarios when resume is triggered from
suspend path, EP vote access is still enabled and work handler
will be scheduled for register updates.
So make sure reg work is completed before setting intermediate access.
Change-Id: I7a1e55c188b9a9e85309dd44ac03651181499674
CRs-Fixed: 2994039
In case of deauth received when HO disconnect is in progress,
the pe session for BSSID may not be found and thus the disconnect
returns without cleaning up the ft session.
So check and cleanup the ft session before returning.
Change-Id: I2661b987d0d2498d8ceaefedcc6b945a7c033f30
CRs-Fixed: 2994624