0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

OpenWrt tips

Last updated at Posted at 2015-10-19

set MCS Index

  • dev <devname> set bitrates [legacy-<2.4|5> <legacy rate in Mbps>] [ht-mcs-<2.4|5> <MCS index>] [vht-mcs-<2.4|5> <NSS:MCSx,MCSy... | NSS:MCSx-MCSy>*]

  • Ex. iw wlan0 set bitrates ht-mcs-2.4 7

get wlan status

iw dev <devname> station dump
iw dev <devname> assoclist

get_wlan_status.sh
# !/bin/ash
CMDNAME=`basename $0`

if [ $# == '2' -a $1 == '-s' ]; then
  VALUE_S=$2
elif [ $# == '1' -a $1 != '-s' ]; then
  VALUE_S=$1
else
  echo "Usage: $CMDNAME [-s string]" 1>&2
  exit 1 ;
fi

while true;
	do date;
	iw dev $VALUE_S station dump ;
	iwinfo $VALUE_S assoclist;
	sleep 1;
	clear;
done;
  • Ex. ./get_wlan_status.sh -s <devname>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?