OCE: Add RSSI based association rejection support (AP)
An AP might reject a STA association request due to low RSSI. In such case, the AP informs the STA the desired RSSI improvement and a retry timeout. The STA might retry to associate even if the RSSI hasn't improved if the retry timeout expired. Signed-off-by: Beni Lev <beni.lev@intel.com>
This commit is contained in:
parent
19677b77c3
commit
076f1ea1d9
7 changed files with 66 additions and 6 deletions
|
@ -682,6 +682,22 @@ u8 * hostapd_eid_bss_max_idle_period(struct hostapd_data *hapd, u8 *eid)
|
|||
|
||||
#ifdef CONFIG_MBO
|
||||
|
||||
u8 * hostapd_eid_mbo_rssi_assoc_rej(struct hostapd_data *hapd, u8 *eid,
|
||||
size_t len, int delta)
|
||||
{
|
||||
u8 mbo[4];
|
||||
|
||||
mbo[0] = OCE_ATTR_ID_RSSI_BASED_ASSOC_REJECT;
|
||||
mbo[1] = 2;
|
||||
/* Delta RSSI */
|
||||
mbo[2] = delta;
|
||||
/* Retry delay */
|
||||
mbo[3] = hapd->iconf->rssi_reject_assoc_timeout;
|
||||
|
||||
return eid + mbo_add_ie(eid, len, mbo, 4);
|
||||
}
|
||||
|
||||
|
||||
u8 * hostapd_eid_mbo(struct hostapd_data *hapd, u8 *eid, size_t len)
|
||||
{
|
||||
u8 mbo[9], *mbo_pos = mbo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue