Logo Search packages:      
Sourcecode: wicd version File versions

def wicd::wnettools::WirelessInterface::SetChannel (   self,
  channel 
)

Set the channel of the wireless interface.

Keyword arguments:
channel -- channel to set the interface to

Definition at line 914 of file wnettools.py.

00914                                  :
        """ Set the channel of the wireless interface.

        Keyword arguments:
        channel -- channel to set the interface to

        """
        if not self.iface: return False
        if not channel.isdigit():
            print 'WARNING: Invalid channel found.  Aborting!'
            return False
        
        cmd = 'iwconfig %s channel %s' % (self.iface, str(channel))
        if self.verbose: print cmd
        misc.Run(cmd)

    def SetKey(self, key):


Generated by  Doxygen 1.6.0   Back to index