X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Fsrc%2Ffw.c;h=a98b735086bfaeeab18e8b43f48e19992098dda1;hb=1739e9d7c5d581c15d1ae331d83352f8998a6a83;hp=8f0b33e6b8b6065bef73a5a5c33d6cc1c6dcd860;hpb=1a2fbaf4f621cbb37f36637b1d4101f453474f7a;p=carl9170fw.git diff --git a/carlfw/src/fw.c b/carlfw/src/fw.c index 8f0b33e..a98b735 100644 --- a/carlfw/src/fw.c +++ b/carlfw/src/fw.c @@ -21,6 +21,7 @@ */ #include "carl9170.h" #include "fwdsc.h" +#include "pattern_generator.h" #define FILL(small, big, more...) \ .small = { \ @@ -54,9 +55,7 @@ const struct carl9170_firmware_descriptor __section(fwdsc) __visible carl9170fw_ #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 +65,9 @@ const struct carl9170_firmware_descriptor __section(fwdsc) __visible carl9170fw_ #ifdef CONFIG_CARL9170FW_WOL BIT(CARL9170FW_WOL) | #endif /* CONFIG_CARL9170FW_WOL */ +#if defined(CONFIG_CARL9170FW_PATTERN_GENERATOR) + BIT(CARL9170FW_PATTERN_GENERATOR) | +#endif /* CONFIG_CARL9170FW_PATTERN_GENERATOR */ (0)), .miniboot_size = cpu_to_le16(0), @@ -91,7 +93,6 @@ const struct carl9170_firmware_descriptor __section(fwdsc) __visible carl9170fw_ ), #endif /* CONFIG_CARL9170FW_WOL */ - FILL(motd, MOTD, .fw_year_month_day = cpu_to_le32( CARL9170FW_SET_DAY(CARL9170FW_VERSION_DAY) + @@ -100,6 +101,14 @@ const struct carl9170_firmware_descriptor __section(fwdsc) __visible carl9170fw_ .desc = "Community AR9170 Linux", .release = CARL9170FW_VERSION_GIT), +#if defined(CONFIG_CARL9170FW_PATTERN_GENERATOR) + FILL(pattern, PATTERN, + .soft_pattern = cpu_to_le32(&fw.wlan.soft_pattern), + .num_patterns = __CARL9170FW_NUM_PATTERNS, + .patterns = { /* 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),