code: def status(self, obj):
          
  
          reply = self._send_cmd_to_wpas(obj['name'], 'STATUS', True)
          result = reply.split('\n')
  
          status = ''
          for l in result:
              if l.startswith('wpa_state='):
                  status = l[10:]
                  return status_dict[status.lower()]
docs: Get the wifi interface status.