Skip to content

Commit

Permalink
Staging: at76_usb: fix !CONFIG_WIRELESS_EXT build
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexander Beregalov authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent e882335 commit bbff696
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/staging/at76_usb/at76_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bbff696

Please sign in to comment.