Correct the alignment of some of the members in the wi_frame structure.

The structure is the right length, but some of the members (notably
wi_q_info) were off a bit. This causes the received signal strength
values to appear bogus.
This commit is contained in:
Bill Paul 1999-07-20 20:03:42 +00:00
parent e50479cc81
commit 7694cd9368
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48940
2 changed files with 10 additions and 6 deletions

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_wireg.h,v 1.31 1999/05/07 03:14:21 wpaul Exp $
* $Id: if_wireg.h,v 1.4 1999/05/07 03:28:52 wpaul Exp $
*/
struct wi_counters {
@ -543,9 +543,11 @@ struct wi_ltv_mcast {
*/
struct wi_frame {
u_int16_t wi_status; /* 0x00 */
u_int32_t wi_rsvd0; /* 0x02 */
u_int16_t wi_rsvd0; /* 0x02 */
u_int16_t wi_rsvd1; /* 0x04 */
u_int16_t wi_q_info; /* 0x06 */
u_int16_t wi_rsvd1; /* 0x08 */
u_int16_t wi_rsvd2; /* 0x08 */
u_int16_t wi_rsvd3; /* 0x0A */
u_int16_t wi_tx_ctl; /* 0x0C */
u_int16_t wi_frame_ctl; /* 0x0E */
u_int16_t wi_id; /* 0x10 */

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_wireg.h,v 1.31 1999/05/07 03:14:21 wpaul Exp $
* $Id: if_wireg.h,v 1.4 1999/05/07 03:28:52 wpaul Exp $
*/
struct wi_counters {
@ -543,9 +543,11 @@ struct wi_ltv_mcast {
*/
struct wi_frame {
u_int16_t wi_status; /* 0x00 */
u_int32_t wi_rsvd0; /* 0x02 */
u_int16_t wi_rsvd0; /* 0x02 */
u_int16_t wi_rsvd1; /* 0x04 */
u_int16_t wi_q_info; /* 0x06 */
u_int16_t wi_rsvd1; /* 0x08 */
u_int16_t wi_rsvd2; /* 0x08 */
u_int16_t wi_rsvd3; /* 0x0A */
u_int16_t wi_tx_ctl; /* 0x0C */
u_int16_t wi_frame_ctl; /* 0x0E */
u_int16_t wi_id; /* 0x10 */