From: johannes@sipsolutions.net
To: linux-wireless@vger.kernel.org
Subject: [PATCH 4/5] zd1211rw-d80211: update for wiphy api
Date: Fri, 09 Feb 2007 17:24:18 +0100 [thread overview]
Message-ID: <20070209162528.027486000@sipsolutions.net> (raw)
In-Reply-To: 20070209162414.043158000@sipsolutions.net
update zd1211rw-d80211.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
drivers/net/wireless/d80211/zd1211rw/zd_mac.c | 6 +++---
drivers/net/wireless/d80211/zd1211rw/zd_usb.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
--- wireless-dev.orig/drivers/net/wireless/d80211/zd1211rw/zd_mac.c 2007-02-09 17:08:20.773840519 +0100
+++ wireless-dev/drivers/net/wireless/d80211/zd1211rw/zd_mac.c 2007-02-09 17:08:56.243840519 +0100
@@ -54,7 +54,7 @@ int zd_mac_init_hw(struct ieee80211_hw *
goto disable_int;
ZD_ASSERT(!irqs_disabled());
spin_lock_irq(&mac->lock);
- memcpy(dev->perm_addr, addr, ETH_ALEN);
+ SET_IEEE80211_PERM_ADDR(dev, addr);
spin_unlock_irq(&mac->lock);
r = zd_read_regdomain(chip, &default_regdomain);
@@ -589,7 +589,7 @@ struct ieee80211_hw *zd_mac_alloc(struct
mac->dev = dev;
mac->mode = IEEE80211_IF_TYPE_MGMT;
- mac->hwaddr = dev->perm_addr;
+ mac->hwaddr = dev->wiphy->perm_addr;
mac->requested_channel = 1;
memcpy(mac->channels, zd_channels, sizeof(zd_channels));
@@ -625,7 +625,7 @@ struct ieee80211_hw *zd_mac_alloc(struct
housekeeping_init(mac);
SET_MODULE_OWNER(dev);
- dev->dev = &intf->dev;
+ SET_IEEE80211_DEV(dev, &intf->dev);
return dev;
}
--- wireless-dev.orig/drivers/net/wireless/d80211/zd1211rw/zd_usb.c 2007-02-09 17:08:21.003840519 +0100
+++ wireless-dev/drivers/net/wireless/d80211/zd1211rw/zd_usb.c 2007-02-09 17:08:56.253840519 +0100
@@ -1062,7 +1062,7 @@ static int probe(struct usb_interface *i
}
dev_dbg_f(&intf->dev, "successful\n");
- dev_info(&intf->dev,"wiphy%d\n", dev->index);
+ dev_info(&intf->dev,"wiphy%d\n", dev->wiphy->wiphy_index);
return 0;
error:
usb_reset_device(interface_to_usbdev(intf));
--
next prev parent reply other threads:[~2007-02-09 16:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-09 16:24 [PATCH 0/5] cfg80211 changes for wireless-dev johannes
2007-02-09 16:24 ` [PATCH 1/5] cfg80211: update to code submitted to mainline johannes
2007-02-11 13:13 ` Johannes Berg
2007-02-09 16:24 ` [PATCH 2/5] wext: clean up johannes
2007-02-09 16:24 ` [PATCH 3/5] d80211: update for wiphy api johannes
2007-02-09 16:24 ` johannes [this message]
2007-02-09 16:24 ` [PATCH 5/5] bcm43xx-d80211: " johannes
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=20070209162528.027486000@sipsolutions.net \
--to=johannes@sipsolutions.net \
--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).