summaryrefslogtreecommitdiffstats
path: root/sys/dev/if_ndis
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2004-01-24 02:48:22 +0000
committerwpaul <wpaul@FreeBSD.org>2004-01-24 02:48:22 +0000
commite5e785e0d490c1b9d847705afab71053b8320294 (patch)
treecd4ce7272994bb3db363a9860dce96e343fd8cd5 /sys/dev/if_ndis
parent3e3b35f7ce14dc76403bf3912ced49fbb93b6e69 (diff)
downloadFreeBSD-src-e5e785e0d490c1b9d847705afab71053b8320294.zip
FreeBSD-src-e5e785e0d490c1b9d847705afab71053b8320294.tar.gz
Add missing newlines to some device_printf()s.
Don't do anything in ndis_get_assoc() if the link isn't up (avoids spurrious "couldn't get bssid" messages on the console).
Diffstat (limited to 'sys/dev/if_ndis')
-rw-r--r--sys/dev/if_ndis/if_ndis.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c
index 78431d0..cf0e77d 100644
--- a/sys/dev/if_ndis/if_ndis.c
+++ b/sys/dev/if_ndis/if_ndis.c
@@ -1771,16 +1771,19 @@ ndis_get_assoc(sc, assoc)
ndis_80211_macaddr bssid;
int i, len, error;
+ if (!sc->ndis_link)
+ return(ENOENT);
+
len = sizeof(bssid);
error = ndis_get_info(sc, OID_802_11_BSSID, &bssid, &len);
if (error) {
- device_printf(sc->ndis_dev, "failed to get bssid");
+ device_printf(sc->ndis_dev, "failed to get bssid\n");
return(ENOENT);
}
len = 0;
error = ndis_get_info(sc, OID_802_11_BSSID_LIST, NULL, &len);
if (error != ENOSPC) {
- device_printf(sc->ndis_dev, "bssid_list failed");
+ device_printf(sc->ndis_dev, "bssid_list failed\n");
return (error);
}
@@ -1788,7 +1791,7 @@ ndis_get_assoc(sc, assoc)
error = ndis_get_info(sc, OID_802_11_BSSID_LIST, bl, &len);
if (error) {
free(bl, M_TEMP);
- device_printf(sc->ndis_dev, "bssid_list failed");
+ device_printf(sc->ndis_dev, "bssid_list failed\n");
return (error);
}
OpenPOWER on IntegriCloud