1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

Suck out all of the current and desired n/w parameters.

This commit is contained in:
Duncan Barclay 2000-06-11 13:57:59 +00:00
parent dab93c89dd
commit da5777391d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61554
2 changed files with 33 additions and 5 deletions

View File

@ -288,10 +288,10 @@
* acting as ap - should be able to get working from the manual * acting as ap - should be able to get working from the manual
* *
* ray_nw_param * ray_nw_param
* promisc in here too? - done
* should be able to update the parameters before we download to the * should be able to update the parameters before we download to the
* device * device
* differeniate between parameters set in attach and init * differeniate between parameters set in attach and init
* promisc in here too? - done
* sc_station_addr in here too (for changing mac address) * sc_station_addr in here too (for changing mac address)
* move desired into the command structure? * move desired into the command structure?
* take downloaded MIB from a complete nw_param? * 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: case RAY_MIB_DES_PRIV_JOIN:
*pr->r_data = sc->sc_d.np_priv_join; *pr->r_data = sc->sc_d.np_priv_join;
break; 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: default:
return (EINVAL); return (EINVAL);

View File

@ -216,9 +216,13 @@ struct ray_mib_5 {
#define RAY_MIB_DES_SSID 60 #define RAY_MIB_DES_SSID 60
#define RAY_MIB_DES_PRIV_START 61 #define RAY_MIB_DES_PRIV_START 61
#define RAY_MIB_DES_PRIV_JOIN 62 #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_LASTUSER 45
#define RAY_MIB_MAX 62 #define RAY_MIB_MAX 66
/* /*
* Strings for the MIB * Strings for the MIB
@ -286,7 +290,11 @@ struct ray_mib_5 {
"Desired NET_TYPE", \ "Desired NET_TYPE", \
"Desired SSID", \ "Desired SSID", \
"Desired PRIV_START", \ "Desired PRIV_START", \
"Desired PRIV_JOIN" \ "Desired PRIV_JOIN", \
"Current AP_STATUS", \
"Current PROMISC", \
"Desired AP_STATUS", \
"Desired PROMISC" \
} }
#define RAY_MIB_HELP_STRINGS { \ #define RAY_MIB_HELP_STRINGS { \
@ -352,7 +360,11 @@ struct ray_mib_5 {
"Desired NET_TYPE", \ "Desired NET_TYPE", \
"", \ "", \
"Desired PRIV_START", \ "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, \ {RAY_V4|RAY_V5, IEEE80211_NWID_LEN, \
IEEE80211_NWID_LEN}, /* RAY_MIB_DES_SSID */ \ 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_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 */ \
} }
/* /*