MA-20988 sync WCS Q1 release patch to Android13.0

Reason:sync WCS Q1 RC2 release patch MM5X16368.p2 to Android13.0 also
fix WCSWREL-418
Test:i.MX 8MM/ i.MX 8QXP

mxm_wifiex: move SCR.txt to root folder and rename LICENSE file

SCR.txt and LICENSE files should be in root folder, also need to rename
the gpl-2.0.txt file to work better with GitHub.

Change-Id: I8f912fae7d291022389bcbafb558050c4b95835e
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: yunjie <yunjie.jia@nxp.com>
This commit is contained in:
Sherry Sun 2023-02-01 17:42:00 +08:00 committed by yunjie
parent be8812297a
commit d212de6a8a
3 changed files with 15 additions and 10 deletions

View file

@ -798,11 +798,13 @@ int woal_cfg80211_init_p2p_client(moal_private *priv)
goto done;
}
bss_role = MLAN_BSS_ROLE_STA;
if (MLAN_STATUS_SUCCESS !=
woal_cfg80211_bss_role_cfg(priv, MLAN_ACT_SET, &bss_role)) {
ret = -EFAULT;
goto done;
if (bss_role != MLAN_BSS_ROLE_STA) {
bss_role = MLAN_BSS_ROLE_STA;
if (MLAN_STATUS_SUCCESS !=
woal_cfg80211_bss_role_cfg(priv, MLAN_ACT_SET, &bss_role)) {
ret = -EFAULT;
goto done;
}
}
wifi_direct_mode = WIFI_DIRECT_MODE_DISABLE;
@ -886,12 +888,15 @@ int woal_cfg80211_init_p2p_go(moal_private *priv)
goto done;
}
bss_role = MLAN_BSS_ROLE_UAP;
if (MLAN_STATUS_SUCCESS !=
woal_cfg80211_bss_role_cfg(priv, MLAN_ACT_SET, &bss_role)) {
ret = -EFAULT;
goto done;
if (bss_role != MLAN_BSS_ROLE_UAP) {
bss_role = MLAN_BSS_ROLE_UAP;
if (MLAN_STATUS_SUCCESS !=
woal_cfg80211_bss_role_cfg(priv, MLAN_ACT_SET, &bss_role)) {
ret = -EFAULT;
goto done;
}
}
/* NoA:-- Interval = 100TUs and Duration= 50TUs, count=255*/
#define DEF_NOA_COUNT 255
if (priv->phandle->noa_duration && priv->phandle->card_info->go_noa) {