On Wed, 2012-06-20 at 08:14 +0200, Michal Kazior wrote: > +++ b/net/wireless/mlme.c > @@ -302,8 +302,14 @@ int __cfg80211_mlme_auth(struct cfg80211_registered_device *rdev, > if (!req.bss) > return -ENOENT; > > + err = cfg80211_can_use_chan(rdev, wdev, req.bss->channel, > + CHAN_MODE_SHARED); > + if (err) > + goto end; I think you need it in assoc too? looks good! johannes -- 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