diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 1f7d8422d62d..b055f6a55c68 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -1076,6 +1076,18 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
1076 | } | 1076 | } |
1077 | EXPORT_SYMBOL(ieee80211_register_hw); | 1077 | EXPORT_SYMBOL(ieee80211_register_hw); |
1078 | 1078 | ||
1079 | void ieee80211_napi_add(struct ieee80211_hw *hw, struct napi_struct *napi, | ||
1080 | struct net_device *napi_dev, | ||
1081 | int (*poll)(struct napi_struct *, int), | ||
1082 | int weight) | ||
1083 | { | ||
1084 | struct ieee80211_local *local = hw_to_local(hw); | ||
1085 | |||
1086 | netif_napi_add(napi_dev, napi, poll, weight); | ||
1087 | local->napi = napi; | ||
1088 | } | ||
1089 | EXPORT_SYMBOL_GPL(ieee80211_napi_add); | ||
1090 | |||
1079 | void ieee80211_unregister_hw(struct ieee80211_hw *hw) | 1091 | void ieee80211_unregister_hw(struct ieee80211_hw *hw) |
1080 | { | 1092 | { |
1081 | struct ieee80211_local *local = hw_to_local(hw); | 1093 | struct ieee80211_local *local = hw_to_local(hw); |