linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Brown <sbrown@cortland.com>
To: Bob Copeland <bcopeland@gmail.com>
Cc: Keir <keirlawson@gmail.com>,
	Nick Kossifidis <mickflemm@gmail.com>,
	Andrey Yurovsky <andrey@cozybit.com>,
	linux-wireless@vger.kernel.org, javier@cozybit.com
Subject: Re: Mesh now completely broken on ath5k, latest git
Date: Fri, 19 Dec 2008 15:18:09 -0500	[thread overview]
Message-ID: <494C0181.8050008@cortland.com> (raw)
In-Reply-To: <b6c5339f0812181348x49e5c68bia827d9feb4ef0e6c@mail.gmail.com>

Bob Copeland wrote:
> On Thu, Dec 18, 2008 at 4:02 PM, Steve Brown <sbrown@cortland.com> wrote:
>   
>> Lots of these however:
>> Dec 18 15:53:20 fl-ws kernel: ath5k phy23: beacon queue 7 didn't stop?
>>     
>
> Can you change the if statement that prints that in ath5k_beacon_send() in
> base.c to capture the return value?  i.e.:
>
> int err;
> ...
>
> err = ath5k_hw_stop_tx_dma(ah, sc->bhalq);
> if (unlikely(err)) {
>     ATH5K_WARN(... "...didn't stop? %d\n", sc->bhalq, err);
> }
>
>   
>> If I make the same change to the current git, still no beacons. But, the
>> "queue 7" msgs persist.
>>     
>
> Not sure, I was about to blame ath5k_configure_filter() but I see it does
> turn on the beacons for mesh.
>
>   
If I revert this part of the pcu patch, the "queue 7" messages go away. 
Beacons remain.

-       ath5k_hw_reg_write(ah, next_beacon, AR5K_TIMER0);
+       /* When in AP mode zero timer0 to start TSF */
+       if (ah->ah_op_mode == NL80211_IFTYPE_AP)
+               ath5k_hw_reg_write(ah, 0, AR5K_TIMER0);
+       else
+               ath5k_hw_reg_write(ah, next_beacon, AR5K_TIMER0);

The corresponding snippet of hal code seems to be:

        case HAL_M_HOSTAP:
                if (AH_PRIVATE(ah)->ah_opmode == HAL_M_HOSTAP)
                        OS_REG_WRITE(ah, AR_TIMER0, 0);
                else
                        OS_REG_WRITE(ah, AR_TIMER0, next_beacon);

No idea what's going on.

Steve


  parent reply	other threads:[~2008-12-19 20:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-16 12:05 Mesh now completely broken on ath5k, latest git Keir
2008-12-16 13:22 ` Steve Brown
2008-12-16 16:07   ` Keir
2008-12-16 18:30     ` Andrey Yurovsky
2008-12-17 10:56       ` Keir
2008-12-17 11:20         ` Michael Renzmann
2008-12-17 18:03         ` Keir
2008-12-17 17:06       ` Nick Kossifidis
2008-12-17 18:04         ` Keir
2008-12-18 14:00           ` Steve Brown
2008-12-18 19:38             ` Bob Copeland
2008-12-18 21:02               ` Steve Brown
2008-12-18 21:48                 ` Bob Copeland
2008-12-18 23:14                   ` Steve Brown
2008-12-19 20:18                   ` Steve Brown [this message]
2008-12-19 20:41                     ` Bob Copeland
2008-12-22 22:29                       ` Steve Brown
2008-12-22 22:40                         ` Bob Copeland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=494C0181.8050008@cortland.com \
    --to=sbrown@cortland.com \
    --cc=andrey@cozybit.com \
    --cc=bcopeland@gmail.com \
    --cc=javier@cozybit.com \
    --cc=keirlawson@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mickflemm@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).