ath9k: Remove 'other' VIF count
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Wed, 14 Mar 2012 09:10:38 +0000 (14:40 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Mar 2012 17:40:27 +0000 (13:40 -0400)
It is not needed and will not be used anyway since
unsupported interfaces are not allowed to be created.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/debug.c
drivers/net/wireless/ath/ath9k/main.c

index fa5eb3080e244b7156b787b746e22fad6157d63b..419bf4e4dc73531e67248e000bb2e67ff1b01b59 100644 (file)
@@ -617,7 +617,6 @@ struct ath9k_vif_iter_data {
        int nstations; /* number of station vifs */
        int nwds;      /* number of WDS vifs */
        int nadhocs;   /* number of adhoc vifs */
-       int nothers;   /* number of vifs not specified above. */
 };
 
 struct ath_softc {
index c2edf688da49497159a8962bcbb46a723e4e80c9..35d1c8e91d1c161140ec1513b5f0eaff0114f474 100644 (file)
@@ -738,9 +738,9 @@ static ssize_t read_file_misc(struct file *file, char __user *user_buf,
 
        len += snprintf(buf + len, sizeof(buf) - len,
                        "VIF-COUNTS: AP: %i STA: %i MESH: %i WDS: %i"
-                       " ADHOC: %i OTHER: %i TOTAL: %hi BEACON-VIF: %hi\n",
+                       " ADHOC: %i TOTAL: %hi BEACON-VIF: %hi\n",
                        iter_data.naps, iter_data.nstations, iter_data.nmeshes,
-                       iter_data.nwds, iter_data.nadhocs, iter_data.nothers,
+                       iter_data.nwds, iter_data.nadhocs,
                        sc->nvifs, sc->nbcnvifs);
 
        if (len > sizeof(buf))
index fe1d7961eefdc4d8bb6d395a461eace91ae38d9f..77c61bcd34ea7e148d065cc5ea0b00f5c286be1e 100644 (file)
@@ -1272,7 +1272,6 @@ static void ath9k_vif_iter(void *data, u8 *mac, struct ieee80211_vif *vif)
                iter_data->nwds++;
                break;
        default:
-               iter_data->nothers++;
                break;
        }
 }