Search Linux Wireless

[PATCH 1/7] compat-wireless: do not use needed_headroom

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



needed_headroom was introduced in kernel 2.6.26.
Resize hard_header_len instead as it was done before using
needed_headroom.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 patches/01-netdev.patch |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/patches/01-netdev.patch b/patches/01-netdev.patch
index bb6b30d..e168105 100644
--- a/patches/01-netdev.patch
+++ b/patches/01-netdev.patch
@@ -278,7 +278,7 @@ without creating a headache on maintenance of the pathes.
  	dev->tx_queue_len = 0;
 --- a/drivers/net/wireless/orinoco/main.c
 +++ b/drivers/net/wireless/orinoco/main.c
-@@ -2268,9 +2268,9 @@ int orinoco_if_add(struct orinoco_privat
+@@ -2268,14 +2268,18 @@ int orinoco_if_add(struct orinoco_privat
  #endif
  	/* Default to standard ops if not set */
  	if (ops)
@@ -290,6 +290,15 @@ without creating a headache on maintenance of the pathes.
  
  	/* we use the default eth_mac_addr for setting the MAC addr */
  
+ 	/* Reserve space in skb for the SNAP header */
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26))
+ 	dev->needed_headroom = ENCAPS_OVERHEAD;
++#else
++	dev->hard_header_len += ENCAPS_OVERHEAD;
++#endif
+ 
+ 	netif_carrier_off(dev);
+ 
 --- a/net/bluetooth/bnep/netdev.c
 +++ b/net/bluetooth/bnep/netdev.c
 @@ -170,8 +170,12 @@ static inline int bnep_net_proto_filter(
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux