Search Linux Wireless

Re: [RFC PATCH] wl1271: add testmode support

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

 



On Mon, 2009-12-21 at 14:36 +0200, Kalle Valo wrote:

> +	cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
> +	if (!cmd)
> +		return -ENOMEM;
> +
> +	/* copy the buffer to make it work with dma */
> +	memcpy(cmd, buf, buf_len);

kmemdup() (more than once in the patch)

> +#ifndef __WL1271_TESTMODE_H__
> +#define __WL1271_TESTMODE_H__
> +
> +#include <net/mac80211.h>
> +
> +int wl1271_tm_cmd(struct ieee80211_hw *hw, void *data, int len);
> +
> +#endif /* __WL1271_TESTMODE_H__ */

probably wouldn't bother with a file for one line ;)

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