X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=net80211%2Fieee80211_var.h;h=0c5af90ec751f54583ddb30c195dd5bfe4dbaf38;hb=6f471d5f175cbcefb519a09f874331c332ee0e45;hp=2d50c9dff5257752f2fd87dd4e73cded96a7ad4c;hpb=2c0d8db912df58c3a1b506e144e2b5d72edec617;p=madwifi%2F.git diff --git a/net80211/ieee80211_var.h b/net80211/ieee80211_var.h index 2d50c9d..0c5af90 100644 --- a/net80211/ieee80211_var.h +++ b/net80211/ieee80211_var.h @@ -35,9 +35,6 @@ #ifndef _NET80211_IEEE80211_VAR_H_ #define _NET80211_IEEE80211_VAR_H_ -#define IEEE80211_DEBUG -#define IEEE80211_DEBUG_REFCNT /* Node reference count debugging */ - /* Definitions for IEEE 802.11 drivers. */ #include @@ -92,6 +89,19 @@ Note: Atheros chips use 7 bits when power is specified in half dBm units, with a #define IEEE80211_SWBMISS_THRESHOLD 10 /* software beacon miss threshold, in TUs */ +#define DEV_NAME(_d) \ + ((NULL == _d || NULL == _d->name || 0 == strncmp(_d->name, "wifi%d", 6)) ? \ + "MadWifi" : \ + _d->name) +#define VAP_DEV_NAME(_v) \ + ((NULL == _v) ? \ + "MadWifi" : \ + DEV_NAME(_v->iv_dev)) +#define VAP_IC_DEV_NAME(_v) \ + ((NULL == _v || NULL == _v->iv_ic) ? \ + "MadWifi" : \ + DEV_NAME(_v->iv_ic->ic_dev)) + #define IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024) #define IEEE80211_TU_TO_MS(x) (((x) * 1024) / 1000) #define IEEE80211_TU_TO_JIFFIES(x) ((IEEE80211_TU_TO_MS(x) * HZ) / 1000) @@ -353,6 +363,8 @@ struct ieee80211com { u_int8_t ic_chanchange_tbtt; u_int8_t ic_chanchange_chan; + /* Global debug flags applicable to all VAPs */ + int ic_debug; /* Virtual AP create/delete */ struct ieee80211vap *(*ic_vap_create)(struct ieee80211com *, const char *, int, int, struct net_device *); @@ -391,6 +403,14 @@ struct ieee80211com { /* U-APSD support */ void (*ic_uapsd_flush)(struct ieee80211_node *); + /* continuous transmission support */ + void (*ic_set_txcont)(struct ieee80211com *, int); + int (*ic_get_txcont)(struct ieee80211com *); + void (*ic_set_txcont_power)(struct ieee80211com *, u_int); + int (*ic_get_txcont_power)(struct ieee80211com *); + void (*ic_set_txcont_rate)(struct ieee80211com *, u_int); + u_int (*ic_get_txcont_rate)(struct ieee80211com *); + /* Set coverage class */ void (*ic_set_coverageclass)(struct ieee80211com *);