X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fsrc%2Ffw.c;h=bebb39e73d84e3bf6f1d4b2f560eda6f3eb8de30;hb=6ad7dd18fb9a1c674708e32fce3f4e89c8f1d83d;hp=b621813c1e1be339c4ee275dc652bd39e083ddc6;hpb=af915846d44d23adc02c7ded807282d607b46faa;p=carl9170fw.git diff --git a/carlfw/src/fw.c b/carlfw/src/fw.c index b621813..bebb39e 100644 --- a/carlfw/src/fw.c +++ b/carlfw/src/fw.c @@ -37,18 +37,19 @@ const struct carl9170_firmware_descriptor __section(fwdsc) carl9170fw_desc = { BIT(CARL9170FW_USB_RESP_EP2) | BIT(CARL9170FW_HANDLE_BACK_REQ) | BIT(CARL9170FW_RX_FILTER) | -#ifdef CONFIG_CARL9170FW_USB_INIT_FIRMWARE + BIT(CARL9170FW_HW_COUNTERS) | + BIT(CARL9170FW_RX_BA_FILTER) | BIT(CARL9170FW_USB_INIT_FIRMWARE) | -# ifdef CONFIG_CARL9170FW_USB_UP_STREAM +#ifdef CONFIG_CARL9170FW_USB_UP_STREAM BIT(CARL9170FW_USB_UP_STREAM) | -# endif /* CONFIG_CARL9170FW_USB_UP_STREAM */ -# ifdef CONFIG_CARL9170FW_USB_DOWN_STREAM +#endif /* CONFIG_CARL9170FW_USB_UP_STREAM */ +#ifdef CONFIG_CARL9170FW_USB_DOWN_STREAM BIT(CARL9170FW_USB_DOWN_STREAM) | -# endif /* CONFIG_CARL9170FW_USB_DOWN_STREAM */ -#endif /* CONFIG_CARL9170FW_USB_INIT_FIRMWARE */ +#endif /* CONFIG_CARL9170FW_USB_DOWN_STREAM */ #ifdef CONFIG_CARL9170FW_RADIO_FUNCTIONS BIT(CARL9170FW_COMMAND_PHY) | BIT(CARL9170FW_PSM) | + BIT(CARL9170FW_FIXED_5GHZ_PSM) | #endif /* CONFIG_CARL9170FW_RADIO_FUNCTIONS */ #ifdef CONFIG_CARL9170FW_SECURITY_ENGINE BIT(CARL9170FW_COMMAND_CAM) | @@ -65,6 +66,9 @@ const struct carl9170_firmware_descriptor __section(fwdsc) carl9170fw_desc = { #ifdef CONFIG_CARL9170FW_WOL BIT(CARL9170FW_WOL) | #endif /* CONFIG_CARL9170FW_WOL */ +#ifdef CONFIG_CARL9170FW_RADAR + BIT(CARL9170FW_RADAR_PATTERN_GENERATOR) | +#endif /* CONFIG_CARL9170FW_RADAR */ (0)), .miniboot_size = cpu_to_le16(0), @@ -90,7 +94,6 @@ const struct carl9170_firmware_descriptor __section(fwdsc) carl9170fw_desc = { ), #endif /* CONFIG_CARL9170FW_WOL */ - FILL(motd, MOTD, .fw_year_month_day = cpu_to_le32( CARL9170FW_SET_DAY(CARL9170FW_VERSION_DAY) + @@ -99,11 +102,20 @@ const struct carl9170_firmware_descriptor __section(fwdsc) carl9170fw_desc = { .desc = "Community AR9170 Linux", .release = CARL9170FW_VERSION_GIT), + +#ifdef CONFIG_CARL9170FW_RADAR + FILL(radar, RADAR, + .soft_radar = cpu_to_le32(&fw.wlan.soft_radar), + .num_radars = __CARL9170FW_NUM_RADARS, + .radars = { /* filled by the fwprepare tool */ }, + ), +#endif /* CONFIG_CARL9170FW_RADAR */ + FILL(dbg, DBG, .bogoclock_addr = cpu_to_le32(0), .counter_addr = cpu_to_le32(&fw.counter), - .rx_total_addr = cpu_to_le32(&fw.wlan.rx_total), - .rx_overrun_addr = cpu_to_le32(&fw.wlan.rx_overruns), + .rx_total_addr = cpu_to_le32(0), + .rx_overrun_addr = cpu_to_le32(0), .rx_filter = cpu_to_le32(&fw.wlan.rx_filter), ),