]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Staging: rt2870sta interface names
authorMike Galbraith <efault@gmx.de>
Fri, 31 Jul 2009 05:52:58 +0000 (07:52 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:06 +0000 (12:02 -0700)
The rest of the known universe prefers wlanN for wireless interface names, to
the point that some distro configuration tools, such as opensuse's Yast, don't
even allow the user to enter a name, and simply pre-select "wlan".

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2860/rt_linux.c
drivers/staging/rt2860/rt_main_dev.c
drivers/staging/rt2860/rt_profile.c

index 80176b20db07f99bf22052e6d51ede2629ae5ad0..7e4c2e41bc8d93856c6d9e96197732d95b412caa 100644 (file)
@@ -776,7 +776,7 @@ VOID RTMPSendWirelessEvent(
                if (pAddr)
                        pBufPtr += sprintf(pBufPtr, "(RT2860) STA(%02x:%02x:%02x:%02x:%02x:%02x) ", PRINT_MAC(pAddr));
                else if (BssIdx < MAX_MBSSID_NUM)
-                       pBufPtr += sprintf(pBufPtr, "(RT2860) BSS(ra%d) ", BssIdx);
+                       pBufPtr += sprintf(pBufPtr, "(RT2860) BSS(wlan%d) ", BssIdx);
                else
                        pBufPtr += sprintf(pBufPtr, "(RT2860) ");
 
index 8fd1aafc4592d04318fd1266d21df7258127c03b..495d5db0970ccbaeb12f68d0490247a19db3557c 100644 (file)
@@ -710,7 +710,7 @@ static NDIS_STATUS rt_ieee80211_if_setup(struct net_device *dev, PRTMP_ADAPTER p
        // find available device name
        for (i = 0; i < 8; i++)
        {
-               sprintf(slot_name, "ra%d", i);
+               sprintf(slot_name, "wlan%d", i);
 
                device = dev_get_by_name(dev_net(dev), slot_name);
                if (device != NULL)
@@ -727,7 +727,7 @@ static NDIS_STATUS rt_ieee80211_if_setup(struct net_device *dev, PRTMP_ADAPTER p
        }
        else
        {
-               sprintf(dev->name, "ra%d", i);
+               sprintf(dev->name, "wlan%d", i);
                Status = NDIS_STATUS_SUCCESS;
        }
 
index d92b14328d40ef8ab322dcd54c86e8802e8f4e70..8c581c32dce1271ce79098b07af153f9cacbdb93 100644 (file)
@@ -710,7 +710,7 @@ static int rtmp_parse_key_buffer_from_file(IN  PRTMP_ADAPTER pAd,IN  char *buffe
                                CipherAlg = CIPHER_WEP128;
                        pAd->SharedKey[i][idx].CipherAlg = CipherAlg;
 
-                       DBGPRINT(RT_DEBUG_TRACE, ("I/F(ra%d) Key%dStr=%s and type=%s\n", i, idx+1, keybuff, (KeyType == 0) ? "Hex":"Ascii"));
+                       DBGPRINT(RT_DEBUG_TRACE, ("I/F(wlan%d) Key%dStr=%s and type=%s\n", i, idx+1, keybuff, (KeyType == 0) ? "Hex":"Ascii"));
                        return 1;
                }
                else
@@ -731,12 +731,12 @@ static int rtmp_parse_key_buffer_from_file(IN  PRTMP_ADAPTER pAd,IN  char *buffe
                                CipherAlg = CIPHER_WEP128;
                        pAd->SharedKey[i][idx].CipherAlg = CipherAlg;
 
-                       DBGPRINT(RT_DEBUG_TRACE, ("I/F(ra%d) Key%dStr=%s and type=%s\n", i, idx+1, keybuff, (KeyType == 0) ? "Hex":"Ascii"));
+                       DBGPRINT(RT_DEBUG_TRACE, ("I/F(wlan%d) Key%dStr=%s and type=%s\n", i, idx+1, keybuff, (KeyType == 0) ? "Hex":"Ascii"));
                        return 1;
                }
                else
                {//Invalid key length
-                       DBGPRINT(RT_DEBUG_ERROR, ("I/F(ra%d) Key%dStr is Invalid key length! KeyLen = %ld!\n", i, idx+1, KeyLen));
+                       DBGPRINT(RT_DEBUG_ERROR, ("I/F(wlan%d) Key%dStr is Invalid key length! KeyLen = %ld!\n", i, idx+1, KeyLen));
                        return 0;
                }
        }