def get_supprates(_, data):
answer = list()<EOL>for i in range(len(data)):<EOL><INDENT>r = data[i] & <NUM_LIT><EOL>if r == BSS_MEMBERSHIP_SELECTOR_VHT_PHY and data[i] & <NUM_LIT>:<EOL><INDENT>value = '<STR_LIT>'<EOL><DEDENT>elif r == BSS_MEMBERSHIP_SELECTOR_HT_PHY and data[i] & <NUM_LIT>:<EOL><INDENT>value = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>value = '<STR_LIT>'.format(int(r / <NUM_LIT:2>), int(<NUM_LIT:5> * (r & <NUM_LIT:1>)))<EOL><DEDENT>answer.append('<STR_LIT>'.format(value, '<STR_LIT:*>' if data[i] & <NUM_LIT> else '<STR_LIT>'))<EOL><DEDENT>return answer<EOL>
http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/scan.c?id=v3.17#n227.

    Positional arguments:
    data -- bytearray data to read.