X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=blobdiff_plain;f=carlfw%2Finclude%2Fwl.h;fp=carlfw%2Finclude%2Fwl.h;h=8c06f6a12ca0673bcd8a016bfd15723df125bb98;hp=4f0c76de42fd324ac4553da504916aad69bf3d4a;hb=6476369c2c6d4ba487408cb5daff8df0480d6b4a;hpb=7b5eda181245312c9b4f444d5cb2ed997ec5b6c3 diff --git a/carlfw/include/wl.h b/carlfw/include/wl.h index 4f0c76d..8c06f6a 100644 --- a/carlfw/include/wl.h +++ b/carlfw/include/wl.h @@ -265,6 +265,15 @@ void wlan_cab_modify_dtim_beacon(const unsigned int vif, const unsigned int bcn_addr, const unsigned int bcn_len); +static inline void wlan_prepare_wol(void) +{ + /* set filter policy to: discard everything */ + fw.wlan.rx_filter = CARL9170_RX_FILTER_EVERYTHING; + + /* reenable rx dma */ + wlan_trigger(AR9170_DMA_TRIGGER_RXQ); +} + static inline void __check_wlantx(void) { BUILD_BUG_ON(CARL9170_TX_SUPERDESC_LEN & 3);