svn commit: r331064 - head/sbin/ifconfig
Allan Jude
allanjude at freebsd.org
Sat Mar 17 01:57:14 UTC 2018
On 2018-03-16 19:54, Kristof Provost wrote:
> 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
>
It seems like what you were looking for was just 'ifconfig -v scan'
I think the reason it is limited to 14, is so that it will fit in 80 col
wide terminals in non-verbose mode.
--
Allan Jude
More information about the svn-src-all
mailing list