From: damien Date: Fri, 29 Aug 2008 12:14:53 +0000 (+0000) Subject: move code to support Frequency-Hopping spread spectrum (FHSS) PHYs X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e63afc5739cbc4e3446dea7e98d9b1ba81d26dc7;p=openbsd move code to support Frequency-Hopping spread spectrum (FHSS) PHYs to the Attic. nothing uses it in the tree and it is very unlikely that something will use it one day. the only driver supporting FHSS PHYs in the tree is ray(4) and it does not use net80211. --- diff --git a/sys/dev/ic/pgt.c b/sys/dev/ic/pgt.c index 75131f32ddf..b907be9d68d 100644 --- a/sys/dev/ic/pgt.c +++ b/sys/dev/ic/pgt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pgt.c,v 1.51 2008/08/27 09:05:03 damien Exp $ */ +/* $OpenBSD: pgt.c,v 1.52 2008/08/29 12:14:53 damien Exp $ */ /* * Copyright (c) 2006 Claudio Jeker @@ -2669,8 +2669,6 @@ badopmode: preamble = PGT_OID_PREAMBLE_MODE_SHORT; DPRINTF(("IEEE80211_MODE_11G\n")); break; - case IEEE80211_MODE_FH: - /* FALLTHROUGH */ case IEEE80211_MODE_TURBO: /* not handled */ /* FALLTHROUGH */ case IEEE80211_MODE_AUTO: diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index e922fad906c..40985239dad 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211.c,v 1.34 2008/08/27 09:05:04 damien Exp $ */ +/* $OpenBSD: ieee80211.c,v 1.35 2008/08/29 12:14:53 damien Exp $ */ /* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */ /*- @@ -126,8 +126,6 @@ ieee80211_ifattach(struct ifnet *ifp) ic->ic_modecaps |= 1<ic_modecaps |= 1<ic_modecaps |= 1<ic_modecaps |= 1<ic_modecaps & (1<ifm_active |= IFM_IEEE80211_11G; break; - case IEEE80211_MODE_FH: - imr->ifm_active |= IFM_IEEE80211_FH; - break; case IEEE80211_MODE_TURBO: imr->ifm_active |= IFM_IEEE80211_11A | IFM_IEEE80211_TURBO; @@ -635,7 +626,6 @@ ieee80211_setbasicrates(struct ieee80211com *ic) { 3, { 12, 24, 48 } }, /* IEEE80211_MODE_11A */ { 2, { 2, 4 } }, /* IEEE80211_MODE_11B */ { 4, { 2, 4, 11, 22 } }, /* IEEE80211_MODE_11G */ - { 2, { 2, 4 } }, /* IEEE80211_MODE_FH */ { 0 }, /* IEEE80211_MODE_TURBO */ }; enum ieee80211_phymode mode; @@ -674,7 +664,6 @@ ieee80211_setmode(struct ieee80211com *ic, enum ieee80211_phymode mode) IEEE80211_CHAN_A, /* IEEE80211_MODE_11A */ IEEE80211_CHAN_B, /* IEEE80211_MODE_11B */ IEEE80211_CHAN_PUREG, /* IEEE80211_MODE_11G */ - IEEE80211_CHAN_FHSS, /* IEEE80211_MODE_FH */ IEEE80211_CHAN_T, /* IEEE80211_MODE_TURBO */ }; const struct ieee80211_channel *c; @@ -820,8 +809,6 @@ ieee80211_chan2mode(struct ieee80211com *ic, return IEEE80211_MODE_TURBO; else if (IEEE80211_IS_CHAN_5GHZ(chan)) return IEEE80211_MODE_11A; - else if (IEEE80211_IS_CHAN_FHSS(chan)) - return IEEE80211_MODE_FH; else if (chan->ic_flags & (IEEE80211_CHAN_OFDM|IEEE80211_CHAN_DYN)) return IEEE80211_MODE_11G; else @@ -841,8 +828,6 @@ ieee80211_rate2media(struct ieee80211com *ic, int rate, u_int m; /* rate + mode */ u_int r; /* if_media rate */ } rates[] = { - { 2 | IFM_IEEE80211_FH, IFM_IEEE80211_FH1 }, - { 4 | IFM_IEEE80211_FH, IFM_IEEE80211_FH2 }, { 2 | IFM_IEEE80211_11B, IFM_IEEE80211_DS1 }, { 4 | IFM_IEEE80211_11B, IFM_IEEE80211_DS2 }, { 11 | IFM_IEEE80211_11B, IFM_IEEE80211_DS5 }, @@ -881,15 +866,7 @@ ieee80211_rate2media(struct ieee80211com *ic, int rate, case IEEE80211_MODE_11B: mask |= IFM_IEEE80211_11B; break; - case IEEE80211_MODE_FH: - mask |= IFM_IEEE80211_FH; - break; case IEEE80211_MODE_AUTO: - /* NB: ic may be NULL for some drivers */ - if (ic && ic->ic_phytype == IEEE80211_T_FH) { - mask |= IFM_IEEE80211_FH; - break; - } /* NB: hack, 11g matches both 11b+11a rates */ /* FALLTHROUGH */ case IEEE80211_MODE_11G: @@ -915,8 +892,6 @@ ieee80211_media2rate(int mword) { IFM_AUTO, -1 }, { IFM_MANUAL, 0 }, { IFM_NONE, 0 }, - { IFM_IEEE80211_FH1, 2 }, - { IFM_IEEE80211_FH2, 4 }, { IFM_IEEE80211_DS1, 2 }, { IFM_IEEE80211_DS2, 4 }, { IFM_IEEE80211_DS5, 11 }, diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index c84d08266d2..dc5808885a9 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_input.c,v 1.102 2008/08/28 17:56:24 damien Exp $ */ +/* $OpenBSD: ieee80211_input.c,v 1.103 2008/08/29 12:14:53 damien Exp $ */ /*- * Copyright (c) 2001 Atsushi Onoe @@ -959,7 +959,6 @@ ieee80211_save_ie(const u_int8_t *frm, u_int8_t **ie) * [2] Capability * [tlv] Service Set Identifier (SSID) * [tlv] Supported rates - * [tlv*] Frequency-Hopping (FH) Parameter Set * [tlv*] DS Parameter Set (802.11g) * [tlv] ERP Information (802.11g) * [tlv] Extended Supported Rates (802.11g) @@ -975,8 +974,8 @@ ieee80211_recv_probe_resp(struct ieee80211com *ic, struct mbuf *m0, const u_int8_t *frm, *efrm; const u_int8_t *tstamp, *ssid, *rates, *xrates, *edcaie, *wmmie; const u_int8_t *rsnie, *wpaie; - u_int16_t capinfo, bintval, fhdwell; - u_int8_t chan, bchan, fhindex, erp; + u_int16_t capinfo, bintval; + u_int8_t chan, bchan, erp; int is_new; /* @@ -1017,8 +1016,6 @@ ieee80211_recv_probe_resp(struct ieee80211com *ic, struct mbuf *m0, ssid = rates = xrates = edcaie = wmmie = rsnie = wpaie = NULL; bchan = ieee80211_chan2ieee(ic, ic->ic_bss->ni_chan); chan = bchan; - fhdwell = 0; - fhindex = 0; erp = 0; while (frm + 2 <= efrm) { if (frm + 2 + frm[1] > efrm) { @@ -1032,20 +1029,7 @@ ieee80211_recv_probe_resp(struct ieee80211com *ic, struct mbuf *m0, case IEEE80211_ELEMID_RATES: rates = frm; break; - case IEEE80211_ELEMID_FHPARMS: - if (ic->ic_phytype != IEEE80211_T_FH) - break; - if (frm[1] < 5) { - ic->ic_stats.is_rx_elem_toosmall++; - break; - } - fhdwell = LE_READ_2(frm + 2); - chan = IEEE80211_FH_CHAN(frm[4], frm[5]); - fhindex = frm[6]; - break; case IEEE80211_ELEMID_DSPARMS: - if (ic->ic_phytype == IEEE80211_T_FH) - break; if (frm[1] < 1) { ic->ic_stats.is_rx_elem_toosmall++; break; @@ -1118,16 +1102,13 @@ ieee80211_recv_probe_resp(struct ieee80211com *ic, struct mbuf *m0, } if ((ic->ic_state != IEEE80211_S_SCAN || !(ic->ic_caps & IEEE80211_C_SCANALL)) && - chan != bchan && ic->ic_phytype != IEEE80211_T_FH) { + chan != bchan) { /* * Frame was received on a channel different from the * one indicated in the DS params element id; * silently discard it. * * NB: this can happen due to signal leakage. - * But we should take it for FH phy because - * the rssi value should be correct even for - * different hop pattern in FH. */ DPRINTF(("ignore %s on channel %u marked for channel %u\n", isprobe ? "probe response" : "beacon", bchan, chan)); @@ -1265,8 +1246,6 @@ ieee80211_recv_probe_resp(struct ieee80211com *ic, struct mbuf *m0, ni->ni_capinfo = capinfo; /* XXX validate channel # */ ni->ni_chan = &ic->ic_channels[chan]; - ni->ni_fhdwell = fhdwell; - ni->ni_fhindex = fhindex; ni->ni_erp = erp; /* NB: must be after ni_chan is setup */ ieee80211_setup_rates(ic, ni, rates, xrates, IEEE80211_F_DOSORT); @@ -1657,8 +1636,6 @@ ieee80211_recv_assoc_req(struct ieee80211com *ic, struct mbuf *m0, ni->ni_intval = bintval; ni->ni_capinfo = capinfo; ni->ni_chan = ic->ic_bss->ni_chan; - ni->ni_fhdwell = ic->ic_bss->ni_fhdwell; - ni->ni_fhindex = ic->ic_bss->ni_fhindex; end: resp = reassoc ? IEEE80211_FC0_SUBTYPE_REASSOC_RESP : IEEE80211_FC0_SUBTYPE_ASSOC_RESP; diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index c1e799fe52a..3ffcf858c46 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_ioctl.c,v 1.23 2008/08/27 09:05:04 damien Exp $ */ +/* $OpenBSD: ieee80211_ioctl.c,v 1.24 2008/08/29 12:14:53 damien Exp $ */ /* $NetBSD: ieee80211_ioctl.c,v 1.15 2004/05/06 02:58:16 dyoung Exp $ */ /*- @@ -81,8 +81,6 @@ ieee80211_node2req(struct ieee80211com *ic, const struct ieee80211_node *ni, bcopy(ni->ni_tstamp, nr->nr_tstamp, sizeof(nr->nr_tstamp)); nr->nr_intval = ni->ni_intval; nr->nr_capinfo = ni->ni_capinfo; - nr->nr_fhdwell = ni->ni_fhdwell; - nr->nr_fhindex = ni->ni_fhindex; nr->nr_erp = ni->ni_erp; nr->nr_pwrsave = ni->ni_pwrsave; nr->nr_associd = ni->ni_associd; @@ -119,8 +117,6 @@ ieee80211_req2node(struct ieee80211com *ic, const struct ieee80211_nodereq *nr, /* Node information */ ni->ni_intval = nr->nr_intval; ni->ni_capinfo = nr->nr_capinfo; - ni->ni_fhdwell = nr->nr_fhdwell; - ni->ni_fhindex = nr->nr_fhindex; ni->ni_erp = nr->nr_erp; ni->ni_pwrsave = nr->nr_pwrsave; ni->ni_associd = nr->nr_associd; diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index 7252e17e4c2..6c0741c5b4c 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_node.c,v 1.44 2008/08/27 09:05:04 damien Exp $ */ +/* $OpenBSD: ieee80211_node.c,v 1.45 2008/08/29 12:14:53 damien Exp $ */ /* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */ /*- @@ -366,10 +366,6 @@ ieee80211_create_ibss(struct ieee80211com* ic, struct ieee80211_channel *chan) /* schedule a GTK/IGTK rekeying after 3600s */ timeout_add(&ic->ic_rsn_timeout, 3600 * hz); } - if (ic->ic_phytype == IEEE80211_T_FH) { - ni->ni_fhdwell = 200; /* XXX */ - ni->ni_fhindex = 1; - } ieee80211_new_state(ic, IEEE80211_S_RUN, -1); } #endif /* IEEE80211_STA_ONLY */ diff --git a/sys/net80211/ieee80211_node.h b/sys/net80211/ieee80211_node.h index a60079601ef..65e2f1ed022 100644 --- a/sys/net80211/ieee80211_node.h +++ b/sys/net80211/ieee80211_node.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_node.h,v 1.31 2008/08/12 18:22:41 damien Exp $ */ +/* $OpenBSD: ieee80211_node.h,v 1.32 2008/08/29 12:14:53 damien Exp $ */ /* $NetBSD: ieee80211_node.h,v 1.9 2004/04/30 22:57:32 dyoung Exp $ */ /*- @@ -127,8 +127,6 @@ struct ieee80211_node { struct ieee80211_rateset ni_rates; /* negotiated rate set */ u_int8_t *ni_country; /* country information XXX */ struct ieee80211_channel *ni_chan; - u_int16_t ni_fhdwell; /* FH only */ - u_int8_t ni_fhindex; /* FH only */ u_int8_t ni_erp; /* 11g only */ #ifdef notyet diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index f3c1b4e63d0..cb4181759c5 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_output.c,v 1.72 2008/08/27 09:05:04 damien Exp $ */ +/* $OpenBSD: ieee80211_output.c,v 1.73 2008/08/29 12:14:53 damien Exp $ */ /* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */ /*- @@ -272,17 +272,10 @@ ieee80211_mgmt_output(struct ifnet *ifp, struct ieee80211_node *ni, * 11A 15 1023 * 11B 31 1023 * 11G 15* 1023 (*) aCWmin(1) - * FH 15 1023 * Turbo A/G 7 1023 (Atheros proprietary mode) */ static const struct ieee80211_edca_ac_params ieee80211_edca_table[IEEE80211_MODE_MAX][EDCA_NUM_AC] = { - [IEEE80211_MODE_FH] = { - [EDCA_AC_BK] = { 4, 10, 7, 0 }, - [EDCA_AC_BE] = { 4, 10, 3, 0 }, - [EDCA_AC_VI] = { 3, 4, 2, 0 }, - [EDCA_AC_VO] = { 2, 3, 2, 0 } - }, [IEEE80211_MODE_11B] = { [EDCA_AC_BK] = { 5, 10, 7, 0 }, [EDCA_AC_BE] = { 5, 10, 3, 0 }, @@ -312,12 +305,6 @@ static const struct ieee80211_edca_ac_params #ifndef IEEE80211_STA_ONLY static const struct ieee80211_edca_ac_params ieee80211_qap_edca_table[IEEE80211_MODE_MAX][EDCA_NUM_AC] = { - [IEEE80211_MODE_FH] = { - [EDCA_AC_BK] = { 4, 10, 7, 0 }, - [EDCA_AC_BE] = { 4, 6, 3, 0 }, - [EDCA_AC_VI] = { 3, 4, 1, 0 }, - [EDCA_AC_VO] = { 2, 3, 1, 0 } - }, [IEEE80211_MODE_11B] = { [EDCA_AC_BK] = { 5, 10, 7, 0 }, [EDCA_AC_BE] = { 5, 7, 3, 0 }, @@ -690,24 +677,6 @@ ieee80211_add_rates(u_int8_t *frm, const struct ieee80211_rateset *rs) } #ifndef IEEE80211_STA_ONLY -/* - * Add a FH Parameter Set element to a frame (see 7.3.2.3). - */ -u_int8_t * -ieee80211_add_fh_params(u_int8_t *frm, struct ieee80211com *ic, - const struct ieee80211_node *ni) -{ - u_int chan = ieee80211_chan2ieee(ic, ni->ni_chan); - - *frm++ = IEEE80211_ELEMID_FHPARMS; - *frm++ = 5; - LE_WRITE_2(frm, ni->ni_fhdwell); frm += 2; - *frm++ = IEEE80211_FH_CHANSET(chan); - *frm++ = IEEE80211_FH_CHANPAT(chan); - *frm++ = ni->ni_fhindex; - return frm; -} - /* * Add a DS Parameter Set element to a frame (see 7.3.2.4). */ @@ -1068,7 +1037,6 @@ ieee80211_get_probe_req(struct ieee80211com *ic, struct ieee80211_node *ni) * [2] Capability * [tlv] Service Set Identifier (SSID) * [tlv] Supported rates - * [tlv*] Frequency-Hopping (FH) Parameter Set * [tlv*] DS Parameter Set (802.11g) * [tlv] ERP Information (802.11g) * [tlv] Extended Supported Rates (802.11g) @@ -1086,7 +1054,7 @@ ieee80211_get_probe_resp(struct ieee80211com *ic, struct ieee80211_node *ni) 8 + 2 + 2 + 2 + ni->ni_esslen + 2 + min(rs->rs_nrates, IEEE80211_RATE_SIZE) + - 2 + ((ic->ic_phytype == IEEE80211_T_FH) ? 5 : 1) + + 2 + 1 + ((ic->ic_opmode == IEEE80211_M_IBSS) ? 2 + 2 : 0) + ((ic->ic_curmode == IEEE80211_MODE_11G) ? 2 + 1 : 0) + ((rs->rs_nrates > IEEE80211_RATE_SIZE) ? @@ -1108,10 +1076,7 @@ ieee80211_get_probe_resp(struct ieee80211com *ic, struct ieee80211_node *ni) frm = ieee80211_add_ssid(frm, ic->ic_bss->ni_essid, ic->ic_bss->ni_esslen); frm = ieee80211_add_rates(frm, rs); - if (ic->ic_phytype == IEEE80211_T_FH) - frm = ieee80211_add_fh_params(frm, ic, ni); - else - frm = ieee80211_add_ds_params(frm, ic, ni); + frm = ieee80211_add_ds_params(frm, ic, ni); if (ic->ic_opmode == IEEE80211_M_IBSS) frm = ieee80211_add_ibss_params(frm, ni); if (ic->ic_curmode == IEEE80211_MODE_11G) @@ -1481,7 +1446,6 @@ ieee80211_get_cts_to_self(struct ieee80211com *ic, u_int16_t dur) * [2] Capability * [tlv] Service Set Identifier (SSID) * [tlv] Supported rates - * [tlv*] Frequency-Hopping (FH) Parameter Set * [tlv*] DS Parameter Set (802.11g) * [tlv*] IBSS Parameter Set * [tlv] Traffic Indication Map (TIM) @@ -1502,7 +1466,7 @@ ieee80211_beacon_alloc(struct ieee80211com *ic, struct ieee80211_node *ni) 8 + 2 + 2 + 2 + ((ic->ic_flags & IEEE80211_F_HIDENWID) ? 0 : ni->ni_esslen) + 2 + min(rs->rs_nrates, IEEE80211_RATE_SIZE) + - 2 + ((ic->ic_phytype == IEEE80211_T_FH) ? 5 : 1) + + 2 + 1 + 2 + ((ic->ic_opmode == IEEE80211_M_IBSS) ? 2 : 254) + ((ic->ic_curmode == IEEE80211_MODE_11G) ? 2 + 1 : 0) + ((rs->rs_nrates > IEEE80211_RATE_SIZE) ? @@ -1539,10 +1503,7 @@ ieee80211_beacon_alloc(struct ieee80211com *ic, struct ieee80211_node *ni) else frm = ieee80211_add_ssid(frm, ni->ni_essid, ni->ni_esslen); frm = ieee80211_add_rates(frm, rs); - if (ic->ic_phytype == IEEE80211_T_FH) - frm = ieee80211_add_fh_params(frm, ic, ni); - else - frm = ieee80211_add_ds_params(frm, ic, ni); + frm = ieee80211_add_ds_params(frm, ic, ni); if (ic->ic_opmode == IEEE80211_M_IBSS) frm = ieee80211_add_ibss_params(frm, ni); else diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 4b2991c623f..34d91fbdad7 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_proto.c,v 1.34 2008/08/27 09:05:04 damien Exp $ */ +/* $OpenBSD: ieee80211_proto.c,v 1.35 2008/08/29 12:14:53 damien Exp $ */ /* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */ /*- @@ -85,7 +85,6 @@ const char * const ieee80211_phymode_name[] = { "11a", /* IEEE80211_MODE_11A */ "11b", /* IEEE80211_MODE_11B */ "11g", /* IEEE80211_MODE_11G */ - "fh", /* IEEE80211_MODE_FH */ "turbo", /* IEEE80211_MODE_TURBO */ }; diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h index 0ffce26fbad..568a76350b2 100644 --- a/sys/net80211/ieee80211_var.h +++ b/sys/net80211/ieee80211_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_var.h,v 1.49 2008/08/29 08:40:53 damien Exp $ */ +/* $OpenBSD: ieee80211_var.h,v 1.50 2008/08/29 12:14:53 damien Exp $ */ /* $NetBSD: ieee80211_var.h,v 1.7 2004/05/06 03:07:10 dyoung Exp $ */ /*- @@ -55,7 +55,6 @@ enum ieee80211_phytype { IEEE80211_T_DS, /* direct sequence spread spectrum */ - IEEE80211_T_FH, /* frequency hopping */ IEEE80211_T_OFDM, /* frequency division multiplexing */ IEEE80211_T_TURBO, /* high rate OFDM, aka turbo mode */ IEEE80211_T_XR /* extended range mode */ @@ -68,8 +67,7 @@ enum ieee80211_phymode { IEEE80211_MODE_11A = 1, /* 5GHz, OFDM */ IEEE80211_MODE_11B = 2, /* 2GHz, CCK */ IEEE80211_MODE_11G = 3, /* 2GHz, OFDM */ - IEEE80211_MODE_FH = 4, /* 2GHz, GFSK */ - IEEE80211_MODE_TURBO = 5 /* 5GHz, OFDM, 2x clock */ + IEEE80211_MODE_TURBO = 4 /* 5GHz, OFDM, 2x clock */ }; #define IEEE80211_MODE_MAX (IEEE80211_MODE_TURBO+1) @@ -110,14 +108,11 @@ struct ieee80211_channel { #define IEEE80211_CHAN_5GHZ 0x0100 /* 5 GHz spectrum channel */ #define IEEE80211_CHAN_PASSIVE 0x0200 /* Only passive scan allowed */ #define IEEE80211_CHAN_DYN 0x0400 /* Dynamic CCK-OFDM channel */ -#define IEEE80211_CHAN_GFSK 0x0800 /* GFSK channel (FHSS PHY) */ #define IEEE80211_CHAN_XR 0x1000 /* Extended range OFDM channel */ /* * Useful combinations of channel characteristics. */ -#define IEEE80211_CHAN_FHSS \ - (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_GFSK) #define IEEE80211_CHAN_A \ (IEEE80211_CHAN_5GHZ | IEEE80211_CHAN_OFDM) #define IEEE80211_CHAN_B \ @@ -131,8 +126,6 @@ struct ieee80211_channel { #define IEEE80211_CHAN_TG \ (IEEE80211_CHAN_2GHZ | IEEE80211_CHAN_OFDM | IEEE80211_CHAN_TURBO) -#define IEEE80211_IS_CHAN_FHSS(_c) \ - (((_c)->ic_flags & IEEE80211_CHAN_FHSS) == IEEE80211_CHAN_FHSS) #define IEEE80211_IS_CHAN_A(_c) \ (((_c)->ic_flags & IEEE80211_CHAN_A) == IEEE80211_CHAN_A) #define IEEE80211_IS_CHAN_B(_c) \ @@ -154,17 +147,9 @@ struct ieee80211_channel { (((_c)->ic_flags & IEEE80211_CHAN_OFDM) != 0) #define IEEE80211_IS_CHAN_CCK(_c) \ (((_c)->ic_flags & IEEE80211_CHAN_CCK) != 0) -#define IEEE80211_IS_CHAN_GFSK(_c) \ - (((_c)->ic_flags & IEEE80211_CHAN_GFSK) != 0) #define IEEE80211_IS_CHAN_XR(_c) \ (((_c)->ic_flags & IEEE80211_CHAN_XR) != 0) -/* ni_chan encoding for FH phy */ -#define IEEE80211_FH_CHANMOD 80 -#define IEEE80211_FH_CHAN(set,pat) (((set)-1)*IEEE80211_FH_CHANMOD+(pat)) -#define IEEE80211_FH_CHANSET(chan) ((chan)/IEEE80211_FH_CHANMOD+1) -#define IEEE80211_FH_CHANPAT(chan) ((chan)%IEEE80211_FH_CHANMOD) - /* * EDCA AC parameters. */