struct ifnet *ifp = ic->ic_ifp;
struct ath_softc *sc = ifp->if_softc;
struct ath_hal *ah = sc->sc_ah;
+#ifdef ATH_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
u_int32_t rfilt;
/* XXX calibration timer? */
struct ifnet *ifp = ic->ic_ifp;
struct ath_softc *sc = ifp->if_softc;
struct ath_hal *ah = sc->sc_ah;
+#ifdef ATH_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
u_int32_t rfilt;
sc->sc_scanning = 0;
struct ieee80211_node *ni = NULL;
int i, error, stamode;
u_int32_t rfilt;
+#ifdef ATH_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
static const HAL_LED_STATE leds[] = {
HAL_LED_INIT, /* IEEE80211_S_INIT */
HAL_LED_SCAN, /* IEEE80211_S_SCAN */
const struct ieee80211_txparam *tp = ni->ni_txparms;
struct sample_node *sn = ATH_NODE_SAMPLE(an);
const HAL_RATE_TABLE *rt = sc->sc_currates;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
int x, y, srate, rix;
KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode));
struct ieee80211com *ic = vap->iv_ic;
struct ieee80211_node *ni;
enum ieee80211_state ostate;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
ostate = vap->iv_state;
IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE, "%s: %s -> %s (%d)\n",
uint8_t dir, type, subtype, qos;
uint8_t *bssid;
uint16_t rxseq;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
if (m->m_flags & M_AMPDU_MPDU) {
/*
ieee80211_crypto_setkey(struct ieee80211vap *vap, struct ieee80211_key *key)
{
const struct ieee80211_cipher *cip = key->wk_cipher;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
KASSERT(cip != NULL, ("No cipher!"));
{
struct ieee80211com *ic = vap->iv_ic;
enum ieee80211_state ostate;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
ostate = vap->iv_state;
IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE, "%s: %s -> %s (%d)\n",
uint8_t dir, type, subtype, qos;
uint8_t *bssid;
uint16_t rxseq;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
if (m->m_flags & M_AMPDU_MPDU) {
/*
uint16_t *args = arg0;
struct mbuf *m;
uint8_t *frm;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
IEEE80211_NOTE(vap, IEEE80211_MSG_ACTION | IEEE80211_MSG_11N, ni,
"send ADDBA %s: dialogtoken %d "
struct mbuf *m;
uint16_t baparamset;
uint8_t *frm;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
baparamset = SM(args[0], IEEE80211_DELBAPS_TID)
| args[1]
struct ieee80211com *ic = ni->ni_ic;
struct mbuf *m;
uint8_t *frm;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
IEEE80211_NOTE(vap, IEEE80211_MSG_ACTION | IEEE80211_MSG_11N, ni,
"send HT txchwidth: width %d",
struct ieee80211vap *vap = ni->ni_vap;
#ifdef IEEE80211_DEBUG
struct ieee80211com *ic = ni->ni_ic;
-#endif
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
if (ni == vap->iv_bss ||
IEEE80211_ADDR_EQ(ni->ni_bssid, vap->iv_bss->ni_bssid)) {
struct ieee80211com *ic = nt->nt_ic;
struct ieee80211_node *ni;
int hash;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
ni = ic->ic_node_alloc(vap, macaddr);
if (ni == NULL) {
{
struct ieee80211com *ic = vap->iv_ic;
struct ieee80211_node *ni;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
ni = ic->ic_node_alloc(vap, macaddr);
if (ni != NULL) {
const uint8_t macaddr[IEEE80211_ADDR_LEN])
{
struct ieee80211_node *ni;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
IEEE80211_DPRINTF(vap, IEEE80211_MSG_NODE,
"%s: mac<%s>\n", __func__, kether_ntoa(macaddr, ethstr));
const struct ieee80211_scanparams *sp)
{
struct ieee80211_node *ni;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
IEEE80211_DPRINTF(vap, IEEE80211_MSG_NODE,
"%s: mac<%s>\n", __func__, kether_ntoa(wh->i_addr2, ethstr));
{
struct ieee80211_node_table *nt;
struct ieee80211_node *ni;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
nt = &ic->ic_sta;
if (nt->nt_keyixmap != NULL && keyix < nt->nt_keyixmax)
#endif
{
struct ieee80211_node_table *nt = ni->ni_table;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
#ifdef IEEE80211_DEBUG_REFCNT
IEEE80211_DPRINTF(ni->ni_vap, IEEE80211_MSG_NODE,
struct ieee80211_node *nikey;
ieee80211_keyix keyix;
int status;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
/*
* NB: We must beware of LOR here; deleting the key
node_reclaim(struct ieee80211_node_table *nt, struct ieee80211_node *ni)
{
ieee80211_keyix keyix;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
IEEE80211_DPRINTF(ni->ni_vap, IEEE80211_MSG_NODE,
"%s: remove %p<%s> from %s table, refcnt %d\n",
const struct ieee80211_rateset *rs;
struct mbuf *m;
uint8_t *frm;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
if (vap->iv_state == IEEE80211_S_CAC) {
IEEE80211_NOTE(vap, IEEE80211_MSG_OUTPUT, ni,
uint8_t *frm;
uint16_t capinfo;
int has_challenge, is_shared_key, ret, status;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
KASSERT(ni != NULL, ("null node"));
struct ieee80211_node *bss = vap->iv_bss;
struct ieee80211com *ic = vap->iv_ic;
struct mbuf *m;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
if (vap->iv_state == IEEE80211_S_CAC) {
IEEE80211_NOTE(vap, IEEE80211_MSG_OUTPUT, bss,
struct ieee80211_scan_entry *se = &se0->base;
uint8_t rate;
int fail;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
fail = 0;
if (isclr(ic->ic_chan_active, ieee80211_chan2ieee(ic, se->se_chan)))
struct ieee80211com *ic = vap->iv_ic;
/* struct ieee80211_node_table *nt = &ic->ic_sta;*/
struct ieee80211_node *ni, *obss;
+#ifdef IEEE80211_DEBUG
char ethstr[ETHER_ADDRSTRLEN + 1];
+#endif
IEEE80211_DPRINTF(vap, IEEE80211_MSG_WDS,
"%s: creating link to %s on channel %u\n", __func__,