mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Suck out all of the current and desired n/w parameters.
This commit is contained in:
parent
dab93c89dd
commit
da5777391d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61554
@ -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);
|
||||
|
@ -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 */ \
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user