~ubuntu-branches/ubuntu/hardy/linux-backports-modules-2.6.24/hardy-security

« back to all changes in this revision

Viewing changes to updates/wireless/iwlwifi/mac80211/patches/kcompat-skb_mac_header.h

  • Committer: Bazaar Package Importer
  • Author(s): , Ben Collins
  • Date: 2008-04-02 06:59:04 UTC
  • Revision ID: james.westby@ubuntu.com-20080402065904-e5knh2gn2hms3xbb
Tags: 2.6.24-14.11
[Ben Collins]

* iwlwifi: Update to iwlwifi-1.2.25 and mac80211-10.0.4
  - LP: #200950
* ubuntu: Slight cleanups to module hiearchy and Makefiles
* mac80211: Enable LED triggers
* iwlwifi: Add LED trigger support (rx and tx only)
  - LP: #176090

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __kcompat_skb_mac_header_h__
 
2
#define __kcompat_skb_mac_header_h__
 
3
 
 
4
static inline void skb_set_mac_header(struct sk_buff *skb, int offset)
 
5
{
 
6
        skb->mac.raw = skb->data + offset;
 
7
}
 
8
 
 
9
static inline void skb_set_network_header(struct sk_buff *skb, int offset)
 
10
{
 
11
        skb->nh.raw = skb->data + offset;
 
12
}
 
13
 
 
14
static inline void skb_set_transport_header(struct sk_buff *skb, 
 
15
                                            int offset)
 
16
{
 
17
        skb->h.raw = skb->data + offset;
 
18
}
 
19
 
 
20
static inline const u8 *skb_mac_header(const struct sk_buff *skb)
 
21
{
 
22
        return skb->mac.raw;
 
23
}
 
24
 
 
25
static inline const u8 *skb_network_header(const struct sk_buff *skb)
 
26
{
 
27
        return skb->nh.raw;
 
28
}
 
29
 
 
30
static inline const u8 *skb_transport_header(const struct sk_buff *skb)
 
31
{
 
32
        return skb->h.raw;
 
33
}
 
34
 
 
35
static inline const u8 *skb_tail_pointer(const struct sk_buff *skb)
 
36
{
 
37
        return skb->tail;
 
38
}
 
39
 
 
40
#endif