def get_ht_mcs(mcs):
answers = dict()<EOL>max_rx_supp_data_rate = (mcs[<NUM_LIT:10>] & ((mcs[<NUM_LIT:11>] & <NUM_LIT>) << <NUM_LIT:8>))<EOL>tx_mcs_set_defined = not not (mcs[<NUM_LIT:12>] & (<NUM_LIT:1> << <NUM_LIT:0>))<EOL>tx_mcs_set_equal = not (mcs[<NUM_LIT:12>] & (<NUM_LIT:1> << <NUM_LIT:1>))<EOL>tx_max_num_spatial_streams = ((mcs[<NUM_LIT:12>] >> <NUM_LIT:2>) & <NUM_LIT:3>) + <NUM_LIT:1><EOL>tx_unequal_modulation = not not (mcs[<NUM_LIT:12>] & (<NUM_LIT:1> << <NUM_LIT:4>))<EOL>if max_rx_supp_data_rate:<EOL><INDENT>answers['<STR_LIT>'] = max_rx_supp_data_rate<EOL><DEDENT>if tx_mcs_set_defined and tx_mcs_set_equal:<EOL><INDENT>answers['<STR_LIT>'] = get_mcs_index(mcs)<EOL><DEDENT>elif tx_mcs_set_defined:<EOL><INDENT>answers['<STR_LIT>'] = get_mcs_index(mcs)<EOL>answers['<STR_LIT>'] = bool(tx_unequal_modulation)<EOL>answers['<STR_LIT>'] = tx_max_num_spatial_streams<EOL><DEDENT>else:<EOL><INDENT>answers['<STR_LIT>'] = get_mcs_index(mcs)<EOL><DEDENT>return answers<EOL>
http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/util.c?id=v3.17#n591.

    Positional arguments:
    mcs -- bytearray.

    Returns:
    Dict.