diff options
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index f9a5fb5..294801f 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -437,10 +437,14 @@ EOD; $ifcargs .= "wepmode off "; } - if (preg_match($g['wireless_regex'], $if)) { - if ($wlcfg['standard']) - $ifcargs .= "mode {$wlcfg['standard']} "; - } + if(isset($wlcfg['pureg'])) { + $ifcargs .= "mode 11g "; + } else { + if (preg_match($g['wireless_regex'], $if)) { + if ($wlcfg['standard']) + $ifcargs .= "mode {$wlcfg['standard']} "; + } + } switch ($wlcfg['mode']) { case 'hostap': |