diff options
-rw-r--r-- | net/mac80211/sta_info.c | 2 | ||||
-rw-r--r-- | net/mac80211/sta_info.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 8e1e361c2232..464bc691644b 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -293,6 +293,8 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata, | |||
293 | sta->sdata = sdata; | 293 | sta->sdata = sdata; |
294 | sta->last_rx = jiffies; | 294 | sta->last_rx = jiffies; |
295 | 295 | ||
296 | sta->sta_state = IEEE80211_STA_NONE; | ||
297 | |||
296 | do_posix_clock_monotonic_gettime(&uptime); | 298 | do_posix_clock_monotonic_gettime(&uptime); |
297 | sta->last_connected = uptime.tv_sec; | 299 | sta->last_connected = uptime.tv_sec; |
298 | ewma_init(&sta->avg_signal, 1024, 8); | 300 | ewma_init(&sta->avg_signal, 1024, 8); |
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h index 381de37d2478..da4b03c1c3bc 100644 --- a/net/mac80211/sta_info.h +++ b/net/mac80211/sta_info.h | |||
@@ -77,6 +77,7 @@ enum ieee80211_sta_info_flags { | |||
77 | 77 | ||
78 | enum ieee80211_sta_state { | 78 | enum ieee80211_sta_state { |
79 | /* NOTE: These need to be ordered correctly! */ | 79 | /* NOTE: These need to be ordered correctly! */ |
80 | IEEE80211_STA_NOTEXIST, | ||
80 | IEEE80211_STA_NONE, | 81 | IEEE80211_STA_NONE, |
81 | IEEE80211_STA_AUTH, | 82 | IEEE80211_STA_AUTH, |
82 | IEEE80211_STA_ASSOC, | 83 | IEEE80211_STA_ASSOC, |