diff options
author | dmlb <dmlb@FreeBSD.org> | 2000-06-11 13:57:59 +0000 |
---|---|---|
committer | dmlb <dmlb@FreeBSD.org> | 2000-06-11 13:57:59 +0000 |
commit | 2a3819876e5cf7c462459466de8fd4345c7e1da4 (patch) | |
tree | 7354c4f865084ba15004f32025fc5920e6e09334 /sys/dev/ray | |
parent | e435531885ea16506658958cd60fb01847e76f41 (diff) | |
download | FreeBSD-src-2a3819876e5cf7c462459466de8fd4345c7e1da4.zip FreeBSD-src-2a3819876e5cf7c462459466de8fd4345c7e1da4.tar.gz |
Suck out all of the current and desired n/w parameters.
Diffstat (limited to 'sys/dev/ray')
-rw-r--r-- | sys/dev/ray/if_ray.c | 14 | ||||
-rw-r--r-- | sys/dev/ray/if_raymib.h | 24 |
2 files changed, 33 insertions, 5 deletions
diff --git a/sys/dev/ray/if_ray.c b/sys/dev/ray/if_ray.c index b1e1563..2af117a 100644 --- a/sys/dev/ray/if_ray.c +++ b/sys/dev/ray/if_ray.c @@ -288,10 +288,10 @@ * acting as ap - should be able to get working from the manual * * ray_nw_param + * promisc in here too? - done * should be able to update the parameters before we download to the * device * differeniate between parameters set in attach and init - * promisc in here too? - done * sc_station_addr in here too (for changing mac address) * move desired into the command structure? * take downloaded MIB from a complete nw_param? @@ -2753,6 +2753,18 @@ ray_repparams_user(struct ray_softc *sc, struct ray_param_req *pr) case RAY_MIB_DES_PRIV_JOIN: *pr->r_data = sc->sc_d.np_priv_join; break; + case RAY_MIB_CUR_AP_STATUS: + *pr->r_data = sc->sc_c.np_ap_status; + break; + case RAY_MIB_CUR_PROMISC: + *pr->r_data = sc->sc_c.np_promisc; + break; + case RAY_MIB_DES_AP_STATUS: + *pr->r_data = sc->sc_d.np_ap_status; + break; + case RAY_MIB_DES_PROMISC: + *pr->r_data = sc->sc_d.np_promisc; + break; default: return (EINVAL); diff --git a/sys/dev/ray/if_raymib.h b/sys/dev/ray/if_raymib.h index aa36c37..bf8a6b7 100644 --- a/sys/dev/ray/if_raymib.h +++ b/sys/dev/ray/if_raymib.h @@ -216,9 +216,13 @@ struct ray_mib_5 { #define RAY_MIB_DES_SSID 60 #define RAY_MIB_DES_PRIV_START 61 #define RAY_MIB_DES_PRIV_JOIN 62 +#define RAY_MIB_CUR_AP_STATUS 63 +#define RAY_MIB_CUR_PROMISC 64 +#define RAY_MIB_DES_AP_STATUS 65 +#define RAY_MIB_DES_PROMISC 66 #define RAY_MIB_LASTUSER 45 -#define RAY_MIB_MAX 62 +#define RAY_MIB_MAX 66 /* * Strings for the MIB @@ -286,7 +290,11 @@ struct ray_mib_5 { "Desired NET_TYPE", \ "Desired SSID", \ "Desired PRIV_START", \ - "Desired PRIV_JOIN" \ + "Desired PRIV_JOIN", \ + "Current AP_STATUS", \ + "Current PROMISC", \ + "Desired AP_STATUS", \ + "Desired PROMISC" \ } #define RAY_MIB_HELP_STRINGS { \ @@ -352,7 +360,11 @@ struct ray_mib_5 { "Desired NET_TYPE", \ "", \ "Desired PRIV_START", \ - "Desired PRIV_JOIN" \ + "Desired PRIV_JOIN", \ + "Current AP_STATUS", \ + "Current PROMISC", \ + "Desired AP_STATUS", \ + "Desired PROMISC" \ } /* @@ -431,7 +443,11 @@ struct ray_mib_5 { {RAY_V4|RAY_V5, IEEE80211_NWID_LEN, \ IEEE80211_NWID_LEN}, /* RAY_MIB_DES_SSID */ \ {RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_DES_PRIV_START */ \ -{RAY_V4|RAY_V5, 1, 1} /* RAY_MIB_DES_PRIV_JOIN */ \ +{RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_DES_PRIV_JOIN */ \ +{RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_CUR_AP_STATUS */ \ +{RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_CUR_PROMISC */ \ +{RAY_V4|RAY_V5, 1, 1}, /* RAY_MIB_DES_AP_STATUS */ \ +{RAY_V4|RAY_V5, 1, 1} /* RAY_MIB_DES_PROMISC */ \ } /* |