]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Replace "dummy" with "stub" in NDIS driver interface
authorArowa Suliman <arowa@chromium.org>
Sun, 19 Sep 2021 06:24:29 +0000 (23:24 -0700)
committerJouni Malinen <j@w1.fi>
Mon, 11 Oct 2021 17:56:56 +0000 (20:56 +0300)
Replace the word "dummy" with the inclusive word "stub".

Signed-off-by: Arowa Suliman <arowa@chromium.org>
src/drivers/driver_ndis.c

index b5fff483e78ba786fb1692ff72674b30b13c5f9d..b32e009679dcc0b76676e5e86f33cadd6f2f9a33 100644 (file)
@@ -1111,20 +1111,20 @@ wpa_driver_ndis_associate(void *priv,
                auth_mode = Ndis802_11AuthModeOpen;
                priv_mode = Ndis802_11PrivFilterAcceptAll;
                if (params->wps == WPS_MODE_PRIVACY) {
-                       u8 dummy_key[5] = { 0x11, 0x22, 0x33, 0x44, 0x55 };
+                       u8 stub_key[5] = { 0x11, 0x22, 0x33, 0x44, 0x55 };
                        /*
                         * Some NDIS drivers refuse to associate in open mode
                         * configuration due to Privacy field mismatch, so use
                         * a workaround to make the configuration look like
                         * matching one for WPS provisioning.
                         */
-                       wpa_printf(MSG_DEBUG, "NDIS: Set dummy WEP key as a "
+                       wpa_printf(MSG_DEBUG, "NDIS: Set stub WEP key as a "
                                   "workaround to allow driver to associate "
                                   "for WPS");
                        wpa_driver_ndis_set_key(drv->ifname, drv, WPA_ALG_WEP,
                                                bcast, 0, 1,
-                                               NULL, 0, dummy_key,
-                                               sizeof(dummy_key));
+                                               NULL, 0, stub_key,
+                                               sizeof(stub_key));
                }
 #endif /* CONFIG_WPS */
        } else {
@@ -2233,10 +2233,10 @@ static int wpa_driver_ndis_get_names(struct wpa_driver_ndis_data *drv)
 
        /*
         * Windows 98 with Packet.dll 3.0 alpha3 does not include adapter
-        * descriptions. Fill in dummy descriptors to work around this.
+        * descriptions. Fill in stub descriptors to work around this.
         */
        while (num_desc < num_name)
-               desc[num_desc++] = "dummy description";
+               desc[num_desc++] = "stub description";
 
        if (num_name != num_desc) {
                wpa_printf(MSG_DEBUG, "NDIS: mismatch in adapter name and "
@@ -3164,10 +3164,10 @@ wpa_driver_ndis_get_interfaces(void *global_priv)
 
        /*
         * Windows 98 with Packet.dll 3.0 alpha3 does not include adapter
-        * descriptions. Fill in dummy descriptors to work around this.
+        * descriptions. Fill in stub descriptors to work around this.
         */
        while (num_desc < num_name)
-               desc[num_desc++] = "dummy description";
+               desc[num_desc++] = "stub description";
 
        if (num_name != num_desc) {
                wpa_printf(MSG_DEBUG, "NDIS: mismatch in adapter name and "