summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-05 00:51:06 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-05 00:51:06 +0000
commit7f7695fe9fb98b5aedbb20ec6deedd028fcd95e7 (patch)
treeb4dad17c99d23b8eb7d6bc4ce28ce8964ee289f4 /etc
parent05460fd30bb63f1f72110419f86b64c48e8c0ba2 (diff)
downloadpfsense-7f7695fe9fb98b5aedbb20ec6deedd028fcd95e7.zip
pfsense-7f7695fe9fb98b5aedbb20ec6deedd028fcd95e7.tar.gz
Correctly enable hostap on wi type cards
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc14
1 files changed, 8 insertions, 6 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 5947c64..d6d7cfc 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -323,6 +323,7 @@ function interfaces_wireless_configure($if, $wlcfg) {
" ssid " . escapeshellarg($wlcfg['ssid']) . " channel " .
escapeshellarg($wlcfg['channel']) . " ";
+ /* XXX: apparent not everything likes this little blurb */
//if ($wlcfg['stationname'])
// $ifcargs .= "stationname " . escapeshellarg($wlcfg['stationname']) . " ";
@@ -343,15 +344,12 @@ function interfaces_wireless_configure($if, $wlcfg) {
switch ($wlcfg['mode']) {
case 'hostap':
- if (strstr($if, "wi"))
- $ifcargs .= "mediaopt ibss mediaopt hostap ";
- else if (strstr($if, "ath"))
- $ifcargs .= "mediaopt hostap ";
+ $ifcargs .= "mediaopt hostap ";
break;
case 'ibss':
case 'IBSS':
if (strstr($if, "wi"))
- $ifcargs .= "mediaopt hostap mediaopt ibss ";
+ $ifcargs .= "mediaopt ibss ";
else if (strstr($if, "an"))
$ifcargs .= "mediaopt adhoc ";
else if (strstr($if, "ath"))
@@ -360,7 +358,7 @@ function interfaces_wireless_configure($if, $wlcfg) {
case 'bss':
case 'BSS':
if (strstr($if, "wi"))
- $ifcargs .= "mediaopt hostap mediaopt ibss ";
+ $ifcargs .= "mediaopt ibss ";
else if (strstr($if, "an"))
$ifcargs .= "mediaopt adhoc ";
else if (strstr($if, "ath"))
@@ -370,6 +368,10 @@ function interfaces_wireless_configure($if, $wlcfg) {
$ifcargs .= "up";
+ unmute_kernel_msgs();
+
+ echo "ifconfig {$ifcargs}";
+
mwexec("/sbin/ifconfig " . $ifcargs);
return 0;
OpenPOWER on IntegriCloud