Search Linux Wireless

Re: [PATCH] iw: scan using meshid

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

 



On Thu, 2013-04-25 at 15:02 -0700, Jacob Minshall wrote:

> +	if (ies || meshid) {
> +		tmpies = (unsigned char *) malloc(ies_len + meshid_len);
> +		if (!tmpies)
> +			goto nla_put_failure;
> +		if (ies) {
> +			memcpy(tmpies, ies, ies_len);
> +			free(ies);
> +		}
> +		if (meshid) {
> +			memcpy(&tmpies[ies_len], meshid, meshid_len);
> +			free(meshid);
>  		}

In theory, I guess they should be sorted, but I suppose it doesn't
really matter.

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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux