The script helps to regenerate initval header files for ath9k. screenshot: $ ./gen_ath9k_headers.sh ar5008 ar5008 => ar5008_initvals.h $ ./gen_ath9k_headers.sh ar5008 => ar5008_initvals.h ar9001 => ar9001_initvals.h ar9002 => ar9002_initvals.h ar9003-2p2 => ar9003_2p2_initvals.h ar9330-1p1 => ar9330_1p1_initvals.h ar9330-1p2 => ar9330_1p2_initvals.h ar9485 => ar9485_initvals.h ar9580-1p0 => ar9580_1p0_initvals.h Signed-off-by: Gabor Juhos <juhosg@xxxxxxxxxxx> --- gen_ath9k_headers.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) create mode 100755 gen_ath9k_headers.sh diff --git a/gen_ath9k_headers.sh b/gen_ath9k_headers.sh new file mode 100755 index 0000000..fb7c313 --- /dev/null +++ b/gen_ath9k_headers.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +gen_ath9k_header() +{ + local family="$1" + local ath9k_hdr + + case $family in + ar5008 |\ + ar9001 |\ + ar9002 |\ + ar9003-2p2|\ + ar9330-1p1|\ + ar9330-1p2|\ + ar9485|\ + ar9580-1p0) + ath9k_hdr="$(echo $family | tr '-' '_')_initvals.h" + ;; + *) + echo "unknown family: '$family'" 1>&2 + return 1 + ;; + esac + + echo "$family => $ath9k_hdr" + ./initvals -w -f $family > "./$ath9k_hdr" +} + +FAMILIES="$@" +[ -z "$FAMILIES" ] && FAMILIES="ar5008 ar9001 ar9002 ar9003-2p2 ar9330-1p1 ar9330-1p2 ar9485 ar9580-1p0" + +make clean all ATHEROS=1 >/dev/null + +for family in $FAMILIES; do + gen_ath9k_header $family +done -- 1.7.2.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html