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: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
u16 channel;
u32 freq;
u16 notify_capability;
- u16 notify_interval;
u8 *notify_ie;
size_t notify_ielen;
s32 notify_signal;
notify_channel = ieee80211_get_channel(wiphy, freq);
- notify_interval =
- get_unaligned_le16(
- rtw_get_beacon_interval23a_from_ie(pnetwork->network.IEs));
notify_capability =
get_unaligned_le16(
rtw_get_capability23a_from_ie(pnetwork->network.IEs));
bss = cfg80211_inform_bss(wiphy, notify_channel,
pnetwork->network.MacAddress,
pnetwork->network.tsf,
- notify_capability, notify_interval,
+ notify_capability,
+ pnetwork->network.BeaconPeriod,
notify_ie, notify_ielen,
notify_signal, GFP_ATOMIC);