X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Finclude%2Fwl.h;h=8c06f6a12ca0673bcd8a016bfd15723df125bb98;hb=3fe042ff62f66381315edd486d8f7ef0369e3e58;hp=f56303e4254e62da56b82be5c4352616b3dd06a8;hpb=f19956767de59e88f34f7f17112fd79760ad2918;p=carl9170fw.git diff --git a/carlfw/include/wl.h b/carlfw/include/wl.h index f56303e..8c06f6a 100644 --- a/carlfw/include/wl.h +++ b/carlfw/include/wl.h @@ -259,13 +259,21 @@ static inline __inline __hot void read_tsf(uint32_t *tsf) void wlan_tx(struct dma_desc *desc); void wlan_timer(void); void handle_wlan(void); -void wlan_tx_stuck(const struct carl9170_cmd *cmd, struct carl9170_rsp *rsp); void wlan_cab_flush_queue(const unsigned int vif); 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);