Search Linux Wireless

Re: [PATCH 5/6] p54: borrow some setup code from stlc45xx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 15, 2008 at 04:07:56AM +0200, Christian Lamparter wrote:
> This patch initialize all remaining values which are necessary for SPI firmwares.
> 
> Signed-off-by: Christian Lamparter <chunkeey@xxxxxx>

I had to apply this patch on top to get this to build...please make
sure you send me the same patches that you tested yourself!

John

---

diff --git a/drivers/net/wireless/p54/p54common.c b/drivers/net/wireless/p54/p54common.c
index 77ece7c..9895563 100644
--- a/drivers/net/wireless/p54/p54common.c
+++ b/drivers/net/wireless/p54/p54common.c
@@ -1032,13 +1032,13 @@ static int p54_setup_mac(struct ieee80211_hw *dev, u16 mode, const u8 *bssid)
 	struct sk_buff *skb;
 	struct p54_setup_mac *setup;
 
-	skb = p54_alloc_skb(dev, 0x8001, sizeof(struct p54_tx_control_hdr) +
+	skb = p54_alloc_skb(dev, 0x8001, sizeof(struct p54_control_hdr) +
 			    sizeof(*setup), P54_CONTROL_TYPE_SETUP,
 			    GFP_ATOMIC);
 	if (!skb)
 		return -ENOMEM;
 
-	setup = (struct p54_tx_control_filter *) skb_put(skb, sizeof(*filter));
+	setup = (struct p54_setup_mac *) skb_put(skb, sizeof(*setup));
 	priv->mac_mode = mode;
 	setup->mac_mode = cpu_to_le16(mode);
 	memcpy(setup->mac_addr, priv->mac_addr, ETH_ALEN);
-- 
John W. Linville		Linux should be at the core
linville@xxxxxxxxxxxxx			of your literate lifestyle.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux