1#!/bin/sh 2if [ $# -lt 1 ]; then 3 echo "Usage: hci_mib PHY_IF $#"; 4 exit; 5fi 6 7phy_if=/sys/kernel/debug/ieee80211/$1/ssv6200/hci 8if [ ! -d $phy_if ]; then 9 echo "$phy_if does not exist."; 10 exit; 11fi 12 13cd $phy_if 14 15echo 0 > hci_isr_mib_enable 16echo 1 > hci_isr_mib_reset 17echo 1 > hci_isr_mib_enable 18 19sleep 10 20 21echo 0 > hci_isr_mib_enable 22 23echo "ISR total time: `cat isr_total_time`" 24echo "RX IO time: `cat rx_io_time`" 25echo "RX IO count: `cat rx_io_count`" 26echo "RX process time: `cat rx_proc_time`" 27echo "TX IO time: `cat tx_io_time`" 28echo "TX IO count: `cat tx_io_count`" 29