ok here is how I do it
in /lib/wifi/broadcom.sh
go to line 221, it looks like this:
killall -KILL nas >&- 2>&-
wlc stdin <<EOF
and make it look like this:
killall -KILL nas >&- 2>&-
wl gmode 0
wlc stdin <<EOF
And that's it. So basically it sets the mode before all other things and before it brings up the interface and associates to anything.
But that's a really ugly way to do it. I needed it to work and fast and that's the quickest way of doing it. And the ugliest. Someone should modify that script to read agmode directive from /etc/config/wireless as it should.
(Last edited by posix on 29 Mar 2008, 14:12)