[PATCH]: hostapd with madwifi accounting

Jouni Malinen jkmaline at cc.hut.fi
Sun May 8 21:33:54 EDT 2005


On Fri, Oct 08, 2004 at 08:08:22AM +0200, Gunter Burchardt wrote:

> Here are two patches to enable madwifi and hostapd to account station
> traffic. I added /proc/net/madwifi/athX/<station mac> to madwifi driver.
> Hostapd uses these files to get accounting information of a station. To
> use /proc/net/hostap/athX like as suggested in driver_madwifi.c is not
> good in my opinion. If hostap and madwifi driver is used together each
> driver can remove /proc/net/hostap if driver module is unloaded.
> 
> Secondly i added a (custom) netlink message with accounting information
> sent just before madwifi tells hostapd that a station leaves. This is
> nessesary because madwifi deletes procfs entry for the station before
> hostapd reads accounting information.

Thanks! I finally got a working madwifi AP setup running with WPA after
moving to BSD branch and I'm now able to test hostapd with madwifi. I
applied your patch for hostapd to enable RADIUS accounting with madwifi
driver and verified that it works with the netlink message. The procfs
information does not seem to be available from the driver, so interim
accounting messages are not currently supported.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the HostAP mailing list