Permalink
Browse files

mac80211: function for low-level drivers to set netdev bits (INTERNAL)

Allow low-level drivers to change the feature bit for a vif's underlying
net_device struct.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information...
1 parent 89afeef commit f71796f46393bc6a4bf474c80dff6cf8d98d3523 @ariknem ariknem committed Oct 20, 2011
Showing with 19 additions and 0 deletions.
  1. +10 −0 include/net/mac80211.h
  2. +9 −0 net/mac80211/tx.c
@@ -3021,6 +3021,16 @@ struct sk_buff *
ieee80211_get_buffered_bc(struct ieee80211_hw *hw, struct ieee80211_vif *vif);
/**
+ * ieee80211_set_netdev_features - set netdev feature bits for vif
+ * @vif: virtual interface to set netdev flags on
+ * @features: feature bits (see &struct net_device for details)
+ *
+ * This function sets netdev feature bit for the device associated with the
+ * specified vif.
+ */
+void ieee80211_set_netdev_features(struct ieee80211_vif *vif, int features);
+
+/**
* ieee80211_get_tkip_p1k_iv - get a TKIP phase 1 key for IV32
*
* This function returns the TKIP phase 1 key for the given IV32.
View
@@ -2732,3 +2732,12 @@ void ieee80211_tx_skb_tid(struct ieee80211_sub_if_data *sdata,
ieee80211_xmit(sdata, skb);
local_bh_enable();
}
+
+void ieee80211_set_netdev_features(struct ieee80211_vif *vif, int features)
+{
+ struct ieee80211_sub_if_data *sdata = vif_to_sdata(vif);
+
+ if (sdata->dev)
+ sdata->dev->features |= features;
+}
+EXPORT_SYMBOL(ieee80211_set_netdev_features);

0 comments on commit f71796f

Please sign in to comment.