On Sat, 2010-03-20 at 17:50 +0100, ext Johannes Berg wrote: > On Fri, 2010-03-19 at 10:03 +0200, Juuso Oikarinen wrote: > > > + * @IEEE80211_HW_SUPPORTS_CQM: > > + * Hardware can do connection quality monitoring - i.e. it can monitor > > + * connection quality related parameters, such as the RSSI level and > > + * provide notifications if configured trigger levels are reached. > > It doesn't really matter at this point, before we have any other CQM > data point implementations, but I would expect this to be CQM_RSSI, > CQM_BEACON_LOSS etc. in different flags eventually since not all might > be supported and one might want to allow some w/o the others? I agree. I will change this. > > +static int ieee80211_set_cqm_config(struct wiphy *wiphy, > > + struct net_device *dev, > > + s32 rssi_thold, u8 rssi_hyst) > > +{ > > + struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); > > + struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); > > + struct ieee80211_vif *vif = &sdata->vif; > > + struct ieee80211_bss_conf *bss_conf = &vif->bss_conf; > > + > > + if (vif->type != NL80211_IFTYPE_STATION) > > + return -EOPNOTSUPP; > > I think this check should probably be in cfg80211, it really doesn't > make sense in any other mode. Agreed. > I'm sorry for making you go through iterations over and over again! Really, no problem. It's also in my/our benefit the best possible code out. Thanks for your time! -Juuso > 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