Browse Source

fix ISO C90 forbids mixed declarations and code (#279)

pull/280/head
masa23 3 years ago
committed by Harshavardhana
parent
commit
fb91faf610
  1. 2
      os_dep/linux/ioctl_cfg80211.c

2
os_dep/linux/ioctl_cfg80211.c

@ -3330,8 +3330,8 @@ void rtw_cfg80211_indicate_sta_assoc(_adapter *padapter, u8 *pmgmt_frame, uint f
#if defined(RTW_USE_CFG80211_STA_EVENT) || defined(COMPAT_KERNEL_RELEASE)
{
struct station_info sinfo;
_rtw_memset(&sinfo, 0, sizeof(struct station_info));
u8 ie_offset;
_rtw_memset(&sinfo, 0, sizeof(struct station_info));
if (GetFrameSubType(pmgmt_frame) == WIFI_ASSOCREQ)
ie_offset = _ASOCREQ_IE_OFFSET_;
else // WIFI_REASSOCREQ

Loading…
Cancel
Save