mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
interfaces: use get_interface_list() to identify hardware
Media settings probe is suboptimal for hardware detection and interfaces_hardware() already uses the function to decide where to enforce hardware settings. PR: https://forum.opnsense.org/index.php?topic=30923.0
This commit is contained in:
parent
f291908c7b
commit
d4db4023e6
@ -328,6 +328,7 @@ function get_wireless_channel_info($interface)
|
||||
}
|
||||
|
||||
$ifdescrs = legacy_config_get_interfaces(['virtual' => false]);
|
||||
$hwifs = array_keys(get_interface_list());
|
||||
|
||||
$a_interfaces = &config_read_array('interfaces');
|
||||
$a_ppps = &config_read_array('ppps', 'ppp');
|
||||
@ -2014,8 +2015,7 @@ include("head.inc");
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
if (count($mediaopts_list) > 1):?>
|
||||
<?php if (in_array($pconfig['if'], $hwifs)): ?>
|
||||
<!-- Hardware settings -->
|
||||
<div class="tab-content content-box col-xs-12 __mb">
|
||||
<div class="table-responsive">
|
||||
@ -2088,8 +2088,7 @@ include("head.inc");
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
endif;?>
|
||||
<?php endif ?>
|
||||
<!-- static IPv4 -->
|
||||
<div class="tab-content content-box col-xs-12 __mb" id="staticv4" style="display:none">
|
||||
<div class="table-responsive">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user