summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2014-10-22 12:32:16 +0300
committerJohannes Berg <johannes.berg@intel.com>2014-10-23 20:40:02 +0200
commit2bad7748b332d7218377287248eb66c25de033b2 (patch)
tree4ebb53a54872b0044a45b8386cfe8d8f2cb63a84 /net/mac80211
parent8b94148cfec4c40f4c55308fdcd816bbfe2b4016 (diff)
downloadop-kernel-dev-2bad7748b332d7218377287248eb66c25de033b2.zip
op-kernel-dev-2bad7748b332d7218377287248eb66c25de033b2.tar.gz
mac80211: add stations in order to the station list
During reconfig the station list is traversed in order and station are added back to the driver. Make sure the stations are added to the driver in the same order they were added to mac80211. This has a real side effect - some drivers (iwlwifi) require TDLS stations to be added only after the AP station for the same network. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/sta_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index de494df..2cd48ce 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -501,7 +501,7 @@ static int sta_info_insert_finish(struct sta_info *sta) __acquires(RCU)
/* make the station visible */
sta_info_hash_add(local, sta);
- list_add_rcu(&sta->list, &local->sta_list);
+ list_add_tail_rcu(&sta->list, &local->sta_list);
/* notify driver */
err = sta_info_insert_drv_state(local, sdata, sta);
OpenPOWER on IntegriCloud