Jim Young
changed
bug 9921
Comment # 2
on bug 9921
from Jim Young
Until some type of API is made available, the OS X "airport" utility can be run
in a terminal window to do what you need.
The airport utility itself is buried deep in the System folder...
> $ sudo find /System -name airport -print
> Password:
> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport
> $
Set up an alias for it or put it (perhaps temporarily) in you $PATH.
Some of the airport options will require admin privs to run, others don't. The
airport command with no parameters will display its various command line
options.
Use the --getinfo option to list current channel (and other useful info).
$ airport --getinfo
> $ /System//Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport --getinfo
> agrCtlRSSI: -58
> agrExtRSSI: 0
> agrCtlNoise: -92
> agrExtNoise: 0
> state: running
> op mode: station
> lastTxRate: 78
> maxRate: 144
> lastAssocStatus: 0
> 802.11 auth: open
> link auth: wpa2
> BSSID: xx:xx:xx:xx:xx:xx
> SSID: HereIsMynetwork
> MCS: 12
> channel: 153
> $
Use the --channel=XXX option to set the channel to use.
> $ sudo /System//Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport --channel=161
> Password:
> $
Run the airport --getinfo command a second time to confirm the channel change.
You are receiving this mail because:
- You are watching all bug changes.