Commit 90b14f29 authored by Jeff Garzik's avatar Jeff Garzik

Merge pobox.com:/garz/repo/netdev-2.6/prism54

into pobox.com:/garz/repo/net-drivers-2.6
parents 3da972f0 c57200ac
...@@ -1524,31 +1524,35 @@ send_formatted_event(islpci_private *priv, const char *str, ...@@ -1524,31 +1524,35 @@ send_formatted_event(islpci_private *priv, const char *str,
const struct obj_mlme *mlme, int error) const struct obj_mlme *mlme, int error)
{ {
union iwreq_data wrqu; union iwreq_data wrqu;
char *memptr;
wrqu.data.pointer = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL); memptr = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL);
if (!wrqu.data.pointer) if (!memptr)
return; return;
wrqu.data.pointer = memptr;
wrqu.data.length = 0; wrqu.data.length = 0;
format_event(priv, wrqu.data.pointer, str, mlme, &wrqu.data.length, format_event(priv, memptr, str, mlme, &wrqu.data.length,
error); error);
wireless_send_event(priv->ndev, IWEVCUSTOM, &wrqu, wrqu.data.pointer); wireless_send_event(priv->ndev, IWEVCUSTOM, &wrqu, memptr);
kfree(wrqu.data.pointer); kfree(memptr);
} }
static void static void
send_simple_event(islpci_private *priv, const char *str) send_simple_event(islpci_private *priv, const char *str)
{ {
union iwreq_data wrqu; union iwreq_data wrqu;
char *memptr;
int n = strlen(str); int n = strlen(str);
wrqu.data.pointer = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL); memptr = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL);
if (!wrqu.data.pointer) if (!memptr)
return; return;
BUG_ON(n > IW_CUSTOM_MAX); BUG_ON(n > IW_CUSTOM_MAX);
wrqu.data.pointer = memptr;
wrqu.data.length = n; wrqu.data.length = n;
strcpy(wrqu.data.pointer, str); strcpy(memptr, str);
wireless_send_event(priv->ndev, IWEVCUSTOM, &wrqu, wrqu.data.pointer); wireless_send_event(priv->ndev, IWEVCUSTOM, &wrqu, memptr);
kfree(wrqu.data.pointer); kfree(memptr);
} }
static void static void
......
...@@ -292,6 +292,8 @@ prism54_resume(struct pci_dev *pdev) ...@@ -292,6 +292,8 @@ prism54_resume(struct pci_dev *pdev)
islpci_private *priv = ndev ? netdev_priv(ndev) : NULL; islpci_private *priv = ndev ? netdev_priv(ndev) : NULL;
BUG_ON(!priv); BUG_ON(!priv);
pci_enable_device(pdev);
printk(KERN_NOTICE "%s: got resume request\n", ndev->name); printk(KERN_NOTICE "%s: got resume request\n", ndev->name);
pci_restore_state(pdev); pci_restore_state(pdev);
......
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
#error Firmware Loading is not configured in the kernel ! #error Firmware Loading is not configured in the kernel !
#endif #endif
#ifndef __iomem
#define __iomem
#endif
#define prism54_synchronize_irq(irq) synchronize_irq(irq) #define prism54_synchronize_irq(irq) synchronize_irq(irq)
#define PRISM_FW_PDEV &priv->pdev->dev #define PRISM_FW_PDEV &priv->pdev->dev
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment