]> err.no Git - linux-2.6/commitdiff
[PATCH] ieee80211: Capability field is called ESS, not BSS
authorJouni Malinen <jkmaline@cc.hut.fi>
Mon, 15 Aug 2005 03:59:59 +0000 (20:59 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 15 Aug 2005 04:28:17 +0000 (00:28 -0400)
IEEE 802.11 has a capability field flag called ESS, but ieee80211 had
renamed this to BSS for some reason. hostap has been using
WLAN_CAPABILITY_ESS and since that matches with the standard, lets use
it as the name for this define. Add WLAN_CAPABILITY_BSS as a backwards
compatibility name for the same bit since ieee80211 and ipw2200 are
using this and there are versions outside kernel tree that expect to
find this define name.

Signed-off-by: Jouni Malinen <jkmaline@cc.hut.fi>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/wireless/ipw2200.c
include/net/ieee80211.h

index 5df203155aa336c799dede42336bfd0ade85813e..6211438058deb571a6d03c935582b8805240ff9a 100644 (file)
@@ -4190,7 +4190,7 @@ static int ipw_best_network(
        /* Verify that this network's capability is compatible with the
         * current mode (AdHoc or Infrastructure) */
        if ((priv->ieee->iw_mode == IW_MODE_INFRA &&
-            !(network->capability & WLAN_CAPABILITY_BSS)) ||
+            !(network->capability & WLAN_CAPABILITY_ESS)) ||
            (priv->ieee->iw_mode == IW_MODE_ADHOC &&
             !(network->capability & WLAN_CAPABILITY_IBSS))) {
                IPW_DEBUG_ASSOC("Network '%s (" MAC_FMT ")' excluded due to "
index 11524c9b659a1916490f578319f255bb1a88eeed..6e6e94aec3037aea50e015105636eb3896f800b0 100644 (file)
@@ -264,7 +264,8 @@ struct ieee80211_snap_hdr {
 
 #define WLAN_AUTH_CHALLENGE_LEN 128
 
-#define WLAN_CAPABILITY_BSS (1<<0)
+#define WLAN_CAPABILITY_ESS (1<<0)
+#define WLAN_CAPABILITY_BSS WLAN_CAPABILITY_ESS
 #define WLAN_CAPABILITY_IBSS (1<<1)
 #define WLAN_CAPABILITY_CF_POLLABLE (1<<2)
 #define WLAN_CAPABILITY_CF_POLL_REQUEST (1<<3)