From: John Bicket <jbicket@am...> - 2005-03-22 23:00:41
I'd like to add some dynamic sysctls inside the rate control module
(ie /proc/sys/dev/ath0/rate/XXX) but I can't do it in the
obvious place (ath_rate_attach()), because at that point
dev->name hasn't been filled out by register_netdev().
It looks like the same thing happens with ieee80211_attach,
which is why ieee80211_sysctl_register is a seperate function
that gets called by ath_attach.
I'm not sure what the best thing to do is; maybe either move
ath_rate_attach and net80211_attach to after register_netdev
or add a ath_rate_init() (or ath_rate_sysctl_register()) function
that gets called like ieee80211_sysctl_register()?
From: Sebastian Weitzel <togg@to...> - 2005-03-23 00:06:02
> I'm not sure what the best thing to do is; maybe either move
> ath_rate_attach and net80211_attach to after register_netdev
> or add a ath_rate_init() (or ath_rate_sysctl_register()) function
> that gets called like ieee80211_sysctl_register()?
I would consider the second approach (creating a
ath_rate_sysctl_[un]register) less problematic.
Btw. I tested the samplerate with bsd branch some days ago but I did
not get so far. If I setup an master node with samplerate clients can
associate, but sending packets fail. In master's log I see something
like ath_rate_tx_complete: no rates yet. I have to investigate this
further. Maybe I also have done something wrong.