ieee80211_amrr.c (53d2936cd317c8b933ca8be36cd1919cdd14e9fc) ieee80211_amrr.c (08f5e6bb8104e5179b27e49fe688048382c7877b)
1/* $OpenBSD: ieee80211_amrr.c,v 1.1 2006/06/17 19:07:19 damien Exp $ */
2
3/*-
4 * Copyright (c) 2010 Rui Paulo <rpaulo@FreeBSD.org>
5 * Copyright (c) 2006
6 * Damien Bergamini <damien.bergamini@free.fr>
7 *
8 * Permission to use, copy, modify, and distribute this software for any

--- 451 unchanged lines hidden (view full) ---

460 struct sysctl_ctx_list *ctx, struct sysctl_oid *tree)
461{
462 struct ieee80211_amrr *amrr = vap->iv_rs;
463
464 if (!amrr)
465 return;
466
467 SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
1/* $OpenBSD: ieee80211_amrr.c,v 1.1 2006/06/17 19:07:19 damien Exp $ */
2
3/*-
4 * Copyright (c) 2010 Rui Paulo <rpaulo@FreeBSD.org>
5 * Copyright (c) 2006
6 * Damien Bergamini <damien.bergamini@free.fr>
7 *
8 * Permission to use, copy, modify, and distribute this software for any

--- 451 unchanged lines hidden (view full) ---

460 struct sysctl_ctx_list *ctx, struct sysctl_oid *tree)
461{
462 struct ieee80211_amrr *amrr = vap->iv_rs;
463
464 if (!amrr)
465 return;
466
467 SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
468 "amrr_rate_interval", CTLTYPE_INT | CTLFLAG_RW, vap,
469 0, amrr_sysctl_interval, "I", "amrr operation interval (ms)");
468 "amrr_rate_interval", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT,
469 vap, 0, amrr_sysctl_interval, "I", "amrr operation interval (ms)");
470 /* XXX bounds check values */
471 SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
472 "amrr_max_sucess_threshold", CTLFLAG_RW,
473 &amrr->amrr_max_success_threshold, 0, "");
474 SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
475 "amrr_min_sucess_threshold", CTLFLAG_RW,
476 &amrr->amrr_min_success_threshold, 0, "");
477}

--- 37 unchanged lines hidden ---
470 /* XXX bounds check values */
471 SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
472 "amrr_max_sucess_threshold", CTLFLAG_RW,
473 &amrr->amrr_max_success_threshold, 0, "");
474 SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
475 "amrr_min_sucess_threshold", CTLFLAG_RW,
476 &amrr->amrr_min_success_threshold, 0, "");
477}

--- 37 unchanged lines hidden ---