AP: Introduce sta authorized wrappers
To enable making state change notifications on the WLAN_STA_AUTHORIZED flag, introduce ap_sta_set_authorized(), and to reduce use of the flag itself also add a wrapper for testing the flag: ap_sta_is_authorized(). Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
839b33ad90
commit
6905dcb1e0
6 changed files with 34 additions and 12 deletions
|
@ -1655,7 +1655,7 @@ static void handle_assoc_cb(struct hostapd_data *hapd,
|
|||
* Open, static WEP, or FT protocol; no separate authorization
|
||||
* step.
|
||||
*/
|
||||
sta->flags |= WLAN_STA_AUTHORIZED;
|
||||
ap_sta_set_authorized(hapd, sta, 1);
|
||||
wpa_msg(hapd->msg_ctx, MSG_INFO,
|
||||
AP_STA_CONNECTED MACSTR, MAC2STR(sta->addr));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue