From 4a077665a2ac3032dd507db13428d81021c3d4b6 Mon Sep 17 00:00:00 2001 From: iwasaki Date: Thu, 4 May 2000 15:38:18 +0000 Subject: Add ioctl() in read_ether() so that pccardd ensure reading its ether address from the attribute memory area. --- usr.sbin/pccard/pccardd/cardd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index 769785d..c7dedac 100644 --- a/usr.sbin/pccard/pccardd/cardd.c +++ b/usr.sbin/pccard/pccardd/cardd.c @@ -318,7 +318,9 @@ static void read_ether(struct slot *sp) { unsigned char net_addr[12]; + int flags = MDF_ATTR; /* attribute memory */ + ioctl(sp->fd, PIOCRWFLAG, &flags); lseek(sp->fd, (off_t)sp->card->ether->value, SEEK_SET); if (read(sp->fd, net_addr, sizeof(net_addr)) != sizeof(net_addr)) { logerr("read err on net addr"); -- cgit v1.1