diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-01-09 21:05:31 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:00:18 -0500 |
commit | 63f2dc9f2fd63c8b66f49c53cd26236f3f0785fd (patch) | |
tree | d5735a0bcc21ea3c9a037c8cfc85d4ab86ad10be /drivers/net/wireless/p54/p54.h | |
parent | 6dd1bf3118b62a3ce241dc2b7e05e3d4a28c9eb1 (diff) | |
download | kernel_samsung_aries-63f2dc9f2fd63c8b66f49c53cd26236f3f0785fd.zip kernel_samsung_aries-63f2dc9f2fd63c8b66f49c53cd26236f3f0785fd.tar.gz kernel_samsung_aries-63f2dc9f2fd63c8b66f49c53cd26236f3f0785fd.tar.bz2 |
p54: refactor p54_alloc_skb
Old firmwares had no problems processing frames which filled eighth of the memory window.
However we have to be a bit more careful with fat frames when we talk to new firmwares.
Apart from that, I confess the old logic was a bit weird and not very sophisticated.
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/p54.h')
-rw-r--r-- | drivers/net/wireless/p54/p54.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/p54.h b/drivers/net/wireless/p54/p54.h index 6bd147c..ce93338 100644 --- a/drivers/net/wireless/p54/p54.h +++ b/drivers/net/wireless/p54/p54.h @@ -44,6 +44,8 @@ enum p54_control_frame_types { P54_CONTROL_TYPE_BT_OPTIONS = 35 }; +#define P54_MAX_CTRL_FRAME_LEN 0x1000 + #define P54_HDR_FLAG_CONTROL BIT(15) #define P54_HDR_FLAG_CONTROL_OPSET (BIT(15) + BIT(0)) |