def WIFI(frame, no_rtap=False):
pack = None<EOL>try:<EOL><INDENT>pack = WiHelper.get_wifi_packet(frame, no_rtap)<EOL><DEDENT>except Exception as e:<EOL><INDENT>logging.exception(e)<EOL><DEDENT>return pack<EOL>
calls wifi packet discriminator and constructor.
    :frame: ctypes.Structure
    :no_rtap: Bool
    :return: packet object in success
    :return: int
        -1 on known error
    :return: int
        -2 on unknown error