def get_ies(ie):
answers = dict()<EOL>while len(ie) >= <NUM_LIT:2> and len(ie) >= ie[<NUM_LIT:1>]:<EOL><INDENT>key = ie[<NUM_LIT:0>]  <EOL>len_ = ie[<NUM_LIT:1>]  <EOL>data = ie[<NUM_LIT:2>:len_ + <NUM_LIT:2>]  <EOL>if key in ieprinters and ieprinters[key].flags & <NUM_LIT:1>:<EOL><INDENT>answers.update(get_ie(ieprinters[key], key, data))<EOL><DEDENT>elif key == <NUM_LIT>:<EOL><INDENT>answers.update(get_vendor(data))<EOL><DEDENT>else:<EOL><INDENT>answers['<STR_LIT>'.format(key)] = '<STR_LIT:U+0020>'.join(format(x, '<STR_LIT>') for x in data)<EOL><DEDENT>ie = ie[len_ + <NUM_LIT:2>:]<EOL><DEDENT>return answers<EOL>
http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/scan.c?id=v3.17#n1456.

    Positional arguments:
    ie -- bytearray data to read.

    Returns:
    Dictionary of all parsed data. In the iw tool it prints everything to terminal. This function returns a dictionary
    with string keys (being the "titles" of data printed by iw), and data values (integers/strings/etc).