'Update Wifi stats using the input method.
Stats is a list of dict (one dict per hotspot)
:returns: list -- Stats is a list of dict (hotspot)'

@GlancesPlugin._check_decorator
@GlancesPlugin._log_result_decorator
def update(self):

    self.reset()
    if (not wifi_tag):
        return self.stats
    if (self.input_method == 'local'):
        try:
            netiocounters = psutil.net_io_counters(pernic=True)
        except UnicodeDecodeError:
            return self.stats
        for net in netiocounters:
            if self.is_hide(net):
                continue
            try:
                wifi_cells = Cell.all(net)
            except InterfaceError:
                pass
            except Exception as e:
                logger.debug('WIFI    plugin:    Can    not    grab    cellule    stats    ({})'.format(e))
                pass
            else:
                for wifi_cell in wifi_cells:
                    hotspot = {'key': self.get_key(), 'ssid': wifi_cell.ssid, 'signal': wifi_cell.signal, 'quality': wifi_cell.quality, 'encrypted': wifi_cell.encrypted, 'encryption_type': (wifi_cell.encryption_type if wifi_cell.encrypted else None)}
                    self.stats.append(hotspot)
    elif (self.input_method == 'snmp'):
        pass
    return self.stats
