Search Linux Wireless

[PATCH] hostapd: don't try setting the generic IE to the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have no mac80211 drivers that generate beacons themselves
and would require this, and we also have no way to support such
drivers currently. Hence, it seems we should remove this to
decrease the confusion. Since the generic hostapd code actually
requires a positive result though we cannot just remove the
implementation. The same information is put into the beacon,
however.

Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

---
 hostapd/driver_devicescape.c |   14 --------------
 1 file changed, 14 deletions(-)

--- hostap.orig/hostapd/driver_devicescape.c	2007-09-26 14:45:22.000000000 +0200
+++ hostap/hostapd/driver_devicescape.c	2007-09-26 14:47:17.000000000 +0200
@@ -695,20 +695,6 @@ static int i802_sta_set_flags(void *priv
 static int i802_set_generic_elem(const char *ifname, void *priv,
 				 const u8 *elem, size_t elem_len)
 {
-	struct i802_driver_data *drv = priv;
-	struct iwreq iwr;
-
-	memset(&iwr, 0, sizeof(iwr));
-
-	os_strlcpy(iwr.ifr_name, drv->hapd->conf->iface, IFNAMSIZ);
-	iwr.u.data.length = elem_len;
-	iwr.u.data.pointer = (void*)elem;
-
-	if (ioctl(drv->ioctl_sock, SIOCSIWGENIE, &iwr) < 0) {
-		perror("Failed to set generic info element");
-		return -1;
-	}
-
 	return 0;
 }
 


-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux