Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Mar 2018 00:54:46 +0100
From:      "Kristof Provost" <kristof@sigsegv.be>
To:        "Kirill Ponomarev" <krion@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r331064 - head/sbin/ifconfig
Message-ID:  <90FB9B8F-DF2E-49E5-BD86-197CE3B312A4@sigsegv.be>
In-Reply-To: <201803161656.w2GGuvOv016658@repo.freebsd.org>
References:  <201803161656.w2GGuvOv016658@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 16 Mar 2018, at 17:56, Kirill Ponomarev wrote:
> Author: krion (ports committer)
> Date: Fri Mar 16 16:56:56 2018
> New Revision: 331064
> URL: https://svnweb.freebsd.org/changeset/base/331064
>
> Log:
>   Extend SSID maximum string length to 32 chars to support longer SSID
>   names.
>
>   Approved by:	adrian
>   Differential Revision:	https://reviews.freebsd.org/D14710
>
> Modified:
>   head/sbin/ifconfig/ifieee80211.c
>
> Modified: head/sbin/ifconfig/ifieee80211.c
> ==============================================================================
> --- head/sbin/ifconfig/ifieee80211.c	Fri Mar 16 16:06:25 
> 2018	(r331063)
> +++ head/sbin/ifconfig/ifieee80211.c	Fri Mar 16 16:56:56 
> 2018	(r331064)
> @@ -3503,7 +3503,7 @@ list_scan(int s)
>
>  	getchaninfo(s);
>
> -	ssidmax = verbose ? IEEE80211_NWID_LEN : 14;
> +	ssidmax = verbose ? IEEE80211_NWID_LEN : 32;

IEEE80211_NWID_LEN is 32, so this says ‘verbose ? 32 : 32’ now.

>  	printf("%-*.*s  %-17.17s  %4s %4s   %-7s  %3s %4s\n"
>  		, ssidmax, ssidmax, "SSID/MESH ID"
>  		, "BSSID"

Regards,
Kristof



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?90FB9B8F-DF2E-49E5-BD86-197CE3B312A4>