After some messing around with the receive path in the driver i did the 
following:

- I enabled the receive tasklet without being associated 
- In ath9k/mac.c, i disabled

        /* OH MY GOD ...
        if ((adsp->ds_rxstatus8 & AR_RxDone) == 0)
                return -EINPROGRESS;
        */

- In the ath_rx_tasklet, i've added output for the frame control fields and 
obtained :


Oct  4 11:11:37 mobac-ideapad2 kernel: [  769.429497] ath_rx_tasklet: right 
before call of ath9k_rx_skb_preprocess, frame control 0x976
Oct  4 11:11:37 mobac-ideapad2 kernel: [  769.429522] ath_rx_tasklet: right 
before call of ath9k_rx_skb_preprocess, frame control 0x0
Oct  4 11:11:37 mobac-ideapad2 kernel: [  769.429544] ath_rx_tasklet: right 
before call of ath9k_rx_skb_preprocess, frame control 0x2d30
Oct  4 11:11:37 mobac-ideapad2 kernel: [  769.429567] ath_rx_tasklet: right 
before call of ath9k_rx_skb_preprocess, frame control 0x2d30
Oct  4 11:11:37 mobac-ideapad2 kernel: [  769.429590] ath_rx_tasklet: right 
before call of ath9k_rx_skb_preprocess, frame control 0x976
Oct  4 11:11:37 mobac-ideapad2 kernel: [  769.429613] ath_rx_tasklet: right 
before call of ath9k_rx_skb_preprocess, frame control 0x2d30
Oct  4 11:11:37 mobac-ideapad2 kernel: [  769.429635] ath_rx_tasklet: right 
before call of ath9k_rx_skb_preprocess, frame control 0x2020

As i see this, the driver now just accepts everything "on air" and tries to 
make 
sense of it. I did this in order to understand how i could manage to obtain non 
standard frames (or at least to obtain frames despite of being associated or 
not, in station BUT not in monitor mode). My major problem right now is to 
understand, where the driver says "ok, rx is done you can use this buffer" and 
what exactly is done by the hardware to filter out frames. Do you have any 
comments how this could be tackled without just allowing everything and try to 
filter it out later on ? The Goal is to teach the driver a new frame format or 
at least allow a reserved 802.11 frame to be received in a setup as described. 

Your answers are highly appreciated !
Greetings


_______________________________________________
ath9k-devel mailing list
[email protected]
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Reply via email to