diff options
author | Ashok Nagarajan <ashok@cozybit.com> | 2012-04-03 00:21:21 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-04-11 16:23:47 -0400 |
commit | 9ebb61a23d90703344fc609fbee8da67b1e7456c (patch) | |
tree | 021483e65ed424166b539d9a26d92d415c842d86 /net/mac80211/mesh.c | |
parent | 657c3e0c4147bb3d3fdd338e32b83b968b0f9d02 (diff) |
mac80211: Modify sta_get_rates to give basic rates
Signed-off-by: Ashok Nagarajan <ashok@cozybit.com>
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r-- | net/mac80211/mesh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index f1d9685d959c..7b22822d4208 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c | |||
@@ -625,7 +625,7 @@ static void ieee80211_mesh_rx_bcn_presp(struct ieee80211_sub_if_data *sdata, | |||
625 | struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; | 625 | struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; |
626 | struct ieee802_11_elems elems; | 626 | struct ieee802_11_elems elems; |
627 | struct ieee80211_channel *channel; | 627 | struct ieee80211_channel *channel; |
628 | u32 supp_rates = 0; | 628 | u32 supp_rates = 0, basic_rates = 0; |
629 | size_t baselen; | 629 | size_t baselen; |
630 | int freq; | 630 | int freq; |
631 | enum ieee80211_band band = rx_status->band; | 631 | enum ieee80211_band band = rx_status->band; |
@@ -658,7 +658,8 @@ static void ieee80211_mesh_rx_bcn_presp(struct ieee80211_sub_if_data *sdata, | |||
658 | 658 | ||
659 | if (elems.mesh_id && elems.mesh_config && | 659 | if (elems.mesh_id && elems.mesh_config && |
660 | mesh_matches_local(&elems, sdata)) { | 660 | mesh_matches_local(&elems, sdata)) { |
661 | supp_rates = ieee80211_sta_get_rates(local, &elems, band); | 661 | supp_rates = ieee80211_sta_get_rates(local, &elems, |
662 | band, &basic_rates); | ||
662 | mesh_neighbour_update(mgmt->sa, supp_rates, sdata, &elems); | 663 | mesh_neighbour_update(mgmt->sa, supp_rates, sdata, &elems); |
663 | } | 664 | } |
664 | 665 | ||