def get_auth(data):
legend = {<NUM_LIT:1>: '<STR_LIT>', <NUM_LIT:2>: '<STR_LIT>', }<EOL>key = data[<NUM_LIT:3>]<EOL>if ieee80211_oui == bytes(data[:<NUM_LIT:3>]):<EOL><INDENT>legend.update({<NUM_LIT:3>: '<STR_LIT>', <NUM_LIT:4>: '<STR_LIT>', <NUM_LIT:5>: '<STR_LIT>', <NUM_LIT:6>: '<STR_LIT>', <NUM_LIT:7>: '<STR_LIT>', })<EOL><DEDENT>elif ms_oui != bytes(data[:<NUM_LIT:3>]):<EOL><INDENT>key = None<EOL><DEDENT>return legend.get(key, '<STR_LIT>'.format(data[<NUM_LIT:0>], data[<NUM_LIT:1>], data[<NUM_LIT:2>], data[<NUM_LIT:3>]))<EOL>
http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/scan.c?id=v3.17#n393.

    Positional arguments:
    data -- bytearray data to read.

    Returns:
    WiFi authentication method used by the access point (string).