Search Linux Wireless

Re: patch for iw

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

 



On Tue, 2011-06-21 at 18:01 +0200, Alexander Simon wrote:

> @@ -44,6 +45,12 @@ static int join_ibss(struct nl80211_stat
>  	argv++;
>  	argc--;
>  
> +	if (argc && parse_channel_type(argv[0], &htval)) {
> +		NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_CHANNEL_TYPE, htval);
> +		argv++;
> +		argc--;
> +	}

> +/*
> + * Convert a string "HT20", "HT40+" or "HT40-" into nl80211
> + * value. Conversion is case insensitive. Returns 1 on success, 0 on error.
> + */
> +
> +int parse_channel_type(const char *str, unsigned int *htval)

That return value isn't the way other functions return their status in
iw, so I won't apply this, it'll just confuse things.

johannes

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