Index: /tools/iris-8.0/wleiden.pl
===================================================================
--- /tools/iris-8.0/wleiden.pl	(revision 7508)
+++ /tools/iris-8.0/wleiden.pl	(revision 7509)
@@ -250,5 +250,10 @@
           $output .= "wlans_$if=\"$IFNAME\"\n";
           $output .= "create_args_$IFNAME=\"";
-
+   	  if( $MODE{$if} =~/master/i ) {
+            $output .= " wlanmode ap";
+            $output .= " channel $CHANNEL{$interface}";
+          } else {
+            $output .= " wlanmode sta"
+          }
           if ( $SUBTYPE{$if} =~ /802.11a/i ) {
             $output .= "mode 11a";
@@ -259,12 +264,4 @@
             $output .= "mode 11b";
           }
-
-   	   if( $MODE{$if} =~/master/i ) {
-            $output .= " wlanmode ap";
-            $output .= " channel $CHANNEL{$interface}";
-          } else {
-            $output .= " wlanmode sta"
-          }
-
           $output .= " ssid $ESSID{$interface} regdomain ETSI country NL \"\n";
         }
