WMM-AC: Fix hostapd processing of ADDTS Request and add test code
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 6 Mar 2009 18:12:31 +0000 (20:12 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 6 Mar 2009 18:15:00 +0000 (20:15 +0200)
commited843aaa33f701a3ae6db7889f9d28a671f7a134
treeccec48ae003233dc33e8c904a075175b4b1bb9bb
parent5c3dd4ebbe8f96e3f37b1c7f895d5378fd9607a4
WMM-AC: Fix hostapd processing of ADDTS Request and add test code

Calculate the estimated medium time using integer variables since there
is no real need to use floating point arithmetics here. In addition,
make sure there is no division by zero regardless of how invalid the
request from the station is. Reject invalid parameters and refuse
requests that would take most of the bandwidth by themselves.

Add test code into wpa_supplicant mlme.c to allow WMM-AC negotiation to
be tested with driver_test.
hostapd/wme.c
hostapd/wme.h
src/common/ieee802_11_defs.h
wpa_supplicant/mlme.c