Date: Tue, 28 Dec 2004 16:30:59 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 67799 for review Message-ID: <200412281630.iBSGUxs0029312@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=67799 Change 67799 by sam@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 *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412281630.iBSGUxs0029312>