]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/drivers/driver_nl80211.c
nl80211: Add TEST_FAIL() to nl80211_set_mac_addr()
[thirdparty/hostap.git] / src / drivers / driver_nl80211.c
index b4135cc542f65ecc70974465290c8d9a1b2c49a9..12a417b429ed2c14799b055cd01a4d8e9272f766 100644 (file)
@@ -8304,6 +8304,9 @@ static int nl80211_set_mac_addr(void *priv, const u8 *addr)
        struct wpa_driver_nl80211_data *drv = bss->drv;
        int new_addr = addr != NULL;
 
+       if (TEST_FAIL())
+               return -1;
+
        if (!addr)
                addr = drv->perm_addr;