• Aloka Dixit's avatar
    wifi: mac80211: generate EMA beacons in AP mode · bd54f3c2
    Aloka Dixit authored
    Add APIs to generate an array of beacons for an EMA AP (enhanced
    multiple BSSID advertisements), each including a single MBSSID element.
    EMA profile periodicity equals the count of elements.
    
    - ieee80211_beacon_get_template_ema_list() - Generate and return all
    EMA beacon templates. Drivers must call ieee80211_beacon_free_ema_list()
    to free the memory. No change in the prototype for the existing API,
    ieee80211_beacon_get_template(), which should be used for non-EMA AP.
    
    - ieee80211_beacon_get_template_ema_index() - Generate a beacon which
    includes the multiple BSSID element at the given index. Drivers can use
    this function in a loop until NULL is returned which indicates end of
    available MBSSID elements.
    
    - ieee80211_beacon_free_ema_list() - free the memory allocated for the
    list of EMA beacon templates.
    
    Modify existing functions ieee80211_beacon_get_ap(),
    ieee80211_get_mbssid_beacon_len() and ieee80211_beacon_add_mbssid()
    to accept a new parameter for EMA index.
    Signed-off-by: default avatarAloka Dixit <quic_alokad@quicinc.com>
    Co-developed-by: default avatarJohn Crispin <john@phrozen.org>
    Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
    Link: https://lore.kernel.org/r/20221206005040.3177-2-quic_alokad@quicinc.comSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    bd54f3c2
cfg.c 136 KB