driver_bsd.c: Reduce code duplication between hostapd and wpa_supplicant
authorRoy Marples <roy@marples.name>
Fri, 29 May 2009 19:38:55 +0000 (22:38 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 29 May 2009 19:38:55 +0000 (22:38 +0300)
commit66d4085f0aae7fccb366ff1c37f9e2409afa6f68
treeb0bf12b2e063afda7faa697fd1e3ef90661cd69e
parentb14912025febed6ad3bebcdc42a7a0b630026ece
driver_bsd.c: Reduce code duplication between hostapd and wpa_supplicant

Add generic functions to get/set 80211 vars, set 80211 params and
get/sid ssid.
Change NetBSD defines to match the ioctl used for portability.
Check size we're copying into instead of assuming IFNAMSIZ.

Signed-off-by: Roy Marples <roy@marples.name>
src/drivers/driver_bsd.c