wl12xx: declare suspend/resume callbacks (for wowlan)
Additionally, add wow_enabled field to wl, to indicate whether wowlan was configured. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
This commit is contained in:
committed by
Luciano Coelho
parent
2c0f24636c
commit
402e486160
@@ -1350,6 +1350,23 @@ static struct notifier_block wl1271_dev_notifier = {
|
|||||||
.notifier_call = wl1271_dev_notify,
|
.notifier_call = wl1271_dev_notify,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static int wl1271_op_suspend(struct ieee80211_hw *hw,
|
||||||
|
struct cfg80211_wowlan *wow)
|
||||||
|
{
|
||||||
|
struct wl1271 *wl = hw->priv;
|
||||||
|
wl1271_debug(DEBUG_MAC80211, "mac80211 suspend wow=%d", !!wow);
|
||||||
|
wl->wow_enabled = !!wow;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int wl1271_op_resume(struct ieee80211_hw *hw)
|
||||||
|
{
|
||||||
|
struct wl1271 *wl = hw->priv;
|
||||||
|
wl1271_debug(DEBUG_MAC80211, "mac80211 resume wow=%d",
|
||||||
|
wl->wow_enabled);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static int wl1271_op_start(struct ieee80211_hw *hw)
|
static int wl1271_op_start(struct ieee80211_hw *hw)
|
||||||
{
|
{
|
||||||
wl1271_debug(DEBUG_MAC80211, "mac80211 start");
|
wl1271_debug(DEBUG_MAC80211, "mac80211 start");
|
||||||
@@ -3506,6 +3523,8 @@ static const struct ieee80211_ops wl1271_ops = {
|
|||||||
.stop = wl1271_op_stop,
|
.stop = wl1271_op_stop,
|
||||||
.add_interface = wl1271_op_add_interface,
|
.add_interface = wl1271_op_add_interface,
|
||||||
.remove_interface = wl1271_op_remove_interface,
|
.remove_interface = wl1271_op_remove_interface,
|
||||||
|
.suspend = wl1271_op_suspend,
|
||||||
|
.resume = wl1271_op_resume,
|
||||||
.config = wl1271_op_config,
|
.config = wl1271_op_config,
|
||||||
.prepare_multicast = wl1271_op_prepare_multicast,
|
.prepare_multicast = wl1271_op_prepare_multicast,
|
||||||
.configure_filter = wl1271_op_configure_filter,
|
.configure_filter = wl1271_op_configure_filter,
|
||||||
|
@@ -564,6 +564,12 @@ struct wl1271 {
|
|||||||
|
|
||||||
int tcxo_clock;
|
int tcxo_clock;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* wowlan trigger was configured during suspend.
|
||||||
|
* (currently, only "ANY" trigger is supported)
|
||||||
|
*/
|
||||||
|
bool wow_enabled;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* AP-mode - links indexed by HLID. The global and broadcast links
|
* AP-mode - links indexed by HLID. The global and broadcast links
|
||||||
* are always active.
|
* are always active.
|
||||||
|
Reference in New Issue
Block a user