Skip to content

Commit

Permalink
system: console wireless assignment mismatch
Browse files Browse the repository at this point in the history
Some code tries to do this on the fly but newer code does not
(and should not).

PR: https://forum.opnsense.org/index.php?topic=29559.0
  • Loading branch information
fichtner committed Aug 9, 2022
1 parent 0b29f71 commit 47bff68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/etc/inc/console.inc
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ EOD;

if (match_wireless_interface($lanif)) {
config_read_array('interfaces', 'lan', 'wireless');
$config['interfaces']['lan']['if'] .= '_wlan0';
} elseif (isset($config['interfaces']['lan']['wireless'])) {
unset($config['interfaces']['lan']['wireless']);
}
Expand Down Expand Up @@ -441,6 +442,7 @@ EOD;

if (match_wireless_interface($wanif)) {
config_read_array('interfaces', 'wan', 'wireless');
$config['interfaces']['wan']['if'] .= '_wlan0';
} elseif (isset($config['interfaces']['wan']['wireless'])) {
unset($config['interfaces']['wan']['wireless']);
}
Expand All @@ -456,6 +458,7 @@ EOD;

if (match_wireless_interface($optif[$i])) {
config_read_array('interfaces', 'opt' . ($i + 1), 'wireless');
$config['interfaces']['opt' . ($i + 1)]['if'] .= '_wlan0';
} elseif (isset($config['interfaces']['opt' . ($i + 1)]['wireless'])) {
unset($config['interfaces']['opt' . ($i + 1)]['wireless']);
}
Expand Down

0 comments on commit 47bff68

Please sign in to comment.