Hi Eric,
I'm using ath5k_beacon_send function to send some packets out. But I don't
think anything is happening for the following reasons:
I have a channel energy monitor which monitors through which I can make some
plots. I've put the monitor very very close to tx, so that these beacons
will be distinctive in energy. I'm sending beacons every 1 sec. I don't find
any high energy packet in my monitor. I've put the beacon length as
4096(skb->len).
I'm calling ath5k_beacon_send from ath5k_rxbuf_setup where I'm doing the
following
To the end I've made these connections
sc->bbuf =bf;
skb->len = 4096;
and calling ath5k_beacon_send(sc);
Can you tell me where I'm possibly going wrong.
Thanks.
Cool Fire
On Mon, Mar 31, 2008 at 6:21 PM, Eric W Anderson <[EMAIL PROTECTED]>
wrote:
> Mr. Fire,
>
> You may want to take a look at the ath_hardstart() function in if_ath.c
> (madwifi) to get a sense of how packets are transmitted by the Madwifi
> driver.
> That function is normally called by the Linux networking stack, but any
> piece
> of kernel code could do so. You just need to fill in the sk_buf
> appropriately.
> Alternatively, you can look at the beacon transmittion code
> ath_beacon_{send,
> generate, setup, alloc}. If you model your code on the beacon functions,
> you
> end up filling in an ath_buf structure instead of an ethernet header in an
> sk_buf.
>
> Good luck,
> Eric
>
> Thus spake cool fire ([EMAIL PROTECTED]):
>
> > Hello,
> >
> > I understand that the driver processes a packet it receives from the
> > higher layer. But I want to make and transmit a packet without
> involving
> > the higher layers using ath5k. Could you please tell me how to do it.
> >
> > Thank you.
> > Cool Fire.
>
> > _______________________________________________
> > ath5k-devel mailing list
> > [email protected]
> > https://lists.ath5k.org/mailman/listinfo/ath5k-devel
>
>
> --
> Eric W. Anderson University of Colorado
> [EMAIL PROTECTED] Dept. of Computer Science
> phone: +1-720-984-8864 Systems Research Lab - ECCR 1B54
>
> PGP key fingerprints:
> personal: 1BD4 CFCE 8B59 8D6E EA3E EBD5 4DC9 3E61 656C 462B
> academic: D3C5 D6FF EDED 9F1F C36D 53A3 74B7 53A6 3C74 5F12
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFH8WPTdLdTpjx0XxIRAvvqAJ9mJy8cnz3gXvYl0RcnK3u6i2HqhACfSpMZ
> rp793f3BFuxmXqwVn+pIqNk=
> =WiFS
> -----END PGP SIGNATURE-----
>
>
_______________________________________________
ath5k-devel mailing list
[email protected]
https://lists.ath5k.org/mailman/listinfo/ath5k-devel