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.
This commit is contained in:
parent
7b90c16aa9
commit
c1bbb0cee1
1 changed files with 2 additions and 2 deletions
|
@ -873,7 +873,7 @@ static int
|
||||||
wpa_driver_bsd_get_ssid(void *priv, u8 *ssid)
|
wpa_driver_bsd_get_ssid(void *priv, u8 *ssid)
|
||||||
{
|
{
|
||||||
struct bsd_driver_data *drv = priv;
|
struct bsd_driver_data *drv = priv;
|
||||||
return bsd_get_ssid(drv->ifname, drv, ssid, 0);
|
return bsd_get_ssid(drv, ssid, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
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));
|
return set80211var(drv, IEEE80211_IOC_SCAN_REQ, &sr, sizeof(sr));
|
||||||
#else /* IEEE80211_IOC_SCAN_MAX_SSID */
|
#else /* IEEE80211_IOC_SCAN_MAX_SSID */
|
||||||
/* set desired ssid before scan */
|
/* 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)
|
params->ssids[0].ssid_len) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue