if_ath.c (f6aa038bbe68104016e47b8170ced7e31766d517) if_ath.c (3065b96e25143f3145402173559f273a28afec89)
1/*-
2 * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1021 unchanged lines hidden (view full) ---

1030 *(u_int16_t *)frm = htole16(ni->ni_intval);
1031 frm += 2;
1032 if (ic->ic_opmode == IEEE80211_M_IBSS)
1033 capinfo = IEEE80211_CAPINFO_IBSS;
1034 else
1035 capinfo = IEEE80211_CAPINFO_ESS;
1036 if (ic->ic_flags & IEEE80211_F_WEPON)
1037 capinfo |= IEEE80211_CAPINFO_PRIVACY;
1/*-
2 * Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 1021 unchanged lines hidden (view full) ---

1030 *(u_int16_t *)frm = htole16(ni->ni_intval);
1031 frm += 2;
1032 if (ic->ic_opmode == IEEE80211_M_IBSS)
1033 capinfo = IEEE80211_CAPINFO_IBSS;
1034 else
1035 capinfo = IEEE80211_CAPINFO_ESS;
1036 if (ic->ic_flags & IEEE80211_F_WEPON)
1037 capinfo |= IEEE80211_CAPINFO_PRIVACY;
1038 if (ic->ic_flags & IEEE80211_F_SHPREAMBLE)
1038 if ((ic->ic_flags & IEEE80211_F_SHPREAMBLE) &&
1039 IEEE80211_IS_CHAN_2GHZ(ni->ni_chan))
1039 capinfo |= IEEE80211_CAPINFO_SHORT_PREAMBLE;
1040 if (ic->ic_flags & IEEE80211_F_SHSLOT)
1041 capinfo |= IEEE80211_CAPINFO_SHORT_SLOTTIME;
1042 *(u_int16_t *)frm = htole16(capinfo);
1043 frm += 2;
1044 *frm++ = IEEE80211_ELEMID_SSID;
1045 *frm++ = ni->ni_esslen;
1046 memcpy(frm, ni->ni_essid, ni->ni_esslen);

--- 1621 unchanged lines hidden ---
1040 capinfo |= IEEE80211_CAPINFO_SHORT_PREAMBLE;
1041 if (ic->ic_flags & IEEE80211_F_SHSLOT)
1042 capinfo |= IEEE80211_CAPINFO_SHORT_SLOTTIME;
1043 *(u_int16_t *)frm = htole16(capinfo);
1044 frm += 2;
1045 *frm++ = IEEE80211_ELEMID_SSID;
1046 *frm++ = ni->ni_esslen;
1047 memcpy(frm, ni->ni_essid, ni->ni_esslen);

--- 1621 unchanged lines hidden ---