提交 b37e5842 编写于 作者: L Luis Carlos Cobo 提交者: David S. Miller

[PATCH] libertas: revert CAPINFO_MASK to its original value

CAPINFO_MASK changed on commits 981f187b and a091095b. Reverting to the original
value.  Also move CAPINFO_MASK into the sole user, join.c.  CAPINFO_MASK
should be in host CPU byte order; capability is converted to device
byte order elsewhere.

This fixes OLPC ticket #2161
Signed-off-by: NLuis Carlos Cobo <luisca@cozybit.com>
Acked-by: NDan Williams <dcbw@redhat.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 00af0157
......@@ -20,6 +20,10 @@
/* Supported rates for ad-hoc B mode */
static u8 adhoc_rates_b[5] = { 0x02, 0x04, 0x0b, 0x16, 0x00 };
/* The firmware needs certain bits masked out of the beacon-derviced capability
* field when associating/joining to BSSs.
*/
#define CAPINFO_MASK (~(0xda00))
/**
* @brief This function finds common rates between rate1 and card rates.
......
......@@ -7,8 +7,6 @@
#include <linux/if_ether.h>
#include <asm/byteorder.h>
#define CAPINFO_MASK (~(0x00da))
struct ieeetypes_cfparamset {
u8 elementid;
u8 len;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册