diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-06-24 17:20:08 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-06-24 17:20:08 +0200 |
commit | 196b39126c47d07eff30d27207fd5782354c90d2 (patch) | |
tree | 887b1e662bbc25627122d39745ebbae33b74cd6e /sys/src | |
parent | 745be8ad8e53f3252146e29e88f9cbe9060572a1 (diff) |
etheriwl: add rxon() debug print
Diffstat (limited to 'sys/src')
-rw-r--r-- | sys/src/9/pc/etheriwl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/9/pc/etheriwl.c b/sys/src/9/pc/etheriwl.c index 6c0a1a8ff..3e9530ce8 100644 --- a/sys/src/9/pc/etheriwl.c +++ b/sys/src/9/pc/etheriwl.c @@ -1745,8 +1745,9 @@ rxon(Ether *edev, Wnode *bss) } flags = RFlagTSF | RFlagCTSToSelf | RFlag24Ghz | RFlagAuto; - if(0) print("rxon: bssid %E, aid %x, channel %d, filter %x, flags %x\n", - ctlr->bssid, ctlr->aid, ctlr->channel, filter, flags); + if(ctlr->wifi->debug) + print("#l%d: rxon: bssid %E, aid %x, channel %d, filter %x, flags %x\n", + edev->ctlrno, ctlr->bssid, ctlr->aid, ctlr->channel, filter, flags); memset(p = c, 0, sizeof(c)); memmove(p, edev->ea, 6); p += 8; /* myaddr */ |