+@@ -812,7 +813,7 @@ static int madwifi_set_freq(void *priv,
+ struct iwreq iwr;
+
+ os_memset(&iwr, 0, sizeof(iwr));
+- os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ);
++ os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ);
+ iwr.u.freq.m = freq->channel;
+ iwr.u.freq.e = 0;
+
+@@ -1037,7 +1038,7 @@ madwifi_get_we_version(struct madwifi_dr