Fixing compilation error by:

- Conforming to the latest ether_ifattach() change;
	- Moving PCCARD_API_LEVEL to the right place.

Reported and Tested by:	Vladimir Grebenschikov <vova at fbsd dot ru>
MFC after:		3 days
This commit is contained in:
Tai-hwa Liang 2005-08-01 13:51:52 +00:00
parent 22247a2a38
commit 0b1ae45dc5
2 changed files with 2 additions and 2 deletions

View File

@ -383,7 +383,7 @@ owi_generic_attach(device_t dev)
/*
* Call MI attach routine.
*/
ether_ifattach(ifp, mac.wi_mac_addr);
ether_ifattach(ifp, (const u_int8_t *)mac.wi_mac_addr);
callout_handle_init(&sc->wi_stat_ch);
WI_UNLOCK(sc, s);

View File

@ -59,8 +59,8 @@
#include <net/if_types.h>
#include <dev/owi/if_ieee80211.h>
#include <dev/pccard/pccardvar.h>
#define PCCARD_API_LEVEL 5
#include <dev/pccard/pccardvar.h>
#include "pccarddevs.h"
#include <dev/wi/if_wavelan_ieee.h>