aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_bsd.c
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2010-03-10 21:33:10 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-10 21:33:10 (GMT)
commitc1bbb0cee10bd321de664b8a8f24fbbf48aada05 (patch)
tree7027c0d42105997c876a1a6d7d5c6e3d2c9081ce /src/drivers/driver_bsd.c
parent7b90c16aa9ca377b1a6d160c1ba0f2bd304f7e2f (diff)
downloadhostap-c1bbb0cee10bd321de664b8a8f24fbbf48aada05.zip
hostap-c1bbb0cee10bd321de664b8a8f24fbbf48aada05.tar.gz
hostap-c1bbb0cee10bd321de664b8a8f24fbbf48aada05.tar.bz2
NetBSD: Fix driver_bsd.c build
On NetBSD 5.0.2, wpa_supplicant build results in messages below. ../src/drivers/driver_bsd.c: In function 'wpa_driver_bsd_get_ssid': ../src/drivers/driver_bsd.c:876: warning: passing argument 2 of 'bsd_get_ssid' from incompatible pointer type ../src/drivers/driver_bsd.c:876: warning: passing argument 3 of 'bsd_get_ssid' makes integer from pointer without a cast ../src/drivers/driver_bsd.c:876: error: too many arguments to function 'bsd_get_ssid' ../src/drivers/driver_bsd.c: In function 'wpa_driver_bsd_scan': ../src/drivers/driver_bsd.c:1125: warning: passing argument 2 of 'bsd_set_ssid' from incompatible pointer type ../src/drivers/driver_bsd.c:1125: warning: passing argument 3 of 'bsd_set_ssid' makes integer from pointer without a cast ../src/drivers/driver_bsd.c:1125: error: too many arguments to function 'bsd_set_ssid' gmake: *** [../src/drivers/driver_bsd.o] Error 1 This patch solves this issue.
Diffstat (limited to 'src/drivers/driver_bsd.c')
-rw-r--r--src/drivers/driver_bsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/driver_bsd.c b/src/drivers/driver_bsd.c
index 47acbb9..99de6c7 100644
--- a/src/drivers/driver_bsd.c
+++ b/src/drivers/driver_bsd.c
@@ -873,7 +873,7 @@ static int
wpa_driver_bsd_get_ssid(void *priv, u8 *ssid)
{
struct bsd_driver_data *drv = priv;
- return bsd_get_ssid(drv->ifname, drv, ssid, 0);
+ return bsd_get_ssid(drv, ssid, 0);
}
static int
@@ -1121,7 +1121,7 @@ wpa_driver_bsd_scan(void *priv, struct wpa_driver_scan_params *params)
return set80211var(drv, IEEE80211_IOC_SCAN_REQ, &sr, sizeof(sr));
#else /* IEEE80211_IOC_SCAN_MAX_SSID */
/* set desired ssid before scan */
- if (bsd_set_ssid(drv->ifname, drv, params->ssids[0].ssid,
+ if (bsd_set_ssid(drv, params->ssids[0].ssid,
params->ssids[0].ssid_len) < 0)
return -1;