bsd: Aggregate ioctl routines
authorMasashi Honma <honma@ictec.co.jp>
Sat, 13 Feb 2010 11:59:29 +0000 (13:59 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Feb 2010 11:59:29 +0000 (13:59 +0200)
commit0c6bdf91eac4c6bdbd8f9c603ab28e992dfaef0e
tree6eb3a9de88dcfd937d423553ecd0899e46401515
parent88487b0e0b524aae7603c17b7db7985ae9a810c9
bsd: Aggregate ioctl routines

This patch aggregates ioctls.

First is SIOCS80211. The SIOCS80211's arguments has 3 couples.
        1-1. i_len, i_data
        1-2. i_val
        1-3. i_len, i_data, i_val (currently only IEEE80211_IOC_APPIE)
There were 3 routines for each cases. This patch aggregates these to
one.

Second is SIOCG80211. The SIOCG80211 returns 2 type of value.
        2-1. i_len
        2-2. i_val
There were 2 routines for each cases. This patch aggregates these to
one.

I have tested on both FreeBSD 8.0 and NetBSD 5.0.1 with these cases.

[hostapd]
RSN-PSK(CCMP)/WPA-PSK(TKIP)

[wpa_supplicant(STA)]
RSN-PSK(CCMP)/WPA-PSK(TKIP)

[wpa_supplicant(AP)]
RSN-PSK(CCMP)/WPA-PSK(TKIP)
src/drivers/driver_bsd.c