-
Notifications
You must be signed in to change notification settings - Fork 14
Add WiFi Access point support #1337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+4,067
−537
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c2cfb2e
feature-wifi: Add hostapd
mattiaswal da37904
WiFi: Refactor statd (python) implementation
mattiaswal fec0181
Refactor WiFI implementation
mattiaswal dd18cb6
Wi-Fi: Add channel usage application (python)
mattiaswal c8f989e
yanger: Use HOST.run(ls) instead of glob.glob()
mattiaswal 289e670
YANG: Rename cleartext-symmetric-key => symmetric-key
mattiaswal b75d6af
test: Update statd test data
mattiaswal bac1e76
cli_pretty: Convert show usb to the new SimpleTable
mattiaswal ac39a80
Changelog: Update changelog with the new Wi-Fi Access point feature
mattiaswal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| service <!> name:hostapd :%i \ | ||
| [2345] hostapd -P/var/run/hostapd-%i.pid /etc/hostapd-%i.conf \ | ||
| -- Wi-Fi Access Point @%i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| service name:wpa_supplicant :%i \ | ||
| [2345] wpa_supplicant -s -i %i -c /etc/wpa_supplicant-%i.conf -P/var/run/wpa_supplicant-%i.pid \ | ||
| -- WPA supplicant @%i | ||
| -- Wi-Fi Station @%i | ||
|
|
||
| task name:wifi-scanner :%i [2345] <pid/wpa_supplicant:%i> /usr/libexec/infix/wifi-scanner %i -- Start scanning for SSID @ %i | ||
| task name:wifi-scanner :%i [2345] <pid/wpa_supplicant:%i> /usr/libexec/infix/wifi-scanner %i -- Start scanning for SSID @%i |
3 changes: 3 additions & 0 deletions
3
board/common/rootfs/etc/udev/rules.d/60-rename-wifi-phy.rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Rename WiFi PHY devices from phy0 to radio0 to avoid name clashes | ||
| SUBSYSTEM=="ieee80211", ACTION=="add", KERNEL=="phy*", \ | ||
| RUN+="/bin/sh -c '/usr/sbin/iw phy %k set name radio%n'" |
7 changes: 7 additions & 0 deletions
7
board/common/rootfs/etc/udev/rules.d/70-remove-virtual-wifi-interfaces.rules
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Remove kernel-created WiFi interfaces | ||
| # All WiFi interfaces are now virtual interfaces created by confd | ||
| SUBSYSTEM=="net", ACTION=="add", KERNEL=="wlan*", \ | ||
| TEST=="/sys/class/net/$name/phy80211/name", \ | ||
| PROGRAM="/bin/cat /sys/class/net/%k/phy80211/name", \ | ||
| TEST!="/run/wifi-cleaned-%c", \ | ||
| RUN+="/bin/sh -c '/usr/sbin/iw dev %k del && touch /run/wifi-cleaned-%c'" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.