diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-07-03 12:25:50 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 19:01:36 (GMT) |
commit | bbff696edead56dd87e1d10593ff0b438d29fbc5 (patch) | |
tree | 5e26d51b28c53dd5906028e7331a1fb942402c67 /drivers/staging/at76_usb/at76_usb.c | |
parent | e882335bb19c0b9f96971fa6b1fe6c019280056b (diff) | |
download | linux-fsl-qoriq-bbff696edead56dd87e1d10593ff0b438d29fbc5.tar.xz |
Staging: at76_usb: fix !CONFIG_WIRELESS_EXT build
Fix this build error when CONFIG_WIRELESS_EXT is not set
at76_usb.c:5322: error: 'struct net_device' has no member named 'wireless_data'
at76_usb.c:5325: error: 'struct net_device' has no member named 'wireless_handlers'
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/at76_usb/at76_usb.c')
-rw-r--r-- | drivers/staging/at76_usb/at76_usb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/at76_usb/at76_usb.c b/drivers/staging/at76_usb/at76_usb.c index c165c50..97aef78 100644 --- a/drivers/staging/at76_usb/at76_usb.c +++ b/drivers/staging/at76_usb/at76_usb.c @@ -5319,10 +5319,12 @@ static int at76_init_new_device(struct at76_priv *priv, /* Add pointers to enable iwspy support. */ priv->wireless_data.spy_data = &priv->spy_data; +#ifdef CONFIG_WIRELESS_EXT netdev->wireless_data = &priv->wireless_data; + netdev->wireless_handlers = &at76_handler_def; +#endif netdev->watchdog_timeo = 2 * HZ; - netdev->wireless_handlers = &at76_handler_def; dev_alloc_name(netdev, "wlan%d"); ret = register_netdev(priv->netdev); |