Fix MHz spelling (not Mhz) from DFS branch
[madwifi/.git] / net80211 / _ieee80211.h
index 82d3dbb35b4b22703ea3adb037e12d8f9c86a906..e5ec72d0f8b9f31921cd4a82feaccb5773d79857 100644 (file)
@@ -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;