Is there a way in OpenWrt to read the current value of the RTS threshold for a specific interface without installing iwconfig?
What I'm looking for is the value of RTS thr
that can be found in the output of iwconfig device
:
wlp2s0 IEEE 802.11bgn ESSID:"my_essid" Mode:Managed Frequency:2.412 GHz Access Point: 00:DE:AD:BE:EF:00 Bit Rate=54 Mb/s Tx-Power=16 dBm Retry long limit:7 RTS thr:off Fragment thr:off
Since iwconfig
is deprecated, I'm looking for a way to obtain this value with iw
or by reading some system files.
What seems strange is that with iw
I can set the RTS threshold by using
iw phy phy0 set rts 80
but I can't read it. After that command the output of iwconfig
is
wlp2s0 IEEE 802.11bgn ESSID:"my_essid" Mode:Managed Frequency:2.412 GHz Access Point: 00:DE:AD:BE:EF:00 Bit Rate=54 Mb/s Tx-Power=16 dBm Retry long limit:7 RTS thr=80 B Fragment thr:off Encryption key:off Power Management:off Link Quality=70/70 Signal level=-19 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:26 Invalid misc:1916 Missed beacon:0
So the actual question is: where does iwconfig read the value of RTS thr?