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

    Positional arguments:
    data -- bytearray data to read.

    Returns:
    Dict.
    """
    answers = dict()
    idx = 0
    while idx < len(data) - 1:
        qri = data[idx]
        proto_id = data[idx + 1]
        answers['Query Response Info'] = qri
        answers['Query Response Length Limit'] = qri & 0x7f
        if qri & (1 << 7):
            answers['PAME-BI'] = True
        answers['proto_id'] = {0: 'ANQP', 1: 'MIH Information Service', 3: 'Emergency Alert System (EAS)',
                               2: 'MIH Command and Event Services Capability Discovery',
                               221: 'Vendor Specific'}.get(proto_id, 'Reserved: {0}'.format(proto_id))
        idx += 2
    return answers
http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/scan.c?id=v3.17#n676.

    Positional arguments:
    data -- bytearray data to read.

    Returns:
    Dict.