diff options
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 379f178eab5f..267b2940fadd 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -114,8 +114,7 @@ ieee80211_bss_info_update(struct ieee80211_local *local, | |||
114 | 114 | ||
115 | if (elems->tim && (!elems->parse_error || | 115 | if (elems->tim && (!elems->parse_error || |
116 | !(bss->valid_data & IEEE80211_BSS_VALID_DTIM))) { | 116 | !(bss->valid_data & IEEE80211_BSS_VALID_DTIM))) { |
117 | struct ieee80211_tim_ie *tim_ie = | 117 | struct ieee80211_tim_ie *tim_ie = elems->tim; |
118 | (struct ieee80211_tim_ie *)elems->tim; | ||
119 | bss->dtim_period = tim_ie->dtim_period; | 118 | bss->dtim_period = tim_ie->dtim_period; |
120 | if (!elems->parse_error) | 119 | if (!elems->parse_error) |
121 | bss->valid_data |= IEEE80211_BSS_VALID_DTIM; | 120 | bss->valid_data |= IEEE80211_BSS_VALID_DTIM; |