X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=carlfw%2Fsrc%2Fwlan.c;h=59e9141feeccdb9d107a8bde210cc1b968a87710;hb=491f71f4ff849a9a62ec619693c2108423bf9db1;hp=bc9ddc12d66975520081baae9395d20f4e6011c6;hpb=35cac8dcfa9d01fff0c929f0e2b9cc38fc919589;p=carl9170fw.git diff --git a/carlfw/src/wlan.c b/carlfw/src/wlan.c index bc9ddc1..59e9141 100644 --- a/carlfw/src/wlan.c +++ b/carlfw/src/wlan.c @@ -644,8 +644,8 @@ static void wlan_check_rx_overrun(void) { uint32_t overruns, total; - fw.wlan.rx_total += total = get(AR9170_MAC_REG_RX_TOTAL); - fw.wlan.rx_overruns += overruns = get(AR9170_MAC_REG_RX_OVERRUN); + fw.tally.rx_total += total = get(AR9170_MAC_REG_RX_TOTAL); + fw.tally.rx_overrun += overruns = get(AR9170_MAC_REG_RX_OVERRUN); if (unlikely(overruns)) { if (overruns == total) { DBG("RX Overrun"); @@ -756,7 +756,7 @@ static void wlan_wol_connection_monitor(void) if (!fw.wlan.fw_desc_available) return; - memset(nullf, 0, sizeof(nullf)); + memset(nullf, 0, sizeof(*nullf)); nullf->s.len = sizeof(struct carl9170_tx_superdesc) + sizeof(struct ar9170_tx_hwdesc) + @@ -1120,10 +1120,12 @@ static void handle_pretbtt(void) fw.wlan.cab_flush_time = get_clock_counter(); #endif /* CONFIG_CARL9170FW_CAB_QUEUE */ +#ifdef CONFIG_CARL9170FW_RADIO_FUNCTIONS rf_psm(); send_cmd_to_host(4, CARL9170_RSP_PRETBTT, 0x00, (uint8_t *) &fw.phy.psm.state); +#endif /* CONFIG_CARL9170FW_RADIO_FUNCTIONS */ } static void handle_atim(void)