linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* VLAN traffic appearing on the wrong iface
@ 2009-09-30  0:54 Blaž Bačnik
  2009-09-30 17:51 ` Jouni Malinen
  2009-09-30 20:16 ` Johannes Berg
  0 siblings, 2 replies; 10+ messages in thread
From: Blaž Bačnik @ 2009-09-30  0:54 UTC (permalink / raw)
  To: linux-wireless

I use RADIUS-assigned vlans with my AP. Hostapd reports vlan change
during authentication and the station appears on correct vlan
according to "iw dev ... station dump". But actual packets keep coming
in on the default interface (wlan0), not the vlan one (eg. wlan0.2).
Moreover, I am able to ping this interface's (wlan0) IP address from
the station, even though "iw dev wlan0 station dump" does not list it.


I also tried taking RADIUS out of the loop, so I used hostapd's
"accept_mac_file" with specified vlan and I think I might have found
another bug. After applying the patch below (for I believe a rather
obvious typo), kernel started oopsing and I gave up. If needed, I can
provide config files for either hostapd or freeradius server, though
it looks like this is a driver problem.


Best regards,
Blaz



--- hostapd-0.6.9/hostapd/ieee802_11.c	2009-07-05 18:24:47.000000000 +0200
+++ hostapd-new/hostapd/ieee802_11.c	2009-09-30 02:16:56.000000000 +0200
@@ -583,11 +583,11 @@
 		goto fail;
 	}

 	if (vlan_id > 0) {
 		if (hostapd_get_vlan_id_ifname(hapd->conf->vlan,
-					       sta->vlan_id) == NULL) {
+					       vlan_id) == NULL) {
 			hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_RADIUS,
 				       HOSTAPD_LEVEL_INFO, "Invalid VLAN ID "
 				       "%d received from RADIUS server",
 				       vlan_id);
 			resp = WLAN_STATUS_UNSPECIFIED_FAILURE;

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-10-01 20:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30  0:54 VLAN traffic appearing on the wrong iface Blaž Bačnik
2009-09-30 17:51 ` Jouni Malinen
2009-09-30 20:16 ` Johannes Berg
2009-09-30 20:18   ` [PATCH 2.6.32] mac80211: fix vlan and optimise RX Johannes Berg
2009-10-01 20:06     ` [PATCH v2 " Johannes Berg
2009-10-01 14:32   ` VLAN traffic appearing on the wrong iface Blaž Bačnik
2009-10-01 14:40     ` Blaž Bačnik
2009-10-01 18:39       ` Johannes Berg
2009-10-01 19:55         ` Blaž Bačnik
2009-10-01 20:02           ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).