From: Christian Lamparter Date: Sat, 22 Jan 2011 23:10:01 +0000 (+0100) Subject: carl9170: enable wake-on-lan feature testing X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c42d6cf25d648d95387d8a881aa0cab657470726;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git carl9170: enable wake-on-lan feature testing Signed-off-by: Christian Lamparter Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/carl9170/fw.c b/drivers/net/wireless/ath/carl9170/fw.c index 546b4e4ec5ea..a4e5b4458c00 100644 --- a/drivers/net/wireless/ath/carl9170/fw.c +++ b/drivers/net/wireless/ath/carl9170/fw.c @@ -264,6 +264,9 @@ static int carl9170_fw(struct ar9170 *ar, const __u8 *data, size_t len) FIF_PROMISC_IN_BSS; } + if (SUPP(CARL9170FW_WOL)) + device_set_wakeup_enable(&ar->udev->dev, true); + ar->fw.vif_num = otus_desc->vif_num; ar->fw.cmd_bufs = otus_desc->cmd_bufs; ar->fw.address = le32_to_cpu(otus_desc->fw_address);