echo '<li>';
             echo '<ul>';
             echo "<li>Title: {$protocol->title}</li>";
             echo "<li>Description: {$protocol->description}</li>";
             echo '</ul>';
             echo '</li>';
         }
         echo '</ul>';
     } else {
         echo "There was an error getting the protocols.<br />\n";
         echo $gapi->getErrorsStr();
     }
     break;
 case 'channel':
     $protocol = "802.11b";
     $channels = $gapi->getChannels($protocol);
     if ($channels) {
         echo '<ul>';
         foreach ($channels as $channel) {
             echo '<li>';
             echo '<ul>';
             echo "<li>Title: {$channel->title}</li>";
             echo "<li>Description: {$channel->description}</li>";
             echo '</ul>';
             echo '</li>';
         }
         echo '</ul>';
     } else {
         echo "There was an error getting the channels.<br />\n";
         echo $gapi->getErrorsStr();
     }