diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-01-20 07:55:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-02-06 14:48:24 -0500 |
commit | 71ec375c75095002f36f083ceb32bbb8725734ae (patch) | |
tree | ea090e06295a518881e39e7e48132ddb6232d763 /net/mac80211/sta_info.c | |
parent | 89c91caeccf45bbeb86104445125fe1eaec12079 (diff) |
mac80211: add NOTEXIST station state
This will be used by drivers later if they
need to have stations inserted all the time,
in mac80211 has no purpose, is never used
and sta_state starts out in NONE.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 2 |
1 files changed, 2 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); |