linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chr <chunkeey@web.de>
To: Hans de Goede <j.w.r.degoede@hhs.nl>
Cc: Michael Wu <flamingice@sourmilk.net>, linux-wireless@vger.kernel.org
Subject: Re: Recent linux-wireless git changes have broken my prism54pci card
Date: Mon, 20 Aug 2007 02:44:22 +0200	[thread overview]
Message-ID: <200708200244.22841.chunkeey@web.de> (raw)
In-Reply-To: <46C1638C.7070704@hhs.nl>

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

On Tuesday, 14. August 2007, Hans de Goede wrote:

Hans,

Any updates? Or are you on holiday?

I've prepared a patch, which should theoretically lower the excessive retry count.

however I don't think it will magically solve anything...


OT: Michael/anyone else:

1. Do you know why the rate algorithm (rc80211_simple) starts with the lowest speed?
  or is this really only a p54 bug?
 
2. Is there any way to get a station aid (in ap mode) and dtim period
 without lots of castings or "new variables" in struct ieee80211_tx_control?
 I really need them for AP mode (yes, I have a "proof of concept" for it,
 the hardest thing was to compile hostapd ;-) ).

Thanks,
	Chr.



[-- Attachment #2: p54-tx-status-is-not-always-necessary.diff --]
[-- Type: text/x-diff, Size: 2156 bytes --]

diff -Nurp a/drivers/net/wireless/p54common.c b/drivers/net/wireless/p54common.c
--- a/drivers/net/wireless/p54common.c	2007-08-18 20:44:04.000000000 +0200
+++ b/drivers/net/wireless/p54common.c	2007-08-20 02:20:53.000000000 +0200
@@ -315,9 +315,11 @@ static void p54_rx_frame_sent(struct iee
 	struct p54_control_hdr *hdr = (struct p54_control_hdr *) skb->data;
 	struct p54_frame_sent_hdr *payload = (struct p54_frame_sent_hdr *) hdr->data;
 	struct sk_buff *entry = (struct sk_buff *) priv->tx_queue.next;
+	struct p54_control_hdr *entry_hdr;
+	struct p54_tx_control_allocdata *entry_data;
 	u32 addr = le32_to_cpu(hdr->req_id) - 0x70;
 	struct memrecord *range = NULL;
-	u32 freed = 0;
+	u32 freed = 0, pad = 0;
 	u32 last_addr = priv->rx_start;
 
 	while (entry != (struct sk_buff *)&priv->tx_queue) {
@@ -339,15 +341,27 @@ static void p54_rx_frame_sent(struct iee
 			memcpy(&status.control, range->control,
 			       sizeof(status.control));
 			kfree(range->control);
-			if (!payload->status)
-				status.flags |= IEEE80211_TX_STATUS_ACK;
-			else
-				status.excessive_retries = 1;
-			status.retry_count = payload->retries - 1;
-			status.ack_signal = le16_to_cpu(payload->ack_rssi);
-			skb_pull(entry, sizeof(*hdr) + sizeof(struct p54_tx_control_allocdata));
 			priv->tx_stats.data[status.control.queue].len--;
-			ieee80211_tx_status_irqsafe(dev, entry, &status);
+
+			if (status.control.flags & IEEE80211_TXCTL_REQ_TX_STATUS) {
+				entry_hdr = (struct p54_control_hdr *) entry->data;
+				entry_data = (struct p54_tx_control_allocdata *) entry_hdr->data;
+				if (entry_hdr->magic1 == cpu_to_le16(0x4010))
+					pad = entry_data->align[0];
+				else
+					pad = 0;
+
+				if (!payload->status)
+					status.flags |= IEEE80211_TX_STATUS_ACK;
+				else
+					status.excessive_retries = 1;
+				status.retry_count = payload->retries - 1;
+				status.ack_signal = le16_to_cpu(payload->ack_rssi);
+				skb_pull(entry, sizeof(*hdr) + pad + sizeof(*entry_data));
+				ieee80211_tx_status_irqsafe(dev, entry, &status);
+			} else
+                                dev_kfree_skb_irq(entry);
+
 			break;
 		} else
 			last_addr = range->end_addr;

  parent reply	other threads:[~2007-08-20  0:44 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-13  5:50 Recent linux-wireless git changes have broken my prism54pci card Hans de Goede
2007-08-13  6:18 ` Michael Wu
2007-08-13  6:33   ` Hans de Goede
2007-08-13  6:46     ` Andy Green
2007-08-13  7:49       ` Hans de Goede
2007-08-13  7:58         ` Michael Wu
2007-08-13  8:05           ` Andy Green
2007-08-13 11:58           ` Hans de Goede
2007-08-13 20:14             ` Michael Wu
2007-08-13 22:25               ` Chr
2007-08-14  8:10                 ` Hans de Goede
2007-08-14 18:29                   ` Chr
2007-08-20  0:44                   ` Chr [this message]
2007-08-20  2:32                     ` Larry Finger
2007-08-20  7:52                     ` Hans de Goede
2007-08-20 11:51                       ` Chr
2007-08-20 12:17                         ` Johannes Berg
2007-08-20 22:14                           ` Chr
2007-08-23 11:24                         ` Hans de Goede
2007-08-23 14:43                           ` Chr
2007-08-23 14:36                             ` Hans de Goede
2007-08-23 21:52                             ` Hans de Goede
2007-08-23 23:00                               ` Chr
2007-08-24  9:45                                 ` Hans de Goede
2007-08-28 19:32                                   ` Chr
2007-08-30  5:52                                     ` Michael Wu
2007-08-30 11:16                                       ` Chr
2007-08-31 21:27                                       ` [PATCH 1/2] p54: various fixes Chr
2007-08-31 21:27                                       ` [PATCH 2/2] p54: disable QoS on older firmwares Chr
2007-09-01  4:58                                         ` Michael Wu
2007-09-01 16:54                                           ` [PATCH 2/2 v2] " Chr
2007-08-13 13:14       ` Recent linux-wireless git changes have broken my prism54pci card Johannes Berg

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=200708200244.22841.chunkeey@web.de \
    --to=chunkeey@web.de \
    --cc=flamingice@sourmilk.net \
    --cc=j.w.r.degoede@hhs.nl \
    --cc=linux-wireless@vger.kernel.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 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).