https://github.com/quackduck/chanch
macOS WiFi channel changer
https://github.com/quackduck/chanch
airport channel macos wifi wifi-channel
Last synced: 28 days ago
JSON representation
macOS WiFi channel changer
- Host: GitHub
- URL: https://github.com/quackduck/chanch
- Owner: quackduck
- License: unlicense
- Created: 2024-01-03T21:30:43.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-05T23:41:16.000Z (over 1 year ago)
- Last Synced: 2024-11-08T19:48:08.442Z (11 months ago)
- Topics: airport, channel, macos, wifi, wifi-channel
- Language: Swift
- Homepage:
- Size: 99.6 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chanch - Full control of channel and channel width on macOS
Install with `brew install quackduck/tap/chanch` or build from source with `swift build` in the root directory.
```
Chanch is a WiFi channel changer for macOS allowing complete control over channel
number and channel widthUSAGE: chanch --status
chanch [--80 | --40 | --20]ARGUMENTS:
The WiFi channel number to change toOPTIONS:
--80/--40/--20 Channel width in MHz.
(Usually 80 for the 5GHz band and 20 for the 2GHz band)
--status Just print the current channel, don't change it.
-h, --help Show help information.
```Chanch is useful when packet sniffing (for example, with [wif](https://github.com/quackduck/wif)). To discover channels to listen on, you can use the airport utility to run a network scan: `/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s`
Why not just use `airport`, you ask? Essentially, it's because `airport` doesn't allow changing the channel width, so when you switch from a 2.4 GHz band channel to a 5 GHz band channel, you may still have the narrower 20 MHz width instead of the expected 80 MHz width. Here's a demo of this: