diff options
Diffstat (limited to 'drivers/net/wireless/p54')
-rw-r--r-- | drivers/net/wireless/p54/main.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/p54/p54pci.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c index 18012dbfb45d..26428e4c9c60 100644 --- a/drivers/net/wireless/p54/main.c +++ b/drivers/net/wireless/p54/main.c | |||
@@ -216,7 +216,7 @@ static void p54_stop(struct ieee80211_hw *dev) | |||
216 | } | 216 | } |
217 | 217 | ||
218 | static int p54_add_interface(struct ieee80211_hw *dev, | 218 | static int p54_add_interface(struct ieee80211_hw *dev, |
219 | struct ieee80211_if_init_conf *conf) | 219 | struct ieee80211_vif *vif) |
220 | { | 220 | { |
221 | struct p54_common *priv = dev->priv; | 221 | struct p54_common *priv = dev->priv; |
222 | 222 | ||
@@ -226,28 +226,28 @@ static int p54_add_interface(struct ieee80211_hw *dev, | |||
226 | return -EOPNOTSUPP; | 226 | return -EOPNOTSUPP; |
227 | } | 227 | } |
228 | 228 | ||
229 | priv->vif = conf->vif; | 229 | priv->vif = vif; |
230 | 230 | ||
231 | switch (conf->type) { | 231 | switch (vif->type) { |
232 | case NL80211_IFTYPE_STATION: | 232 | case NL80211_IFTYPE_STATION: |
233 | case NL80211_IFTYPE_ADHOC: | 233 | case NL80211_IFTYPE_ADHOC: |
234 | case NL80211_IFTYPE_AP: | 234 | case NL80211_IFTYPE_AP: |
235 | case NL80211_IFTYPE_MESH_POINT: | 235 | case NL80211_IFTYPE_MESH_POINT: |
236 | priv->mode = conf->type; | 236 | priv->mode = vif->type; |
237 | break; | 237 | break; |
238 | default: | 238 | default: |
239 | mutex_unlock(&priv->conf_mutex); | 239 | mutex_unlock(&priv->conf_mutex); |
240 | return -EOPNOTSUPP; | 240 | return -EOPNOTSUPP; |
241 | } | 241 | } |
242 | 242 | ||
243 | memcpy(priv->mac_addr, conf->mac_addr, ETH_ALEN); | 243 | memcpy(priv->mac_addr, vif->addr, ETH_ALEN); |
244 | p54_setup_mac(priv); | 244 | p54_setup_mac(priv); |
245 | mutex_unlock(&priv->conf_mutex); | 245 | mutex_unlock(&priv->conf_mutex); |
246 | return 0; | 246 | return 0; |
247 | } | 247 | } |
248 | 248 | ||
249 | static void p54_remove_interface(struct ieee80211_hw *dev, | 249 | static void p54_remove_interface(struct ieee80211_hw *dev, |
250 | struct ieee80211_if_init_conf *conf) | 250 | struct ieee80211_vif *vif) |
251 | { | 251 | { |
252 | struct p54_common *priv = dev->priv; | 252 | struct p54_common *priv = dev->priv; |
253 | 253 | ||
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c index a72f7c2577de..57c646598062 100644 --- a/drivers/net/wireless/p54/p54pci.c +++ b/drivers/net/wireless/p54/p54pci.c | |||
@@ -31,7 +31,7 @@ MODULE_LICENSE("GPL"); | |||
31 | MODULE_ALIAS("prism54pci"); | 31 | MODULE_ALIAS("prism54pci"); |
32 | MODULE_FIRMWARE("isl3886pci"); | 32 | MODULE_FIRMWARE("isl3886pci"); |
33 | 33 | ||
34 | static struct pci_device_id p54p_table[] __devinitdata = { | 34 | static DEFINE_PCI_DEVICE_TABLE(p54p_table) = { |
35 | /* Intersil PRISM Duette/Prism GT Wireless LAN adapter */ | 35 | /* Intersil PRISM Duette/Prism GT Wireless LAN adapter */ |
36 | { PCI_DEVICE(0x1260, 0x3890) }, | 36 | { PCI_DEVICE(0x1260, 0x3890) }, |
37 | /* 3COM 3CRWE154G72 Wireless LAN adapter */ | 37 | /* 3COM 3CRWE154G72 Wireless LAN adapter */ |