def set_iface(self, status):   
    
    if self.IS_MON:
      cmd = 'airmon-ng stop ' + self.get_iface()
      print INFO + 'Restoring %s wireless interface...' %self.IFACE_MON
      proc = subprocess.call(cmd, shell = True, stdout = subprocess.PIPE)
      self.IS_MON = False
      print INFO + 'Done'
    else:
      cmd = 'airmon-ng start ' + self.get_iface()
      print INFO + 'Enabling monitor mode...'
      proc = subprocess.call(cmd, shell = True, stdout = subprocess.PIPE)
      self.check_iface()
      print INFO + "Monitor mode enabled on %s" %self.IFACE
Wireless interface driver. Puts it on monitor mode 
dataset/ETHPy150Open jgilhutton/pyxiewps_WPShack-Python/Version-1.0/pyxiewps-EN.py/Config.set_iface