• Ariej Marjieh's avatar
    iwlwifi: mvm: add Aux ROC request/response flow · b112889c
    Ariej Marjieh authored
    The Remain On Channel framework added to the firmare is
    a bit like time events. It allows the driver to request
    the firmware to be on a certain channel for a certain time.
    Unlike the time events, the ROC infrastructure doesn't need
    a MAC context in the firmware - it uses a generic context
    called "auxiliary framework".
    
    This is useful for any offchannel activity that is not bound
    to a specific MAC.
    The flow is synchronized much like with time events:
    1) The driver receives an action frame from the wpa_supplicant
       via nl80211 that requests to be sent offchannel.
    2) The driver sends an Aux ROC command (0x53) to the firmware.
    3) The firmware responds with the unique id of the time event.
    4) When time event starts, the driver puts the frame in the
       Aux queue.
    
    Special care needs to be taken when the time events ends:
    the queue needs to be cleaned-up.
    Signed-off-by: default avatarAriej Marjieh <ariej.marjieh@intel.com>
    Reviewed-by: default avatarJohannes Berg <johannes.berg@intel.com>
    Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
    b112889c
time-event.c 21.1 KB