* iwlwifi TX reply bug
@ 2008-10-10 9:11 Johannes Berg
2008-10-10 12:45 ` Tomas Winkler
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2008-10-10 9:11 UTC (permalink / raw)
To: Tomas Winkler; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
sta_id = iwl_get_ra_sta_id(priv, hdr);
if (txq->sched_retry && unlikely(sta_id == IWL_INVALID_STATION)) {
IWL_ERROR("Station not known\n");
return;
}
if (txq->sched_retry) {
[...]
} else {
[...]
if (index != -1) {
int freed = iwl_tx_queue_reclaim(priv, txq_id, index);
if (tid != MAX_TID_COUNT)
priv->stations[sta_id].tid[tid].tfds_in_queue -= freed;
[...]
priv->stations has 32 entries, IWL_INVALID_STATION is 255.
Oops.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iwlwifi TX reply bug
2008-10-10 9:11 iwlwifi TX reply bug Johannes Berg
@ 2008-10-10 12:45 ` Tomas Winkler
2008-10-10 13:28 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: Tomas Winkler @ 2008-10-10 12:45 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On Fri, Oct 10, 2008 at 11:11 AM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> sta_id = iwl_get_ra_sta_id(priv, hdr);
> if (txq->sched_retry && unlikely(sta_id == IWL_INVALID_STATION)) {
> IWL_ERROR("Station not known\n");
> return;
> }
>
> if (txq->sched_retry) {
> [...]
> } else {
> [...]
> if (index != -1) {
> int freed = iwl_tx_queue_reclaim(priv, txq_id, index);
> if (tid != MAX_TID_COUNT)
> priv->stations[sta_id].tid[tid].tfds_in_queue -= freed;
> [...]
>
>
> priv->stations has 32 entries, IWL_INVALID_STATION is 255.
Don't see a problem this is what iwl_find_station returns if it cannot find
Anyhow I've rewritten the whole code, the patch is on the way.
Tomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iwlwifi TX reply bug
2008-10-10 12:45 ` Tomas Winkler
@ 2008-10-10 13:28 ` Johannes Berg
2008-10-10 14:38 ` Tomas Winkler
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2008-10-10 13:28 UTC (permalink / raw)
To: Tomas Winkler; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 963 bytes --]
On Fri, 2008-10-10 at 14:45 +0200, Tomas Winkler wrote:
> On Fri, Oct 10, 2008 at 11:11 AM, Johannes Berg
> <johannes@sipsolutions.net> wrote:
> > sta_id = iwl_get_ra_sta_id(priv, hdr);
> > if (txq->sched_retry && unlikely(sta_id == IWL_INVALID_STATION)) {
> > IWL_ERROR("Station not known\n");
> > return;
> > }
> >
> > if (txq->sched_retry) {
> > [...]
> > } else {
> > [...]
> > if (index != -1) {
> > int freed = iwl_tx_queue_reclaim(priv, txq_id, index);
> > if (tid != MAX_TID_COUNT)
> > priv->stations[sta_id].tid[tid].tfds_in_queue -= freed;
> > [...]
> >
> >
> > priv->stations has 32 entries, IWL_INVALID_STATION is 255.
>
> Don't see a problem this is what iwl_find_station returns if it cannot find
The last line I quoted uses the sta_id regardless of what was returned.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iwlwifi TX reply bug
2008-10-10 13:28 ` Johannes Berg
@ 2008-10-10 14:38 ` Tomas Winkler
0 siblings, 0 replies; 4+ messages in thread
From: Tomas Winkler @ 2008-10-10 14:38 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On Fri, Oct 10, 2008 at 3:28 PM, Johannes Berg
<johannes@sipsolutions.net> wrote:
> On Fri, 2008-10-10 at 14:45 +0200, Tomas Winkler wrote:
>> On Fri, Oct 10, 2008 at 11:11 AM, Johannes Berg
>> <johannes@sipsolutions.net> wrote:
>> > sta_id = iwl_get_ra_sta_id(priv, hdr);
>> > if (txq->sched_retry && unlikely(sta_id == IWL_INVALID_STATION)) {
>> > IWL_ERROR("Station not known\n");
>> > return;
>> > }
>> >
>> > if (txq->sched_retry) {
>> > [...]
>> > } else {
>> > [...]
>> > if (index != -1) {
>> > int freed = iwl_tx_queue_reclaim(priv, txq_id, index);
>> > if (tid != MAX_TID_COUNT)
>> > priv->stations[sta_id].tid[tid].tfds_in_queue -= freed;
>> > [...]
>> >
>> >
>> > priv->stations has 32 entries, IWL_INVALID_STATION is 255.
>>
>> Don't see a problem this is what iwl_find_station returns if it cannot find
>
> The last line I quoted uses the sta_id regardless of what was returned.
Thanks, I'll check if this is a problem also in new code.
Tomas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-10-10 14:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-10 9:11 iwlwifi TX reply bug Johannes Berg
2008-10-10 12:45 ` Tomas Winkler
2008-10-10 13:28 ` Johannes Berg
2008-10-10 14:38 ` Tomas Winkler
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).