From owner-svn-src-projects@FreeBSD.ORG Fri Jun 26 19:12:50 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 028041065672; Fri, 26 Jun 2009 19:12:50 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E56138FC17; Fri, 26 Jun 2009 19:12:49 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5QJCn6k095575; Fri, 26 Jun 2009 19:12:49 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5QJCnB8095573; Fri, 26 Jun 2009 19:12:49 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <200906261912.n5QJCnB8095573@svn.freebsd.org> From: Rui Paulo Date: Fri, 26 Jun 2009 19:12:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r195072 - projects/mesh11s/sbin/ifconfig X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2009 19:12:50 -0000 Author: rpaulo Date: Fri Jun 26 19:12:49 2009 New Revision: 195072 URL: http://svn.freebsd.org/changeset/base/195072 Log: Simplify printing of meshid and ssid. Sponsored by: The FreeBSD Foundation Modified: projects/mesh11s/sbin/ifconfig/ifieee80211.c Modified: projects/mesh11s/sbin/ifconfig/ifieee80211.c ============================================================================== --- projects/mesh11s/sbin/ifconfig/ifieee80211.c Fri Jun 26 19:04:08 2009 (r195071) +++ projects/mesh11s/sbin/ifconfig/ifieee80211.c Fri Jun 26 19:12:49 2009 (r195072) @@ -4217,14 +4217,12 @@ ieee80211_status(int s) gotregdomain = 0; printf("\t"); - if (opmode == IEEE80211_M_MBSS || verbose) { + if (opmode == IEEE80211_M_MBSS) { printf("meshid "); getid(s, 0, data, sizeof(data), &len, 1); print_string(data, len); - } - if (verbose) printf(" "); - if (opmode != IEEE80211_M_MBSS || verbose) { + } else { if (get80211val(s, IEEE80211_IOC_NUMSSIDS, &num) < 0) num = 0; printf("ssid "); @@ -4238,7 +4236,6 @@ ieee80211_status(int s) } else print_string(data, len); } - c = getcurchan(s); if (c->ic_freq != IEEE80211_CHAN_ANY) { char buf[14];