Skip to contentSkip to conversation

mac80211: add beacon filtering support

RFC PATCH Johannes Berg 1 participant 2 messages Mar 21, 2009 2 messages not in the archive

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

Review

Quoted 12 lines · Kalle Valo
(quoted diff) +12 -0
+/**
+ * ieee80211_beacon_loss - inform hardware does not receive beacons
+ *
+ * @hw: pointer as obtained from ieee80211_alloc_hw()
+ * @vif: &struct ieee80211_vif pointer from &struct ieee80211_if_init_conf.
+ *
+ * When beacon filtering is enabled with IEEE80211_HW_BEACON_FILTERING and
+ * IEEE80211_CONF_PS is set, the driver needs to inform whenever the
+ * hardware is not receiving beacons with this function.
+ */
+void ieee80211_beacon_loss(struct ieee80211_hw *hw,
+			   struct ieee80211_vif *vif);

Strictly speaking there's no need to pass both since the mac80211 sdata can be obtained from vif and that has a pointer to local, but it doesn't really matter.

johannes

#3 lore raw

Re: [RFC PATCH v3 0/5] mac80211: beacon filtering

In reply to a message not in the archive
Quoted 8 lines · Kalle Valo

Here's my proposal how to implement beacon filtering in mac80211. The basic idea is simple, the driver enables filtering whenever mac80211 enables power save and the driver calls ieee80211_beacon_loss() whenever hardware informs about beacon loss.

I have tested this with stlc45xx (with beacon filtering) and iwl3945 (without beacon filtering) and based on simple tests this seems to work. For reference I'll send the stlc45xx patch as a followup.

Looks good to me.

johannes