diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-08-12 12:24:55 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-08-20 07:31:43 -0400 |
commit | e687f61eedab8895e5669cb82cebe0253631cd8c (patch) | |
tree | 3021da723c82f251fb2fd1cbef1083e804d53829 /net/mac80211/ibss.c | |
parent | 4bd4c2dd8e734868ae9f0ceb87a6edd27df8f45c (diff) |
mac80211: add supported rates change notification in IBSS
In IBSS it is possible that the supported rates set for a station changes over
time (e.g. it gets first initialised as an empty set because of no available
information about rates and updated later). In this case the driver has to be
notified about the change in order to update its internal table accordingly (if
needed).
This behaviour is needed by all those drivers that handle rc internally but
leave stations management to mac80211
Reported-by: Gui Iribarren <gui@altermundi.net>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
[Johannes - add docs, validate IBSS mode only, fix compilation]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ibss.c')
-rw-r--r-- | net/mac80211/ibss.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 1ebda2f9e57b..a9d93285dba7 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c | |||
@@ -459,8 +459,11 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata, | |||
459 | } | 459 | } |
460 | } | 460 | } |
461 | 461 | ||
462 | if (sta && rates_updated) | 462 | if (sta && rates_updated) { |
463 | drv_sta_rc_update(local, sdata, &sta->sta, | ||
464 | IEEE80211_RC_SUPP_RATES_CHANGED); | ||
463 | rate_control_rate_init(sta); | 465 | rate_control_rate_init(sta); |
466 | } | ||
464 | 467 | ||
465 | rcu_read_unlock(); | 468 | rcu_read_unlock(); |
466 | } | 469 | } |