Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:57009 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758804Ab0FPOFx (ORCPT ); Wed, 16 Jun 2010 10:05:53 -0400 Received: by fxm10 with SMTP id 10so808965fxm.19 for ; Wed, 16 Jun 2010 07:05:52 -0700 (PDT) Message-ID: <4C18DA3D.1030303@googlemail.com> Date: Wed, 16 Jun 2010 16:05:49 +0200 From: Dennis Borgmann MIME-Version: 1.0 To: linux-wireless@vger.kernel.org, hostap@lists.shmoo.com Subject: "ressource temporarily unavailable" on 2.4 GHz, not on 5GHz Content-Type: multipart/mixed; boundary="------------020303010908080508030408" Sender: linux-wireless-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------020303010908080508030408 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Hello wireless-list! Hello hostapd-list! I am using ath5k with hostapd-0.6.9 on a debian running kernel 2.6.34 and I am observing a "ressource temporarily unavailable" - error code 11 if I pump out multicast-packets quite fast. I wrote a small test-program, that handles this test and as soon as I go down to a 8ms-pause or below in betweens the packets, the error is thrown quite soon after starting the program. Funny thing is, that this error only occurs in g-band (2.4 GHz), not in a-band (5GHz). What could be the problem? Is this due to backoff-times in 2.4 GHz, that don't occur on 5 GHz? Or could this be a bug? Find attached my small piece of code to test and reproduce this effect. Kind regards, Dennis --------------020303010908080508030408 Content-Type: text/x-csrc; name="connection_test_multicast.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="connection_test_multicast.c" I2luY2x1ZGUgPHN5cy90eXBlcy5oPiAgICAgICAgICAvKiBTZWUgTk9URVMgKi8KI2luY2x1 ZGUgPHN5cy9zb2NrZXQuaD4KI2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxuZXRpbmV0 L2luLmg+CiNpbmNsdWRlIDxhcnBhL2luZXQuaD4gICAgIAojaW5jbHVkZSA8ZXJybm8uaD4K I2luY2x1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VCwgXAoJCShzdHJ1Y3Qgc29ja2FkZHIqKSZzZXJ2ZXJfYWRkcmVzcywgc2l6ZW9mKHN0cnVj dCBzb2NrYWRkcl9pbikgKSA9PSAtMSApIHsKCQkJcHJpbnRmKCIlczoldSBzZW5kdG8oKSBl cnJvciAoJXMpLCBlcnJvci1jb2RlOiAlZFxuIiwgX19GSUxFX18sIF9fTElORV9fLCBzdHJl cnJvcihlcnJubyksIGVycm5vKTsKCQkJcmV0dXJuIGVycm5vOwoJfQoKCXJldHVybiAwOwp9 CgppbnQgbWFpbihpbnQgYXJnYywgY2hhciAqKmFyZ3YpIHsKICB1bnNpZ25lZCBjaGFyICpk YXRhX2Zvcl90cmFuc21pc3Npb247CiAgaW50IHNsZWVwZXI9YXRvaShhcmd2WzFdKTsKICBw cmludGYoIiVkXG4iLHNsZWVwZXIpOwogIGRhdGFfZm9yX3RyYW5zbWlzc2lvbiA9IG1hbGxv YyggMTA2OCApOwogIGZkX3NvY2tldD1pbml0X2Nvbm5lY3Rpb25fY2xpZW50KCk7CiAgd2hp bGUoMSkgewoJc2VuZF9kYXRhKCBkYXRhX2Zvcl90cmFuc21pc3Npb24sIDEwNjggKTsgCgl1 c2xlZXAoc2xlZXBlcik7CiAgfQogcmV0dXJuIDA7Cn0= --------------020303010908080508030408--