X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=net80211%2F_ieee80211.h;h=e5ec72d0f8b9f31921cd4a82feaccb5773d79857;hb=4e9cfeafe31cc6a15f16b5b970571b98cd6bb241;hp=82d3dbb35b4b22703ea3adb037e12d8f9c86a906;hpb=2c0d8db912df58c3a1b506e144e2b5d72edec617;p=madwifi%2F.git diff --git a/net80211/_ieee80211.h b/net80211/_ieee80211.h index 82d3dbb..e5ec72d 100644 --- a/net80211/_ieee80211.h +++ b/net80211/_ieee80211.h @@ -115,7 +115,7 @@ enum ieee80211_scanmode { * Channels are specified by frequency and attributes. */ struct ieee80211_channel { - u_int16_t ic_freq; /* setting in Mhz */ + u_int16_t ic_freq; /* setting in MHz */ u_int16_t ic_flags; /* see below */ u_int8_t ic_ieee; /* IEEE channel number */ int8_t ic_maxregpower; /* maximum regulatory tx power in dBm */ @@ -225,6 +225,8 @@ struct ieee80211_channel { */ #define IEEE80211_RATE_SIZE 8 /* 802.11 standard */ #define IEEE80211_RATE_MAXSIZE 15 /* max rates we'll handle */ +#define IEEE80211_SANITISE_RATESIZE(_rsz) \ + ((_rsz > IEEE80211_RATE_MAXSIZE) ? IEEE80211_RATE_MAXSIZE : _rsz) struct ieee80211_rateset { u_int8_t rs_nrates;