mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-12-25 09:31:36 +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;
|
||||
|
||||
struct rtw_wdev_priv *pwdev_priv;
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))
|
||||
u32 rtw_mask;
|
||||
#endif
|
||||
|
||||
if (ndev == NULL)
|
||||
goto exit;
|
||||
@ -7810,7 +7813,7 @@ static void cfg80211_rtw_update_mgmt_frame_register(struct wiphy *wiphy,
|
||||
#endif
|
||||
|
||||
#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)
|
||||
== (pwdev_priv->mgmt_mask & rtw_mask))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user