def get_capabilities(_, data):
answers = list()<EOL>for i in range(len(data)):<EOL><INDENT>base = i * <NUM_LIT:8><EOL>for bit in range(<NUM_LIT:8>):<EOL><INDENT>if not data[i] & (<NUM_LIT:1> << bit):<EOL><INDENT>continue<EOL><DEDENT>answers.append(CAPA.get(bit + base, bit))<EOL><DEDENT><DEDENT>return answers<EOL>
http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/scan.c?id=v3.17#n796.

    Positional arguments:
    data -- bytearray data to read.

    Returns:
    List.