Search Linux Wireless

Re: [PATCH] add basic support for parsing country information element

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

 



On Sun, 2009-05-03 at 22:09 -0700, Marcel Holtmann wrote:
> ---
>  scan.c |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/scan.c b/scan.c
> index 2976115..c503487 100644
> --- a/scan.c
> +++ b/scan.c
> @@ -91,6 +91,16 @@ static void print_ign(unsigned char type, unsigned char len, unsigned char *data
>  	/* ignore for now, not too useful */
>  }
>  
> +static void print_country(unsigned char type, unsigned char len, unsigned char *data)
> +{
> +	int i;
> +
> +	printf("\tCountry: %.*s data:", 3, data);

IIRC the third characters there is a space if it's in- and outdoor, it
might make sense to parse it instead of just printing it?

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[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