diff options
Diffstat (limited to 'net/mac80211/pm.c')
-rw-r--r-- | net/mac80211/pm.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c index b38986c9deef..9d3d89abbb57 100644 --- a/net/mac80211/pm.c +++ b/net/mac80211/pm.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include <net/rtnetlink.h> | 2 | #include <net/rtnetlink.h> |
3 | 3 | ||
4 | #include "ieee80211_i.h" | 4 | #include "ieee80211_i.h" |
5 | #include "driver-ops.h" | ||
5 | #include "led.h" | 6 | #include "led.h" |
6 | 7 | ||
7 | int __ieee80211_suspend(struct ieee80211_hw *hw) | 8 | int __ieee80211_suspend(struct ieee80211_hw *hw) |
@@ -43,8 +44,8 @@ int __ieee80211_suspend(struct ieee80211_hw *hw) | |||
43 | struct ieee80211_sub_if_data, | 44 | struct ieee80211_sub_if_data, |
44 | u.ap); | 45 | u.ap); |
45 | 46 | ||
46 | local->ops->sta_notify(hw, &sdata->vif, | 47 | drv_sta_notify(local, &sdata->vif, STA_NOTIFY_REMOVE, |
47 | STA_NOTIFY_REMOVE, &sta->sta); | 48 | &sta->sta); |
48 | } | 49 | } |
49 | spin_unlock_irqrestore(&local->sta_lock, flags); | 50 | spin_unlock_irqrestore(&local->sta_lock, flags); |
50 | } | 51 | } |
@@ -57,7 +58,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw) | |||
57 | conf.vif = &sdata->vif; | 58 | conf.vif = &sdata->vif; |
58 | conf.type = sdata->vif.type; | 59 | conf.type = sdata->vif.type; |
59 | conf.mac_addr = sdata->dev->dev_addr; | 60 | conf.mac_addr = sdata->dev->dev_addr; |
60 | local->ops->remove_interface(hw, &conf); | 61 | drv_remove_interface(local, &conf); |
61 | } | 62 | } |
62 | } | 63 | } |
63 | 64 | ||
@@ -67,7 +68,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw) | |||
67 | /* stop hardware */ | 68 | /* stop hardware */ |
68 | if (local->open_count) { | 69 | if (local->open_count) { |
69 | ieee80211_led_radio(local, false); | 70 | ieee80211_led_radio(local, false); |
70 | local->ops->stop(hw); | 71 | drv_stop(local); |
71 | } | 72 | } |
72 | return 0; | 73 | return 0; |
73 | } | 74 | } |