2014-09-15 08:15:07

by Rostislav Lisovy

[permalink] [raw]
Subject: Re: Set channel (freq) and bandwidth (BW) using iw command

Hello Okhwan;

Okhwan Lee <ohlee@...> writes:
> $ modprobe ath10k_pci
> $ iw wlan0 set channel 36 HT20
> command failed: Device or resource busy (-16)
> $ iw wlan0 set freq 5180 40 5190
> command failed: Device or resource busy (-16)
> $ iw wlan0 set freq 5180 80 5210
> command failed: Device or resource busy (-16)

I think that the first step to make this work is that
the interface has to be "up". Another think to consider is
which interface modes do allow manual channel setting.

This works for me:
ip link set wlan0 down
iw dev wlan0 set type monitor
ip link set wlan0 up
iw dev wlan0 set freq 5825

Best regards;
Rostislav