Search Linux Wireless

[PATCH 01/10] qca-swiss-army-knife: fix string length for ar9340

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Signed-off-by: Gabor Juhos <juhosg@xxxxxxxxxxx>
 tools/initvals/initvals.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/initvals/initvals.c b/tools/initvals/initvals.c
index a19dca2..653fdfb 100644
--- a/tools/initvals/initvals.c
+++ b/tools/initvals/initvals.c
@@ -782,7 +782,7 @@ static void print_initvals_family(char *family, bool check)
 		if (!check)
 			printf("#endif /* INITVALS_9330_1P2_H */\n");
-	} else if (strncmp(family, "ar9340", 10) == 0) {
+	} else if (strncmp(family, "ar9340", 6) == 0) {
 		if (!check) {
 			printf("#ifndef INITVALS_9340_H\n");
 			printf("#define INITVALS_9340_H\n");

To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Linux Kernel]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Photo]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]     [Free Dating]     [M2M Wireless]

Add to Google Powered by Linux