carl9170: enable wake-on-lan feature testing
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 22 Jan 2011 23:10:01 +0000 (00:10 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Jan 2011 21:03:55 +0000 (16:03 -0500)
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/fw.c

index 546b4e4ec5ea090aaf6ed0ce7b77ed024e3c8fd6..a4e5b4458c00fa0c1a823434d7d25bc3146aa578 100644 (file)
@@ -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);