[PATCH 7/7] Remove useless variable

Tom Barthe jeltz+hostap at auro.re
Mon Oct 11 04:24:37 PDT 2021


Signed-off-by: Tom Barthe <jeltz+hostap at auro.re>
---
 src/ap/ieee802_11.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 7229011b7..1c0b0c3d3 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -2321,12 +2321,11 @@ ieee802_11_set_radius_info(struct hostapd_data *hapd, struct sta_info *sta,
 {
 	u32 session_timeout = info->session_timeout;
 	u32 acct_interim_interval = info->acct_interim_interval;
-	struct vlan_description *vlan_id = &info->vlan_id;
 	struct hostapd_sta_wpa_psk_short *psk = info->psk;
 	char *identity = info->identity;
 	char *radius_cui = info->radius_cui;
 
-	sta->default_radius_vlan = *vlan_id;
+	sta->default_radius_vlan = info->vlan_id;
 
 	hostapd_free_psk_list(sta->psk);
 	if (hapd->conf->wpa_psk_radius != PSK_RADIUS_IGNORED)
-- 
2.30.2




More information about the Hostap mailing list