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,
const struct obj_mlme *mlme, int error)
{
union iwreq_data wrqu;
char *memptr;
wrqu.data.pointer = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL);
if (!wrqu.data.pointer)
memptr = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL);
if (!memptr)
return;
wrqu.data.pointer = memptr;
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);
wireless_send_event(priv->ndev, IWEVCUSTOM, &wrqu, wrqu.data.pointer);
kfree(wrqu.data.pointer);
wireless_send_event(priv->ndev, IWEVCUSTOM, &wrqu, memptr);
kfree(memptr);
}
static void
send_simple_event(islpci_private *priv, const char *str)
{
union iwreq_data wrqu;
char *memptr;
int n = strlen(str);
wrqu.data.pointer = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL);
if (!wrqu.data.pointer)
memptr = kmalloc(IW_CUSTOM_MAX, GFP_KERNEL);
if (!memptr)
return;
BUG_ON(n > IW_CUSTOM_MAX);
wrqu.data.pointer = memptr;
wrqu.data.length = n;
strcpy(wrqu.data.pointer, str);
wireless_send_event(priv->ndev, IWEVCUSTOM, &wrqu, wrqu.data.pointer);
kfree(wrqu.data.pointer);
strcpy(memptr, str);
wireless_send_event(priv->ndev, IWEVCUSTOM, &wrqu, memptr);
kfree(memptr);
}
static void
......
......@@ -292,6 +292,8 @@ prism54_resume(struct pci_dev *pdev)
islpci_private *priv = ndev ? netdev_priv(ndev) : NULL;
BUG_ON(!priv);
pci_enable_device(pdev);
printk(KERN_NOTICE "%s: got resume request\n", ndev->name);
pci_restore_state(pdev);
......
......@@ -38,6 +38,10 @@
#error Firmware Loading is not configured in the kernel !
#endif
#ifndef __iomem
#define __iomem
#endif
#define prism54_synchronize_irq(irq) synchronize_irq(irq)
#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