Replace "dummy" with "stub" in NDIS driver interface

Replace the word "dummy" with the inclusive word "stub".

Signed-off-by: Arowa Suliman <arowa@chromium.org>
This commit is contained in:
Arowa Suliman 2021-09-18 23:24:29 -07:00 committed by Jouni Malinen
parent c53fa92251
commit 95e140e20f

View file

@ -1111,20 +1111,20 @@ wpa_driver_ndis_associate(void *priv,
auth_mode = Ndis802_11AuthModeOpen; auth_mode = Ndis802_11AuthModeOpen;
priv_mode = Ndis802_11PrivFilterAcceptAll; priv_mode = Ndis802_11PrivFilterAcceptAll;
if (params->wps == WPS_MODE_PRIVACY) { 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 * Some NDIS drivers refuse to associate in open mode
* configuration due to Privacy field mismatch, so use * configuration due to Privacy field mismatch, so use
* a workaround to make the configuration look like * a workaround to make the configuration look like
* matching one for WPS provisioning. * 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 " "workaround to allow driver to associate "
"for WPS"); "for WPS");
wpa_driver_ndis_set_key(drv->ifname, drv, WPA_ALG_WEP, wpa_driver_ndis_set_key(drv->ifname, drv, WPA_ALG_WEP,
bcast, 0, 1, bcast, 0, 1,
NULL, 0, dummy_key, NULL, 0, stub_key,
sizeof(dummy_key)); sizeof(stub_key));
} }
#endif /* CONFIG_WPS */ #endif /* CONFIG_WPS */
} else { } 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 * 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) while (num_desc < num_name)
desc[num_desc++] = "dummy description"; desc[num_desc++] = "stub description";
if (num_name != num_desc) { if (num_name != num_desc) {
wpa_printf(MSG_DEBUG, "NDIS: mismatch in adapter name and " 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 * 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) while (num_desc < num_name)
desc[num_desc++] = "dummy description"; desc[num_desc++] = "stub description";
if (num_name != num_desc) { if (num_name != num_desc) {
wpa_printf(MSG_DEBUG, "NDIS: mismatch in adapter name and " wpa_printf(MSG_DEBUG, "NDIS: mismatch in adapter name and "