[PR #22] [MERGED] [api] [ui] Add support for changing wifi channels #256

Closed
opened 2026-03-04 01:35:56 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spr-networks/super/pull/22
Author: @lts-rad
Created: 5/6/2022
Status: Merged
Merged: 5/6/2022
Merged by: @lts-rad

Base: devHead: wifi_settings


📝 Commits (10+)

  • a46c80b [api] Add channel switch command
  • 8237198 [api] fix command
  • 0786141 [api] Update iw command, fix 2.4ghz
  • 09a660c [api] Fix frequency parsing for bands in iw_list
  • 7886118 [api] Add print for chan_switch command
  • 5b15d10 [api] Add calculated parameters when changing channels
  • 7e2b523 [ui] Update WiFi channel selection
  • d906ecc [base] Add DFS support by default
  • 312a00a [ui] Add setChannel call to mockAPI
  • d398b9d [ui] Add WiFiChannelParameters code

📊 Changes

11 files changed (+588 additions, -97 deletions)

View changed files

📝 api/code/api.go (+1 -62)
📝 api/code/radios.go (+219 -0)
📝 api/scripts/iw_list.py (+12 -5)
📝 base/template_configs/scripts/gen_hostapd.sh (+1 -0)
📝 frontend/src/api/MockAPI.js (+9 -0)
📝 frontend/src/api/Wifi.js (+1 -0)
frontend/src/components/Wifi/WifiChannelParameters.js (+298 -0)
📝 frontend/src/components/Wifi/WifiClients.js (+14 -10)
📝 frontend/src/components/Wifi/WifiHostapd.js (+20 -15)
📝 frontend/src/components/Wifi/WifiScan.js (+10 -2)
📝 frontend/src/views/WirelessConfiguration.js (+3 -3)

📄 Description

With certain cards, iw commands are not available when hostapd is using the nl80211 driver. Instead, use the hostapd chan_switch command to change channels.

This feature adds:

  • An API call for selecting channels and calculating center frequencies
  • UI for displaying channel and bandwidth configurations

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spr-networks/super/pull/22 **Author:** [@lts-rad](https://github.com/lts-rad) **Created:** 5/6/2022 **Status:** ✅ Merged **Merged:** 5/6/2022 **Merged by:** [@lts-rad](https://github.com/lts-rad) **Base:** `dev` ← **Head:** `wifi_settings` --- ### 📝 Commits (10+) - [`a46c80b`](https://github.com/spr-networks/super/commit/a46c80bff27ea47ccbe5b57f7e52ff67214f0e27) [api] Add channel switch command - [`8237198`](https://github.com/spr-networks/super/commit/8237198fcd3d71a6ae2d51fe3dc6230b0a931c5f) [api] fix command - [`0786141`](https://github.com/spr-networks/super/commit/0786141b0f2b74f1115561feb6eaeeed537f1054) [api] Update iw command, fix 2.4ghz - [`09a660c`](https://github.com/spr-networks/super/commit/09a660c164a5988bbd9b761dfa98254f06620847) [api] Fix frequency parsing for bands in iw_list - [`7886118`](https://github.com/spr-networks/super/commit/7886118f0238603b3a056d30f2b6554ca3cb532a) [api] Add print for chan_switch command - [`5b15d10`](https://github.com/spr-networks/super/commit/5b15d104153c96ef626f2663f2cdd9e563db959f) [api] Add calculated parameters when changing channels - [`7e2b523`](https://github.com/spr-networks/super/commit/7e2b523a6bbdbf2d2575b27888226542dc92a4ef) [ui] Update WiFi channel selection - [`d906ecc`](https://github.com/spr-networks/super/commit/d906eccf07dfda0cdab7cae65c50d8c260ad2204) [base] Add DFS support by default - [`312a00a`](https://github.com/spr-networks/super/commit/312a00a170ed8fd2f1591bbdb4dc0f0a41d9be3a) [ui] Add setChannel call to mockAPI - [`d398b9d`](https://github.com/spr-networks/super/commit/d398b9d346b22aa74be709a13435ae5eea29c87e) [ui] Add WiFiChannelParameters code ### 📊 Changes **11 files changed** (+588 additions, -97 deletions) <details> <summary>View changed files</summary> 📝 `api/code/api.go` (+1 -62) 📝 `api/code/radios.go` (+219 -0) 📝 `api/scripts/iw_list.py` (+12 -5) 📝 `base/template_configs/scripts/gen_hostapd.sh` (+1 -0) 📝 `frontend/src/api/MockAPI.js` (+9 -0) 📝 `frontend/src/api/Wifi.js` (+1 -0) ➕ `frontend/src/components/Wifi/WifiChannelParameters.js` (+298 -0) 📝 `frontend/src/components/Wifi/WifiClients.js` (+14 -10) 📝 `frontend/src/components/Wifi/WifiHostapd.js` (+20 -15) 📝 `frontend/src/components/Wifi/WifiScan.js` (+10 -2) 📝 `frontend/src/views/WirelessConfiguration.js` (+3 -3) </details> ### 📄 Description With certain cards, iw commands are not available when hostapd is using the nl80211 driver. Instead, use the hostapd chan_switch command to change channels. This feature adds: - An API call for selecting channels and calculating center frequencies - UI for displaying channel and bandwidth configurations --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 01:35:56 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/super#256
No description provided.