modified test.py to get wlan channel