mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-12-26 01:51:34 +00:00
Fix: ISO C90 forbids mixing declarations and code
This commit is contained in:
parent
cc5797237a
commit
791f5a48f6
@ -7792,6 +7792,9 @@ static void cfg80211_rtw_update_mgmt_frame_register(struct wiphy *wiphy,
|
|||||||
_adapter *adapter;
|
_adapter *adapter;
|
||||||
|
|
||||||
struct rtw_wdev_priv *pwdev_priv;
|
struct rtw_wdev_priv *pwdev_priv;
|
||||||
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))
|
||||||
|
u32 rtw_mask;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (ndev == NULL)
|
if (ndev == NULL)
|
||||||
goto exit;
|
goto exit;
|
||||||
@ -7810,7 +7813,7 @@ static void cfg80211_rtw_update_mgmt_frame_register(struct wiphy *wiphy,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))
|
||||||
u32 rtw_mask = BIT(IEEE80211_STYPE_AUTH >> 4);
|
rtw_mask = BIT(IEEE80211_STYPE_AUTH >> 4);
|
||||||
if ((upd->interface_stypes & rtw_mask)
|
if ((upd->interface_stypes & rtw_mask)
|
||||||
== (pwdev_priv->mgmt_mask & rtw_mask))
|
== (pwdev_priv->mgmt_mask & rtw_mask))
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user