hostapd + freeRadius accounting

Jouni Malinen j at w1.fi
Wed Jul 4 15:43:26 EDT 2007


On Wed, Jul 04, 2007 at 08:06:13PM +0200, Andreas Wetzel wrote:

> I've installed hostapd and freeRadius on a FreeBSD 6.2-RELEASE machine.
> The NAS-Port attribute that hostapd sends in the RADIUS packets happens
> to always contain a value of 0. Additionally the Acct-Session-Id attribute
> always contains '00000000-00000000'. This happens with the hostapd 0.4.8 that
> is included with the FreeBSD release, as well as with v0.5.8.

NAS-Port is set to the Association ID, if one is available. However, it
is not available when using FreeBSD which takes care of IEEE 802.11
association. If it would be important to get this stored (though, I
don't really see much value for it at the RADIUS server), this would
need an addition to FreeBSD net80211 to allow the association ID to be
read (or to make it automatically reported as part of association
event).

Lack of proper Acct-Session-Id looks like a bug in the FreeBSD driver
wrapper code. bsd_new_sta() function should call
accounting_sta_get_id(hapd, sta) in the same way as driver_madwifi.c is
doing in madwifi_new_sta().

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the HostAP mailing list