def callback_trigger(msg, arg):
gnlh = genlmsghdr(nlmsg_data(nlmsg_hdr(msg)))<EOL>if gnlh.cmd == nl80211.NL80211_CMD_SCAN_ABORTED:<EOL><INDENT>arg.value = <NUM_LIT:1>  <EOL><DEDENT>elif gnlh.cmd == nl80211.NL80211_CMD_NEW_SCAN_RESULTS:<EOL><INDENT>arg.value = <NUM_LIT:0>  <EOL><DEDENT>return libnl.handlers.NL_SKIP<EOL>
Called when the kernel is done scanning. Only signals if it was successful or if it failed. No other data.

    Positional arguments:
    msg -- nl_msg class instance containing the data sent by the kernel.
    arg -- mutable integer (ctypes.c_int()) to update with results.

    Returns:
    An integer, value of NL_SKIP. It tells libnl to stop calling other callbacks for this message and proceed with
    processing the next kernel message.