carl9170 firmware tools: wol stop after inject error
[carl9170fw.git] / carlfw / include / wl.h
index f56303e4254e62da56b82be5c4352616b3dd06a8..8c06f6a12ca0673bcd8a016bfd15723df125bb98 100644 (file)
@@ -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);