On Thu, Jan 19, 2012 at 10:29 AM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > From: Johannes Berg <johannes.berg@xxxxxxxxx> > > Similar to the previous beacon filtering patch, > make CQM RSSI support depend on the flags that > the driver set for virtual interfaces. > > Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> > --- [...] > > - if (!(local->hw.flags & IEEE80211_HW_SUPPORTS_CQM_RSSI)) { > - if (sdata->vif.type != NL80211_IFTYPE_STATION) > - return -EOPNOTSUPP; > - return 0; > - } > - > /* tell the driver upon association, unless already associated */ > - if (sdata->u.mgd.associated) > + if (sdata->u.mgd.associated && > + sdata->vif.driver_flags & IEEE80211_VIF_SUPPORTS_CQM_RSSI) > ieee80211_bss_info_change_notify(sdata, BSS_CHANGED_CQM); > should you return EOPNOTSUPP if the vif doesn't support it? Eliad. -- 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