MA-18600 Wifi: Wifi direct is not working

"mgmt_subtype_mask" is not updated with the supplicant provided
mask in the "mgmt_frame_register" handler.
cfg80211 handler "mgmt_frame_register" is updated from the kernel
version 5.8 onwards. mgmt_subtype_mask is not updated in the 5.8
specific path.

Updating mgmt_subtype_mask with required mask from supplicant
in the 5.8 kernel specific hanlder path.
Test: Wifi Direct work as GO or GC.

Change-Id: I457e1b44ec0b9f3481b5ccc81ccaa6a9e67b741b
Signed-off-by: yang.tian <yang.tian@nxp.com>
This commit is contained in:
yang.tian 2021-02-01 13:00:16 +08:00
parent 5426fc45f2
commit 0d82d39f24

View file

@ -2390,6 +2390,7 @@ void woal_cfg80211_mgmt_frame_register(struct wiphy *wiphy,
*/ */
&& !moal_extflg_isset(priv->phandle, EXT_HOST_MLME)) && !moal_extflg_isset(priv->phandle, EXT_HOST_MLME))
upd->interface_stypes &= ~BIT(IEEE80211_STYPE_AUTH >> 4); upd->interface_stypes &= ~BIT(IEEE80211_STYPE_AUTH >> 4);
priv->mgmt_subtype_mask = upd->interface_stypes;
woal_reg_rx_mgmt_ind(priv, MLAN_ACT_SET, &upd->interface_stypes, woal_reg_rx_mgmt_ind(priv, MLAN_ACT_SET, &upd->interface_stypes,
MOAL_NO_WAIT); MOAL_NO_WAIT);
#else #else