Subject: alignment of 802.11 structs and MIPS cpus
To: None <tech-net@netbsd.org>
From: Castor Fu <castor@geocast.com>
List: tech-net
Date: 12/09/2000 10:46:30
In net/if_ieee80211.h the following structure
struct ieee80211_nwid {
u_int8_t i_len;
u_int8_t i_nwid[IEEE80211_NWID_LEN];
};
can put i_nwid on an odd byte boundary, but the wi driver treats most data
as 16-bit data. This will result in unaligned accesses which are fatal on
MIPS cpus.
Are there any objections to bumping i_len to u_int16_t? That would force
bumping the kernel rev since this affects the userland, too, right?