On 2016/08/31 17:04, Stefan Sperling wrote:
> This makes ifconfig display baudrates defined in ifmedia.h tables.
> 
> Before (prints media subtype):
> 
> $ ifconfig iwn0 | grep media:
>         media: IEEE802.11 autoselect (OFDM6 mode 11a)
> $ ifconfig em0 | grep media: 
>         media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
> 
> After (prints corresponding baudrate):
> 
> $ ifconfig iwn0 | grep media:
>         media: IEEE802.11 autoselect (6Mbps mode 11a)
> $ ifconfig em0 | grep media: 
>         media: Ethernet autoselect (100Mbps full-duplex,rxpause,txpause)
> 
> The output of 'ifconfig media' (which prints command syntax) is unchanged
> and we fall back to printing the media subtype if no baudrate is found.
> 
> I've kept this disabled in the ramdisk for now.
> The baudrate table will grow when more 11n features are implemented.

I'd rather have this as an extra rather than replacing the more
specific information.

Reply via email to