summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2007-07-11 21:25:48 +0000
committerthompsa <thompsa@FreeBSD.org>2007-07-11 21:25:48 +0000
commitc2081368d230e2160f4ab899eadf89a0201e6bbb (patch)
treefe6c64cdfdf1d0b97ca969f39629a90284a198b3 /sys/dev/wi
parentf30a555ada1b1a4cdfd1c42591b4f3466f940317 (diff)
downloadFreeBSD-src-c2081368d230e2160f4ab899eadf89a0201e6bbb.zip
FreeBSD-src-c2081368d230e2160f4ab899eadf89a0201e6bbb.tar.gz
Now that wicontrol has been removed from the base system the corresponding
ioctls can be removed. These have been #ifdef'd out and left as a reference in case any of the RIDs need to be turned into sysctls at a later date. Reviewed by: sam, avatar Approved by: re (kensmith)
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wavelan_ieee.h2
-rw-r--r--sys/dev/wi/if_wi.c14
2 files changed, 15 insertions, 1 deletions
diff --git a/sys/dev/wi/if_wavelan_ieee.h b/sys/dev/wi/if_wavelan_ieee.h
index c726ec9..0a04bed 100644
--- a/sys/dev/wi/if_wavelan_ieee.h
+++ b/sys/dev/wi/if_wavelan_ieee.h
@@ -59,11 +59,13 @@
*/
#define WI_MAX_DATALEN 512
+#if 0
struct wi_req {
u_int16_t wi_len;
u_int16_t wi_type;
u_int16_t wi_val[WI_MAX_DATALEN];
};
+#endif
/*
* Private LTV records (interpreted only by the driver). This is
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 8c1ea93..e9dfad3 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -132,8 +132,10 @@ static void wi_info_intr(struct wi_softc *);
static int wi_key_alloc(struct ieee80211com *, const struct ieee80211_key *,
ieee80211_keyix *, ieee80211_keyix *);
+#if 0
static int wi_get_cfg(struct ifnet *, u_long, caddr_t);
static int wi_set_cfg(struct ifnet *, u_long, caddr_t);
+#endif
static int wi_write_txrate(struct wi_softc *);
static int wi_write_wep(struct wi_softc *);
static int wi_write_multi(struct wi_softc *);
@@ -156,8 +158,10 @@ static void wi_scan_result(struct wi_softc *, int, int);
static void wi_dump_pkt(struct wi_frame *, struct ieee80211_node *, int rssi);
+#if 0
static int wi_get_debug(struct wi_softc *, struct wi_req *);
static int wi_set_debug(struct wi_softc *, struct wi_req *);
+#endif
/* support to download firmware for symbol CF card */
static int wi_symbol_write_firm(struct wi_softc *, const void *, int,
@@ -1232,10 +1236,12 @@ wi_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
{
struct wi_softc *sc = ifp->if_softc;
struct ieee80211com *ic = &sc->sc_ic;
- struct ifreq *ifr = (struct ifreq *)data;
int error = 0;
struct thread *td = curthread;
+#if 0
+ struct ifreq *ifr = (struct ifreq *)data;
struct wi_req wreq;
+#endif
if (sc->wi_gone)
return (ENODEV);
@@ -1279,6 +1285,7 @@ wi_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
error = wi_write_multi(sc);
WI_UNLOCK(sc);
break;
+#if 0
case SIOCGIFGENERIC:
WI_LOCK(sc);
error = wi_get_cfg(ifp, cmd, data);
@@ -1312,6 +1319,7 @@ wi_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
error = wi_set_debug(sc, &wreq);
WI_UNLOCK(sc);
break;
+#endif
case SIOCG80211:
error = wi_ioctl_get(ifp, cmd, data);
break;
@@ -2055,6 +2063,7 @@ wi_write_ssid(struct wi_softc *sc, int rid, u_int8_t *buf, int buflen)
return wi_write_rid(sc, rid, &ssid, sizeof(ssid));
}
+#if 0
static int
wi_get_cfg(struct ifnet *ifp, u_long cmd, caddr_t data)
{
@@ -2472,6 +2481,7 @@ wi_set_cfg(struct ifnet *ifp, u_long cmd, caddr_t data)
}
return error;
}
+#endif
static int
wi_write_txrate(struct wi_softc *sc)
@@ -3229,6 +3239,7 @@ wi_free(device_t dev)
return;
}
+#if 0
static int
wi_get_debug(struct wi_softc *sc, struct wi_req *wreq)
{
@@ -3367,6 +3378,7 @@ wi_set_debug(struct wi_softc *sc, struct wi_req *wreq)
return (error);
}
+#endif
/*
* Special routines to download firmware for Symbol CF card.
OpenPOWER on IntegriCloud