'get all support mode from interface wireless'

@staticmethod
def get_supported_interface(dev):

    _iface = {'info': {}, 'Supported': []}
    try:
        output = check_output(['iw', dev, 'info'], stderr=STDOUT, universal_newlines=True)
        for line in output.split('\n DCTB '):
            _iface['info'][line.split()[0]] = line.split()[1]
        rulesfilter = '|    grep    "Supported    interface    modes"    -A    10    |    grep    "*"'
        supportMode = popen('iw    phy{}    info    {}'.format(_iface['info']['wiphy'], rulesfilter)).read()
        for mode in supportMode.split('\n DCTB  DCTB '):
            _iface['Supported'].append(mode.split('*    ')[1])
    except CalledProcessError:
        return _iface
    return _iface
