openssl: replace full recipe for 0.9.8 with a stripped-down libssl0.9.8 recipe contai...
[opendreambox.git] / meta-opendreambox / recipes-connectivity / madwifi / madwifi-ng / fix-build-3.2.patch
1 diff -Naur madwifi-ng-r3314-20080131.org/ath/if_ath.c madwifi-ng-r3314-20080131/ath/if_ath.c
2 --- madwifi-ng-r3314-20080131.org/ath/if_ath.c  2012-01-29 01:46:37.000000000 +0100
3 +++ madwifi-ng-r3314-20080131/ath/if_ath.c      2012-01-29 02:00:12.433682375 +0100
4 @@ -566,7 +566,11 @@
5         .ndo_stop               = ath_stop,
6         .ndo_start_xmit         = ath_hardstart,
7         .ndo_tx_timeout         = ath_tx_timeout,
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
9 +       .ndo_set_rx_mode        = ath_mode_init,
10 +#else
11         .ndo_set_multicast_list = ath_mode_init,
12 +#endif
13         .ndo_do_ioctl           = ath_ioctl,
14         .ndo_get_stats          = ath_getstats,
15         .ndo_set_mac_address    = ath_set_mac_address,
16 diff -Naur madwifi-ng-r3314-20080131.org/net80211/ieee80211.c madwifi-ng-r3314-20080131/net80211/ieee80211.c
17 --- madwifi-ng-r3314-20080131.org/net80211/ieee80211.c  2012-01-29 01:46:37.000000000 +0100
18 +++ madwifi-ng-r3314-20080131/net80211/ieee80211.c      2012-01-29 02:03:42.505687801 +0100
19 @@ -459,7 +459,11 @@
20         .ndo_open               = ieee80211_open,
21         .ndo_stop               = ieee80211_stop,
22         .ndo_start_xmit         = ieee80211_hardstart,
23 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
24 +       .ndo_set_rx_mode        = ieee80211_set_multicast_list,
25 +#else
26         .ndo_set_multicast_list = ieee80211_set_multicast_list,
27 +#endif
28         .ndo_change_mtu         = ieee80211_change_mtu,
29         .ndo_do_ioctl           = ieee80211_ioctl,
30  };
31 @@ -1843,7 +1847,9 @@
32         IEEE80211_UNLOCK_IRQ(ic);
33  
34         /* XXX: Merge multicast list into parent device */
35 -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
36 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
37 +       parent->netdev_ops->ndo_set_rx_mode(ic->ic_dev);
38 +#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29)
39         parent->set_multicast_list(ic->ic_dev);
40  #else
41         parent->netdev_ops->ndo_set_multicast_list(ic->ic_dev);