developer | 428a8d2 | 2023-09-01 15:00:06 +0800 | [diff] [blame] | 1 | diff --git a/package/network/services/hostapd/files/hostapd.uc b/package/network/services/hostapd/files/hostapd.uc |
| 2 | index 43637ac..feba364 100644 |
| 3 | --- a/package/network/services/hostapd/files/hostapd.uc |
| 4 | +++ b/package/network/services/hostapd/files/hostapd.uc |
| 5 | @@ -84,6 +84,7 @@ function iface_freq_info(iface, config, params) |
| 6 | if (freq < 4000) |
| 7 | width = 0; |
| 8 | |
| 9 | + width = req.args.ch_width; |
| 10 | return hostapd.freq_info(freq, sec_offset, width); |
| 11 | } |
| 12 | |
| 13 | @@ -386,6 +387,7 @@ let main_obj = { |
| 14 | up: true, |
| 15 | frequency: 0, |
| 16 | sec_chan_offset: 0, |
| 17 | + ch_width: 0, |
| 18 | csa: true, |
| 19 | csa_count: 0, |
| 20 | }, |
| 21 | diff --git a/package/network/services/hostapd/files/wpa_supplicant.uc b/package/network/services/hostapd/files/wpa_supplicant.uc |
| 22 | index f8a3fcb..45ddbb7 100644 |
| 23 | --- a/package/network/services/hostapd/files/wpa_supplicant.uc |
| 24 | +++ b/package/network/services/hostapd/files/wpa_supplicant.uc |
| 25 | @@ -240,6 +240,7 @@ function iface_hostapd_notify(phy, ifname, iface, state) |
| 26 | msg.up = true; |
| 27 | msg.frequency = status.frequency; |
| 28 | msg.sec_chan_offset = status.sec_chan_offset; |
| 29 | + msg.ch_width = status.ch_width; |
| 30 | break; |
| 31 | default: |
| 32 | return; |