Commit 2620e339 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: rtw_cfg80211_inform_bss(): Report the beacon interval already retrieved

Use the beacon interval we already retreived in collect_bss_info()
instead of pulling it out of the saved IE array again.
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 993c52ba
...@@ -248,7 +248,6 @@ static int rtw_cfg80211_inform_bss(struct rtw_adapter *padapter, ...@@ -248,7 +248,6 @@ static int rtw_cfg80211_inform_bss(struct rtw_adapter *padapter,
u16 channel; u16 channel;
u32 freq; u32 freq;
u16 notify_capability; u16 notify_capability;
u16 notify_interval;
u8 *notify_ie; u8 *notify_ie;
size_t notify_ielen; size_t notify_ielen;
s32 notify_signal; s32 notify_signal;
...@@ -266,9 +265,6 @@ static int rtw_cfg80211_inform_bss(struct rtw_adapter *padapter, ...@@ -266,9 +265,6 @@ static int rtw_cfg80211_inform_bss(struct rtw_adapter *padapter,
notify_channel = ieee80211_get_channel(wiphy, freq); notify_channel = ieee80211_get_channel(wiphy, freq);
notify_interval =
get_unaligned_le16(
rtw_get_beacon_interval23a_from_ie(pnetwork->network.IEs));
notify_capability = notify_capability =
get_unaligned_le16( get_unaligned_le16(
rtw_get_capability23a_from_ie(pnetwork->network.IEs)); rtw_get_capability23a_from_ie(pnetwork->network.IEs));
...@@ -290,7 +286,8 @@ static int rtw_cfg80211_inform_bss(struct rtw_adapter *padapter, ...@@ -290,7 +286,8 @@ static int rtw_cfg80211_inform_bss(struct rtw_adapter *padapter,
bss = cfg80211_inform_bss(wiphy, notify_channel, bss = cfg80211_inform_bss(wiphy, notify_channel,
pnetwork->network.MacAddress, pnetwork->network.MacAddress,
pnetwork->network.tsf, pnetwork->network.tsf,
notify_capability, notify_interval, notify_capability,
pnetwork->network.BeaconPeriod,
notify_ie, notify_ielen, notify_ie, notify_ielen,
notify_signal, GFP_ATOMIC); notify_signal, GFP_ATOMIC);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment