From 425f3e67b6f8b933cdb3d1f17ad5c09233fdf2e7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 4 Sep 2005 03:01:09 +0000 Subject: Handle 11g only correctly --- etc/inc/interfaces.inc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'etc') 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': -- cgit v1.1