| 438 | } |
| 439 | |
| 440 | static int |
| 441 | amrr_sysctl_interval(SYSCTL_HANDLER_ARGS) |
| 442 | { |
| 443 | struct ieee80211vap *vap = arg1; |
| 444 | struct ieee80211_amrr *amrr = vap->iv_rs; |
| 445 | int msecs, error; |
| 446 | |
| 447 | if (!amrr) |
| 448 | return ENOMEM; |
| 449 | |
| 450 | msecs = ticks_to_msecs(amrr->amrr_interval); |
| 451 | error = sysctl_handle_int(oidp, &msecs, 0, req); |
| 452 | if (error || !req->newptr) |
| 453 | return error; |
| 454 | amrr_setinterval(vap, msecs); |
| 455 | return 0; |
| 456 | } |
| 457 | |
| 458 | static void |
| 459 | amrr_sysctlattach(struct ieee80211vap *vap, |
nothing calls this directly
no test coverage detected