Rename mac80211 routines and fields to cfg80211
authorSamuel Ortiz <sameo@linux.intel.com>
Tue, 2 Feb 2010 15:27:50 +0000 (16:27 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 2 Feb 2010 16:37:13 +0000 (08:37 -0800)
The mac80211 boolean and inet routines names are a bit misleading since
what we really want to check is if the underlying wifi driver is cfg80211
compliant. The mac80211 drivers form a subset of that, as some full MAC
cards also are fully cfg80211 compliant.

include/inet.h
plugins/supplicant.c
src/inet.c

index 0d88b53..2b9a7df 100644 (file)
@@ -40,7 +40,7 @@ int connman_inet_ifup(int index);
 int connman_inet_ifdown(int index);
 
 struct connman_device *connman_inet_create_device(int index);
-connman_bool_t connman_inet_is_mac80211(int index);
+connman_bool_t connman_inet_is_cfg80211(int index);
 
 int connman_inet_set_address(int index, struct connman_ipaddress *ipaddress);
 int connman_inet_clear_address(int index);
index ed176ed..535f1d3 100644 (file)
@@ -177,7 +177,7 @@ struct supplicant_result {
 struct supplicant_task {
        int ifindex;
        char *ifname;
-       gboolean mac80211;
+       gboolean cfg80211;
        struct connman_device *device;
        struct connman_network *network;
        struct connman_network *pending_network;
@@ -988,7 +988,7 @@ static int set_network(struct supplicant_task *task,
                const char *auth_alg = "OPEN";
                const char *key_index = "0";
 
-               if (task->mac80211 == TRUE)
+               if (task->cfg80211 == TRUE)
                        auth_alg = "OPEN SHARED";
 
                connman_dbus_dict_append_basic(&dict, "auth_alg",
@@ -2004,8 +2004,8 @@ int supplicant_start(struct connman_device *device)
                goto failed;
        }
 
-       task->mac80211 = connman_inet_is_mac80211(task->ifindex);
-       if (task->mac80211 == FALSE)
+       task->cfg80211 = connman_inet_is_cfg80211(task->ifindex);
+       if (task->cfg80211 == FALSE)
                connman_warn("Enabling quirks for unsupported driver");
 
        task->range = g_try_malloc0(sizeof(struct iw_range));
index ee84f2b..5838008 100644 (file)
@@ -318,7 +318,7 @@ static char *index2ident(int index, const char *prefix)
        return str;
 }
 
-connman_bool_t connman_inet_is_mac80211(int index)
+connman_bool_t connman_inet_is_cfg80211(int index)
 {
        connman_bool_t result = FALSE;
        char phy80211_path[PATH_MAX];