diff options
Diffstat (limited to 'drivers/net/wireless/ipw2200.h')
-rw-r--r-- | drivers/net/wireless/ipw2200.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/net/wireless/ipw2200.h b/drivers/net/wireless/ipw2200.h index 5405ba105abf..c2a7aa32f724 100644 --- a/drivers/net/wireless/ipw2200.h +++ b/drivers/net/wireless/ipw2200.h | |||
@@ -1907,27 +1907,4 @@ struct ipw_cmd_log { | |||
1907 | 1907 | ||
1908 | #define IPW_MAX_CONFIG_RETRIES 10 | 1908 | #define IPW_MAX_CONFIG_RETRIES 10 |
1909 | 1909 | ||
1910 | static inline u32 frame_hdr_len(struct ieee80211_hdr_4addr *hdr) | ||
1911 | { | ||
1912 | u32 retval; | ||
1913 | u16 fc; | ||
1914 | |||
1915 | retval = sizeof(struct ieee80211_hdr_3addr); | ||
1916 | fc = le16_to_cpu(hdr->frame_ctl); | ||
1917 | |||
1918 | /* | ||
1919 | * Function ToDS FromDS | ||
1920 | * IBSS 0 0 | ||
1921 | * To AP 1 0 | ||
1922 | * From AP 0 1 | ||
1923 | * WDS (bridge) 1 1 | ||
1924 | * | ||
1925 | * Only WDS frames use Address4 among them. --YZ | ||
1926 | */ | ||
1927 | if (!(fc & IEEE80211_FCTL_TODS) || !(fc & IEEE80211_FCTL_FROMDS)) | ||
1928 | retval -= ETH_ALEN; | ||
1929 | |||
1930 | return retval; | ||
1931 | } | ||
1932 | |||
1933 | #endif /* __ipw2200_h__ */ | 1910 | #endif /* __ipw2200_h__ */ |