Set the "special" struct ieee80211_channel pointer, IEEE80211_CHAN_ANYC,

to 0x1 instead of 0xffff, so the kernel will trap accidental
dereferences.  I don't set IEEE80211_CHAN_ANYC to NULL because it
may have a distinct meaning in net80211.  Thanks to Steve Woodford
for pointing out that 0xffff may be a valid kernel memory address
on x86.
This commit is contained in:
dyoung 2005-11-20 10:16:51 +00:00
parent 461cd4dbb5
commit cd662cea95
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ struct ieee80211_channel {
#define IEEE80211_CHAN_BYTES 32 /* howmany(IEEE80211_CHAN_MAX, NBBY) */
#define IEEE80211_CHAN_ANY 0xffff /* token for ``any channel'' */
#define IEEE80211_CHAN_ANYC \
((struct ieee80211_channel *) IEEE80211_CHAN_ANY)
((struct ieee80211_channel *) 0x1)
/* bits 0-3 are for private use by drivers */
/* channel attributes */