mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
net: wireless: rockchip: rtl8723cs: fix clang warning
drivers/net/wireless/rockchip_wlan/rtl8723cs/os_dep/linux/ioctl_cfg80211.c:3876:20: warning: implicit conversion from enumeration type 'enum mlme_auth_type' to different enumeration type 'enum nl80211_auth_type' [-Wenum-conversion]
sme->auth_type = MLME_AUTHTYPE_SAE;
~ ^~~~~~~~~~~~~~~~~
MLME_AUTHTYPE_SAE == NL80211_AUTHTYPE_SAE, so this fix is safe.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia3fc1afc6375cc86168c0d9a744e0817df9614c7
This commit is contained in:
@@ -3873,7 +3873,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
||||
sme->privacy, sme->key, sme->key_len, sme->key_idx, sme->auth_type);
|
||||
|
||||
if (rtw_check_connect_sae_compat(sme)) {
|
||||
sme->auth_type = MLME_AUTHTYPE_SAE;
|
||||
sme->auth_type = NL80211_AUTHTYPE_SAE;
|
||||
psecuritypriv->auth_type = MLME_AUTHTYPE_SAE;
|
||||
psecuritypriv->auth_alg = WLAN_AUTH_SAE;
|
||||
RTW_INFO("%s set sme->auth_type for SAE compat\n", __FUNCTION__);
|
||||
|
||||
Reference in New Issue
Block a user