def get_mcs_index(mcs):
answers = list()<EOL>for mcs_bit in range(<NUM_LIT>):<EOL><INDENT>mcs_octet = int(mcs_bit / <NUM_LIT:8>)<EOL>mcs_rate_bit = <NUM_LIT:1> << mcs_bit % <NUM_LIT:8><EOL>mcs_rate_idx_set = not not (mcs[mcs_octet] & mcs_rate_bit)<EOL>if not mcs_rate_idx_set:<EOL><INDENT>continue<EOL><DEDENT>answers.append(mcs_bit)<EOL><DEDENT>return answers<EOL>
http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/util.c?id=v3.17#n453.

    Positional arguments:
    mcs -- bytearray

    Returns:
    List.