mac80211: make beacon filtering per virtual interface
Due to firmware limitations, we may not be able to support beacon filtering on all virtual interfaces. To allow this in mac80211, introduce per-interface driver capability flags that the driver sets when an interface is added. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Luciano Coelho <coelho@ti.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
47d505ccc7
commit
c1288b1278
@@ -127,7 +127,7 @@ static void run_again(struct ieee80211_if_managed *ifmgd,
|
||||
|
||||
void ieee80211_sta_reset_beacon_monitor(struct ieee80211_sub_if_data *sdata)
|
||||
{
|
||||
if (sdata->local->hw.flags & IEEE80211_HW_BEACON_FILTER)
|
||||
if (sdata->vif.driver_flags & IEEE80211_VIF_BEACON_FILTER)
|
||||
return;
|
||||
|
||||
mod_timer(&sdata->u.mgd.bcn_mon_timer,
|
||||
|
Reference in New Issue
Block a user