Adding WiFi 6 #1728
Replies: 4 comments
-
Hi, Theses changes help me in raspap-webgui with an option "Wifi 6 : On / off" in hotspot/basic tab sudo :/var/www/html/templates/hostapd/nano basic.php Replace the last line
sudo nano /var/www/html/includes/hostapd.php Find the lines (towards the end of the file) :
And before, add these lines :
|
Beta Was this translation helpful? Give feedback.
-
Sorry Replace the last line :
by
sudo nano /var/www/html/includes/hostapd.php Find the lines (towards the end of the file) :
And before, add these lines :
|
Beta Was this translation helpful? Give feedback.
-
Thank you I will try this soon and report back
…On Thu, Jan 9, 2025, 10:20 AM jp2692 ***@***.***> wrote:
Sorry
sudo :/var/www/html/templates/hostapd/nano basic.php
Replace the last line :
</div><!-- /.tab-pane | basic tab -->
by
<div class="row">
<div class="mb-3 col-md-6">
<label for="cbxwifi6"><?php echo _("wifi 6 on/off"); ?>
<select class="form-select" name="cbxwifi6" id="cbxwifi6">
<option value="ieee80211ax=0">off</option>
<option value="ieee80211ax=1"
<?php
if (isset($arrConfig['ieee80211ax'])) {
echo _('selected="selected"');
}
?>
>on</option>
</select>
</label>
</div>
</div>
</div><!-- /.tab-pane | basic tab -->
sudo nano /var/www/html/includes/hostapd.php
Find the lines (towards the end of the file) :
if ($_POST['wpa'] !== 'none') {
$config.= 'wpa_passphrase='.$_POST['wpa_passphrase'].PHP_EOL;
}
And before, add these lines :
if ($_POST['cbxwifi6'] !== 'ieee80211ax=0') {
$config.= 'ieee80211ax=1'.PHP_EOL;
if ($_POST['hw_mode'] === 'ac') {
$config.= 'he_oper_chwidth=1'.PHP_EOL;
$config.= 'he_oper_centr_freq_seg0_idx=42'.PHP_EOL;
}
}
—
Reply to this email directly, view it on GitHub
<#1725 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUW6NU4LW64YVF4RMSYNYZL2J2HTZAVCNFSM6AAAAABU2UE6G2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBQGU2DMMBZGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@jp2692 thanks! I'd probably opt to place this on the advanced (rather than basic) tab, as an option toggle. This way it's grouped with the other toggle switches. |
Beta Was this translation helpful? Give feedback.
-
I am able to add wifi 6 to hostpad manually but if I change anything it's erased.
Hoping for support add or possibly some custom fields to add whatever you want to the config
Beta Was this translation helpful? Give feedback.
All reactions