All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Fietkau <nbd@openwrt.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] ath9k in wireless-testing won't work in AP mode
Date: Sat, 30 Jan 2010 00:34:55 +0100	[thread overview]
Message-ID: <4B63709F.2010805@openwrt.org> (raw)
In-Reply-To: <1264806315.23248.22.camel@mj>

On 2010-01-30 12:05 AM, Pavel Roskin wrote:
> Hello
> 
> ath9k in wireless-testing won't work in AP mode.  Stations fail to
> associate:
> 
> # hostapd /etc/hostapd/wlan13.conf
> Configuration file: /etc/hostapd/wlan13.conf
> Using interface wlan13 with hwaddr 00:15:6d:84:1f:37 and ssid 'mike2'
> wlan13: STA 00:17:c4:3b:fc:88 IEEE 802.11: did not acknowledge
> authentication response
> 
> I haven't used ath9k in AP mode for a long time if ever, so I don't know
> when it broke.
Please try this patch and see if it helps.

--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -1229,6 +1229,11 @@ void ath9k_hw_init_global_settings(struc
 	/* As defined by IEEE 802.11-2007 17.3.8.6 */
 	slottime = ah->slottime + 3 * ah->coverage_class;
 	acktimeout = slottime + sifstime;
+
+	/* Workaround for a hw issue */
+	if (conf->channel && conf->channel->band == IEEE80211_BAND_2GHZ)
+		acktimeout = max(64, acktimeout);
+
 	ath9k_hw_setslottime(ah, slottime);
 	ath9k_hw_set_ack_timeout(ah, acktimeout);
 	ath9k_hw_set_cts_timeout(ah, acktimeout);

  reply	other threads:[~2010-01-29 23:34 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-29 23:05 [ath9k-devel] ath9k in wireless-testing won't work in AP mode Pavel Roskin
2010-01-29 23:34 ` Felix Fietkau [this message]
2010-01-30 19:39   ` Pavel Roskin
2010-01-30 20:10     ` Felix Fietkau
2010-01-30 20:37       ` Pavel Roskin
2010-01-30 20:46         ` Felix Fietkau
2010-01-30 21:11           ` Pavel Roskin
2010-02-03  0:08           ` Luis R. Rodriguez
2010-02-03  0:18             ` Felix Fietkau
2010-02-03  0:27               ` Luis R. Rodriguez
2010-02-03  0:35                 ` Felix Fietkau
2010-02-03  0:45                   ` Luis R. Rodriguez
2010-02-03  3:29                     ` Pavel Roskin
2010-02-03 17:16                       ` Luis R. Rodriguez
2010-02-03  4:22             ` Sujith
2010-02-10 10:51             ` Jouni Malinen
2010-02-10 17:33               ` Peter Stuge
2010-02-11  9:12     ` Peter Stuge

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=4B63709F.2010805@openwrt.org \
    --to=nbd@openwrt.org \
    --cc=ath9k-devel@lists.ath9k.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.