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

    Positional arguments:
    data -- bytearray data to read.

    Returns:
    String.
    """
    if data[0] == 0:
        return '<no flags>'
    if data[0] & 1:
        return 'NonERP_Present'
    if data[0] & 2:
        return 'Use_Protection'
    if data[0] & 4:
        return 'Barker_Preamble_Mode'
    return ''
