diff mbox series

[7/7] Remove useless variable

Message ID 20211011112437.178673-8-jeltz+hostap@auro.re
State Changes Requested
Headers show
Series Support for multiple RADIUS Tunnel-* attributes | expand

Commit Message

Tom Barthe Oct. 11, 2021, 11:24 a.m. UTC
Signed-off-by: Tom Barthe <jeltz+hostap@auro.re>
---
 src/ap/ieee802_11.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Jouni Malinen Nov. 3, 2021, 9:24 p.m. UTC | #1
On Mon, Oct 11, 2021 at 01:24:37PM +0200, Tom Barthe wrote:
> diff --git 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;

This looks a bit strange as a separate patch since that
sta->default_radius_vlan does not even exist before the earlier patches
in this series. Maybe this should be merged into the patch 5/7 instead.
diff mbox series

Patch

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)