diff options
author | Ivan Safonov | 2016-08-24 10:21:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-09-01 18:01:40 +0200 |
commit | 81a2b8e4bb629054d414cec297068f23813b8e50 (patch) | |
tree | 3e3be2d65223b1c7268915358f8bb928804f84ef /drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | |
parent | staging: r8188eu: replace rtw_ieee80211_ht_cap with ieee80211_ht_cap type in ... (diff) | |
download | kernel-qcow2-linux-81a2b8e4bb629054d414cec297068f23813b8e50.tar.gz kernel-qcow2-linux-81a2b8e4bb629054d414cec297068f23813b8e50.tar.xz kernel-qcow2-linux-81a2b8e4bb629054d414cec297068f23813b8e50.zip |
staging: r8188eu: replace sizeof(struct rtw_ieee80211_ht_cap) with sizeof(struct ieee80211_ht_cap)
Values of this expressions are equal, but ieee80211_ht_cap is library type.
Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/core/rtw_mlme_ext.c')
-rw-r--r-- | drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index 40e0b60949e3..91e7b36348c4 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c @@ -3236,13 +3236,15 @@ static unsigned int OnAssocReq(struct adapter *padapter, } /* save HT capabilities in the sta object */ - memset(&pstat->htpriv.ht_cap, 0, sizeof(struct rtw_ieee80211_ht_cap)); - if (elems.ht_capabilities && elems.ht_capabilities_len >= sizeof(struct rtw_ieee80211_ht_cap)) { + memset(&pstat->htpriv.ht_cap, 0, sizeof(struct ieee80211_ht_cap)); + if (elems.ht_capabilities && + elems.ht_capabilities_len >= sizeof(struct ieee80211_ht_cap)) { pstat->flags |= WLAN_STA_HT; pstat->flags |= WLAN_STA_WME; - memcpy(&pstat->htpriv.ht_cap, elems.ht_capabilities, sizeof(struct rtw_ieee80211_ht_cap)); + memcpy(&pstat->htpriv.ht_cap, + elems.ht_capabilities, sizeof(struct ieee80211_ht_cap)); } else { pstat->flags &= ~WLAN_STA_HT; } |