PERFORCE change 67799 for review
Sam Leffler
sam at FreeBSD.org
Tue Dec 28 08:31:00 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=67799
Change 67799 by sam at sam_ebb on 2004/12/28 16:30:24
expose ieee80211_phymode_name and use it to improve debug
msgs for scanning
Affected files ...
.. //depot/projects/wifi/sys/net80211/ieee80211.c#16 edit
.. //depot/projects/wifi/sys/net80211/ieee80211_node.c#29 edit
.. //depot/projects/wifi/sys/net80211/ieee80211_proto.h#12 edit
Differences ...
==== //depot/projects/wifi/sys/net80211/ieee80211.c#16 (text+ko) ====
@@ -51,7 +51,7 @@
#include <net/bpf.h>
-static const char *ieee80211_phymode_name[] = {
+const char *ieee80211_phymode_name[] = {
"auto", /* IEEE80211_MODE_AUTO */
"11a", /* IEEE80211_MODE_11A */
"11b", /* IEEE80211_MODE_11B */
==== //depot/projects/wifi/sys/net80211/ieee80211_node.c#29 (text+ko) ====
@@ -286,9 +286,10 @@
ic->ic_stats.is_scan_active++;
} else
ic->ic_stats.is_scan_passive++;
- IEEE80211_DPRINTF(ic, IEEE80211_MSG_SCAN, "begin %s scan, scangen %u\n",
+ IEEE80211_DPRINTF(ic, IEEE80211_MSG_SCAN,
+ "begin %s scan in %s mode, scangen %u\n",
(ic->ic_flags & IEEE80211_F_ASCAN) ? "active" : "passive",
- ic->ic_scan.nt_scangen);
+ ieee80211_phymode_name[ic->ic_curmode], ic->ic_scan.nt_scangen);
/*
* Clear scan state and flush any previously seen AP's.
*/
==== //depot/projects/wifi/sys/net80211/ieee80211_proto.h#12 (text+ko) ====
@@ -51,6 +51,7 @@
((*(_ic)->ic_send_mgmt)(_ic, _ni, _type, _arg))
extern const char *ieee80211_mgt_subtype_name[];
+extern const char *ieee80211_phymode_name[];
extern void ieee80211_proto_attach(struct ieee80211com *);
extern void ieee80211_proto_detach(struct ieee80211com *);
More information about the p4-projects
mailing list