>  
> +static void ieee80211_update_rssi_config(struct
> ieee80211_sub_if_data *sdata)
> +{
> +     if (!(sdata->vif.driver_flags &
> IEEE80211_VIF_SUPPORTS_CQM_RSSI))
> +             return;
> +
> +     /* tell the driver upon association, unless already
> associated */
> +     if (sdata->vif.type == NL80211_IFTYPE_STATION &&
> +         !sdata->u.mgd.associated)
> +             return;
> +
> +     /* if AP, always tell the driver by checking beacon status
> */
> +     if (!sdata->vif.bss_conf.enable_beacon ||
> +         !wiphy_ext_feature_isset(sdata->local->hw.wiphy,
> +                             NL80211_EXT_FEATURE_AP_STA_CQM_RSSI_
> CONFIG))
> +             return;

This probably should check for AP mode as well - not sure we use
enable_beacon for e.g. IBSS but I guess we could.

johannes

Reply via email to