]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
mac80211: add NOTEXIST station state
authorJohannes Berg <johannes.berg@intel.com>
Fri, 20 Jan 2012 12:55:20 +0000 (13:55 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Feb 2012 19:48:24 +0000 (14:48 -0500)
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>
net/mac80211/sta_info.c
net/mac80211/sta_info.h

index 8e1e361c2232cce53311f042ee162483a910bb29..464bc691644b90938e5eca7e17520761f2f2b1cf 100644 (file)
@@ -293,6 +293,8 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata,
        sta->sdata = sdata;
        sta->last_rx = jiffies;
 
+       sta->sta_state = IEEE80211_STA_NONE;
+
        do_posix_clock_monotonic_gettime(&uptime);
        sta->last_connected = uptime.tv_sec;
        ewma_init(&sta->avg_signal, 1024, 8);
index 381de37d2478bbc55518f4b2aec008e59279c92b..da4b03c1c3bcf8748163888f265291eeab44f41d 100644 (file)
@@ -77,6 +77,7 @@ enum ieee80211_sta_info_flags {
 
 enum ieee80211_sta_state {
        /* NOTE: These need to be ordered correctly! */
+       IEEE80211_STA_NOTEXIST,
        IEEE80211_STA_NONE,
        IEEE80211_STA_AUTH,
        IEEE80211_STA_ASSOC,