X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fsrc%2Ffw.c;h=be9001a099b751cfa6629501d06175611559209f;hb=6ab15e7eeb60d71950cba1931dc5b03ff8163e5b;hp=5bde67505e2b0250003382d24dfb2a8afdc2179b;hpb=3ea9a05ea4197045ff042588b06f3a270db9b8a3;p=carl9170fw.git diff --git a/carlfw/src/fw.c b/carlfw/src/fw.c index 5bde675..be9001a 100644 --- a/carlfw/src/fw.c +++ b/carlfw/src/fw.c @@ -31,7 +31,7 @@ more \ } -const struct carl9170_firmware_descriptor __section(fwdsc) carl9170fw_desc = { +const struct carl9170_firmware_descriptor __section(fwdsc) __visible carl9170fw_desc = { FILL(otus, OTUS, .feature_set = cpu_to_le32(BIT(CARL9170FW_DUMMY_FEATURE) | BIT(CARL9170FW_USB_RESP_EP2) | @@ -54,9 +54,7 @@ const struct carl9170_firmware_descriptor __section(fwdsc) carl9170fw_desc = { #ifdef CONFIG_CARL9170FW_SECURITY_ENGINE BIT(CARL9170FW_COMMAND_CAM) | #endif /* CONFIG_CARL9170FW_SECURITY_ENGINE */ -#ifdef CONFIG_CARL9170FW_CAB_QUEUE BIT(CARL9170FW_WLANTX_CAB) | -#endif /* CONFIG_CARL9170FW_CAB_QUEUE */ #ifdef CONFIG_CARL9170FW_UNUSABLE BIT(CARL9170FW_UNUSABLE) | #endif /* CONFIG_CARL9170FW_UNUSABLE */ @@ -66,6 +64,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), @@ -91,7 +92,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) + @@ -100,6 +100,15 @@ 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),