diff options
author | Stefano Brivio <stefano.brivio@polimi.it> | 2008-02-08 00:31:25 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:37:06 -0500 |
commit | a297170dae2595f31b02e4553a3b217e115a15cf (patch) | |
tree | cd066108d463275e7f5fca4c1de9609732f28a16 /drivers/net/wireless/b43legacy/b43legacy.h | |
parent | eed0fd2102206bf6108460274c40ee6b8e863369 (diff) |
b43legacy: fix upload of beacon packets to the hardware
This fixes uploading of the beacon data and writing of the TIM and DTIM offsets.
The patch by Michael Buesch has been ported to b43legacy.
Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43legacy/b43legacy.h')
-rw-r--r-- | drivers/net/wireless/b43legacy/b43legacy.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/drivers/net/wireless/b43legacy/b43legacy.h b/drivers/net/wireless/b43legacy/b43legacy.h index ba08574a2470..17abf3cb2b1f 100644 --- a/drivers/net/wireless/b43legacy/b43legacy.h +++ b/drivers/net/wireless/b43legacy/b43legacy.h | |||
@@ -130,13 +130,19 @@ | |||
130 | #define B43legacy_SHM_SH_HOSTFHI 0x0060 /* Hostflags ucode opts (high) */ | 130 | #define B43legacy_SHM_SH_HOSTFHI 0x0060 /* Hostflags ucode opts (high) */ |
131 | /* SHM_SHARED crypto engine */ | 131 | /* SHM_SHARED crypto engine */ |
132 | #define B43legacy_SHM_SH_KEYIDXBLOCK 0x05D4 /* Key index/algorithm block */ | 132 | #define B43legacy_SHM_SH_KEYIDXBLOCK 0x05D4 /* Key index/algorithm block */ |
133 | /* SHM_SHARED beacon variables */ | 133 | /* SHM_SHARED beacon/AP variables */ |
134 | #define B43legacy_SHM_SH_DTIMP 0x0012 /* DTIM period */ | ||
135 | #define B43legacy_SHM_SH_BTL0 0x0018 /* Beacon template length 0 */ | ||
136 | #define B43legacy_SHM_SH_BTL1 0x001A /* Beacon template length 1 */ | ||
137 | #define B43legacy_SHM_SH_BTSFOFF 0x001C /* Beacon TSF offset */ | ||
138 | #define B43legacy_SHM_SH_TIMPOS 0x001E /* TIM position in beacon */ | ||
134 | #define B43legacy_SHM_SH_BEACPHYCTL 0x0054 /* Beacon PHY TX control word */ | 139 | #define B43legacy_SHM_SH_BEACPHYCTL 0x0054 /* Beacon PHY TX control word */ |
135 | /* SHM_SHARED ACK/CTS control */ | 140 | /* SHM_SHARED ACK/CTS control */ |
136 | #define B43legacy_SHM_SH_ACKCTSPHYCTL 0x0022 /* ACK/CTS PHY control word */ | 141 | #define B43legacy_SHM_SH_ACKCTSPHYCTL 0x0022 /* ACK/CTS PHY control word */ |
137 | /* SHM_SHARED probe response variables */ | 142 | /* SHM_SHARED probe response variables */ |
138 | #define B43legacy_SHM_SH_PRPHYCTL 0x0188 /* Probe Resp PHY TX control */ | 143 | #define B43legacy_SHM_SH_PRTLEN 0x004A /* Probe Response template length */ |
139 | #define B43legacy_SHM_SH_PRMAXTIME 0x0074 /* Probe Response max time */ | 144 | #define B43legacy_SHM_SH_PRMAXTIME 0x0074 /* Probe Response max time */ |
145 | #define B43legacy_SHM_SH_PRPHYCTL 0x0188 /* Probe Resp PHY TX control */ | ||
140 | /* SHM_SHARED rate tables */ | 146 | /* SHM_SHARED rate tables */ |
141 | /* SHM_SHARED microcode soft registers */ | 147 | /* SHM_SHARED microcode soft registers */ |
142 | #define B43legacy_SHM_SH_UCODEREV 0x0000 /* Microcode revision */ | 148 | #define B43legacy_SHM_SH_UCODEREV 0x0000 /* Microcode revision */ |
@@ -601,6 +607,12 @@ struct b43legacy_wl { | |||
601 | u8 nr_devs; | 607 | u8 nr_devs; |
602 | 608 | ||
603 | bool radiotap_enabled; | 609 | bool radiotap_enabled; |
610 | |||
611 | /* The beacon we are currently using (AP or IBSS mode). | ||
612 | * This beacon stuff is protected by the irq_lock. */ | ||
613 | struct sk_buff *current_beacon; | ||
614 | bool beacon0_uploaded; | ||
615 | bool beacon1_uploaded; | ||
604 | }; | 616 | }; |
605 | 617 | ||
606 | /* Pointers to the firmware data and meta information about it. */ | 618 | /* Pointers to the firmware data and meta information about it. */ |
@@ -699,9 +711,6 @@ struct b43legacy_wldev { | |||
699 | u8 max_nr_keys; | 711 | u8 max_nr_keys; |
700 | struct b43legacy_key key[58]; | 712 | struct b43legacy_key key[58]; |
701 | 713 | ||
702 | /* Cached beacon template while uploading the template. */ | ||
703 | struct sk_buff *cached_beacon; | ||
704 | |||
705 | /* Firmware data */ | 714 | /* Firmware data */ |
706 | struct b43legacy_firmware fw; | 715 | struct b43legacy_firmware fw; |
707 | 716 | ||