Commit bbff696e authored by Alexander Beregalov's avatar Alexander Beregalov Committed by Greg Kroah-Hartman

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: default avatarAlexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e882335b
...@@ -5319,10 +5319,12 @@ static int at76_init_new_device(struct at76_priv *priv, ...@@ -5319,10 +5319,12 @@ static int at76_init_new_device(struct at76_priv *priv,
/* Add pointers to enable iwspy support. */ /* Add pointers to enable iwspy support. */
priv->wireless_data.spy_data = &priv->spy_data; priv->wireless_data.spy_data = &priv->spy_data;
#ifdef CONFIG_WIRELESS_EXT
netdev->wireless_data = &priv->wireless_data; netdev->wireless_data = &priv->wireless_data;
netdev->wireless_handlers = &at76_handler_def;
#endif
netdev->watchdog_timeo = 2 * HZ; netdev->watchdog_timeo = 2 * HZ;
netdev->wireless_handlers = &at76_handler_def;
dev_alloc_name(netdev, "wlan%d"); dev_alloc_name(netdev, "wlan%d");
ret = register_netdev(priv->netdev); ret = register_netdev(priv->netdev);
......
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