On Wed, 2011-11-30 at 16:56 +0100, Simon Wunderlich wrote: > The rates bitmap for internal scan requests shoud be filled, > otherwise there will be probe requests with zero rates supported. > > Signed-off-by: Simon Wunderlich <siwu@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Mathias Kretschmer <mathias.kretschmer@xxxxxxxxxxxxxxxxxxx> Cc: stable@xxxxxxxxxxxxxxx Acked-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> > --- > net/mac80211/main.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/net/mac80211/main.c b/net/mac80211/main.c > index dddedfa..3e15f75 100644 > --- a/net/mac80211/main.c > +++ b/net/mac80211/main.c > @@ -779,6 +779,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) > if (!local->int_scan_req) > return -ENOMEM; > > + for (band = 0; band < IEEE80211_NUM_BANDS; band++) { > + if (!local->hw.wiphy->bands[band]) > + continue; > + local->int_scan_req->rates[band] = (u32) -1; > + } > + > /* if low-level driver supports AP, we also support VLAN */ > if (local->hw.wiphy->interface_modes & BIT(NL80211_IFTYPE_AP)) { > hw->wiphy->interface_modes |= BIT(NL80211_IFTYPE_AP_VLAN); -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html