I stumbled on this while fixing up an old script that relied on iwconfig

I added this to my .bashrc
```
function iwconfig { iw dev $1 link ; iw dev $1 info | grep -E 
'channel|txpower|addr' ; }
```

and then you get something fairly useful
```
$ iwconfig wlp2s0f0
Connected to aa:aa:aa:aa:aa:aa (on wlp2s0f0)
        SSID: MYESSID
        freq: 5680.0
        RX: 80578793 bytes (78400 packets)
        TX: 11770367 bytes (33802 packets)
        signal: -38 dBm
        rx bitrate: 573.5 MBit/s 40MHz HE-MCS 11 HE-NSS 2 HE-GI 0 HE-DCM 0
        tx bitrate: 516.0 MBit/s 40MHz HE-MCS 10 HE-NSS 2 HE-GI 0 HE-DCM 0
        bss flags: short-slot-time
        dtim period: 1
        beacon int: 100
        addr c2:d8:04:d4:de:0b
        channel 136 (5680 MHz), width: 40 MHz, center1: 5670 MHz
        txpower 22.00 dBm
```


I also have this in my bashrc to show everything
```
function ifwconfig { iw dev $1 link ; iw dev $1 info | grep -E 
'channel|txpower|addr' ; ip addr show dev $1 ; }
```
-- 
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to