http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/scan.c?id=v3.17#n227.

    Positional arguments:
    data -- bytearray data to read.

def get_supprates(_, data):
    """http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/scan.c?id=v3.17#n227.

    Positional arguments:
    data -- bytearray data to read.
    """
    answer = list()
    for i in range(len(data)):
        r = data[i] & 0x7f
        if r == BSS_MEMBERSHIP_SELECTOR_VHT_PHY and data[i] & 0x80:
            value = 'VHT'
        elif r == BSS_MEMBERSHIP_SELECTOR_HT_PHY and data[i] & 0x80:
            value = 'HT'
        else:
            value = '{0}.{1}'.format(int(r / 2), int(5 * (r & 1)))
        answer.append('{0}{1}'.format(value, '*' if data[i] & 0x80 else ''))
    return answer