aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2200.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-03-20 04:38:50 -0500
committerJeff Garzik <jeff@garzik.org>2006-03-20 04:38:50 -0500
commit2e9ff56efbc005ab2b92b68df65940c7459446c6 (patch)
tree8844a54f2b205bb5dceb6391d05df9a9f8bc62d2 /drivers/net/wireless/ipw2200.h
parentd378aca6ec708bfb24df5c47801b1f2399efc481 (diff)
parentcc8279f68c34c3f32b3a85f3103b0ad755c57846 (diff)
Merge branch 'upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'drivers/net/wireless/ipw2200.h')
-rw-r--r--drivers/net/wireless/ipw2200.h39
1 files changed, 11 insertions, 28 deletions
diff --git a/drivers/net/wireless/ipw2200.h b/drivers/net/wireless/ipw2200.h
index 5405ba105abf..4b9804900702 100644
--- a/drivers/net/wireless/ipw2200.h
+++ b/drivers/net/wireless/ipw2200.h
@@ -1,6 +1,6 @@
1/****************************************************************************** 1/******************************************************************************
2 2
3 Copyright(c) 2003 - 2005 Intel Corporation. All rights reserved. 3 Copyright(c) 2003 - 2006 Intel Corporation. All rights reserved.
4 4
5 This program is free software; you can redistribute it and/or modify it 5 This program is free software; you can redistribute it and/or modify it
6 under the terms of version 2 of the GNU General Public License as 6 under the terms of version 2 of the GNU General Public License as
@@ -246,8 +246,10 @@ enum connection_manager_assoc_states {
246#define HOST_NOTIFICATION_S36_MEASUREMENT_REFUSED 31 246#define HOST_NOTIFICATION_S36_MEASUREMENT_REFUSED 31
247 247
248#define HOST_NOTIFICATION_STATUS_BEACON_MISSING 1 248#define HOST_NOTIFICATION_STATUS_BEACON_MISSING 1
249#define IPW_MB_DISASSOCIATE_THRESHOLD_DEFAULT 24 249#define IPW_MB_ROAMING_THRESHOLD_MIN 1
250#define IPW_MB_ROAMING_THRESHOLD_DEFAULT 8 250#define IPW_MB_ROAMING_THRESHOLD_DEFAULT 8
251#define IPW_MB_ROAMING_THRESHOLD_MAX 30
252#define IPW_MB_DISASSOCIATE_THRESHOLD_DEFAULT 3*IPW_MB_ROAMING_THRESHOLD_DEFAULT
251#define IPW_REAL_RATE_RX_PACKET_THRESHOLD 300 253#define IPW_REAL_RATE_RX_PACKET_THRESHOLD 300
252 254
253#define MACADRR_BYTE_LEN 6 255#define MACADRR_BYTE_LEN 6
@@ -618,13 +620,16 @@ struct notif_tgi_tx_key {
618 u8 reserved; 620 u8 reserved;
619} __attribute__ ((packed)); 621} __attribute__ ((packed));
620 622
623#define SILENCE_OVER_THRESH (1)
624#define SILENCE_UNDER_THRESH (2)
625
621struct notif_link_deterioration { 626struct notif_link_deterioration {
622 struct ipw_cmd_stats stats; 627 struct ipw_cmd_stats stats;
623 u8 rate; 628 u8 rate;
624 u8 modulation; 629 u8 modulation;
625 struct rate_histogram histogram; 630 struct rate_histogram histogram;
626 u8 reserved1; 631 u8 silence_notification_type; /* SILENCE_OVER/UNDER_THRESH */
627 u16 reserved2; 632 u16 silence_count;
628} __attribute__ ((packed)); 633} __attribute__ ((packed));
629 634
630struct notif_association { 635struct notif_association {
@@ -782,7 +787,7 @@ struct ipw_sys_config {
782 u8 enable_cts_to_self; 787 u8 enable_cts_to_self;
783 u8 enable_multicast_filtering; 788 u8 enable_multicast_filtering;
784 u8 bt_coexist_collision_thr; 789 u8 bt_coexist_collision_thr;
785 u8 reserved2; 790 u8 silence_threshold;
786 u8 accept_all_mgmt_bcpr; 791 u8 accept_all_mgmt_bcpr;
787 u8 accept_all_mgtm_frames; 792 u8 accept_all_mgtm_frames;
788 u8 pass_noise_stats_to_host; 793 u8 pass_noise_stats_to_host;
@@ -1892,6 +1897,7 @@ struct ipw_cmd_log {
1892#define CFG_SYS_ANTENNA_BOTH 0x00 /* NIC selects best antenna */ 1897#define CFG_SYS_ANTENNA_BOTH 0x00 /* NIC selects best antenna */
1893#define CFG_SYS_ANTENNA_A 0x01 /* force antenna A */ 1898#define CFG_SYS_ANTENNA_A 0x01 /* force antenna A */
1894#define CFG_SYS_ANTENNA_B 0x03 /* force antenna B */ 1899#define CFG_SYS_ANTENNA_B 0x03 /* force antenna B */
1900#define CFG_SYS_ANTENNA_SLOW_DIV 0x02 /* consider background noise */
1895 1901
1896/* 1902/*
1897 * The definitions below were lifted off the ipw2100 driver, which only 1903 * The definitions below were lifted off the ipw2100 driver, which only
@@ -1907,27 +1913,4 @@ struct ipw_cmd_log {
1907 1913
1908#define IPW_MAX_CONFIG_RETRIES 10 1914#define IPW_MAX_CONFIG_RETRIES 10
1909 1915
1910static 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__ */ 1916#endif /* __ipw2200_h__ */