Skip to content

Commit

Permalink
[PATCH] libertas: revert CAPINFO_MASK to its original value
Browse files Browse the repository at this point in the history
CAPINFO_MASK changed on commits 981f187 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: Luis Carlos Cobo <luisca@cozybit.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Luis Carlos Cobo authored and David S. Miller committed Oct 10, 2007
1 parent 00af015 commit b37e584
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions drivers/net/wireless/libertas/join.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/wireless/libertas/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#include <linux/if_ether.h>
#include <asm/byteorder.h>

#define CAPINFO_MASK (~(0x00da))

struct ieeetypes_cfparamset {
u8 elementid;
u8 len;
Expand Down

0 comments on commit b37e584

Please sign in to comment.