Search Linux Wireless

Re: [PATCH 15/15] initvals: add script for regenerating ath9k header files

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

 



On Mon, Dec 19, 2011 at 10:25:00PM +0100, Gabor Juhos wrote:
> 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
> +	

The above line had a trailing tab, apart from that, everything looks
great, thanks so much! Applied and pushed!

  Luis
--
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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux