Remove unused set_retry() driver op
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 21 Apr 2009 15:01:43 +0000 (18:01 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 21 Apr 2009 15:01:43 +0000 (18:01 +0300)
hostapd/driver_i.h
src/drivers/driver.h
src/drivers/driver_ndis.c
src/drivers/driver_nl80211.c

index a5e9d40..20ac9a1 100644 (file)
@@ -281,15 +281,6 @@ hostapd_set_frag(struct hostapd_data *hapd, int frag)
 }
 
 static inline int
-hostapd_set_retry(struct hostapd_data *hapd, int short_retry, int long_retry)
-{
-       if (hapd->driver == NULL || hapd->driver->set_retry == NULL)
-               return 0;
-       return hapd->driver->set_retry(hapd->drv_priv, short_retry,
-                                      long_retry);
-}
-
-static inline int
 hostapd_sta_set_flags(struct hostapd_data *hapd, u8 *addr,
                      int total_flags, int flags_or, int flags_and)
 {
index efe66e6..8339127 100644 (file)
@@ -1265,7 +1265,6 @@ struct wpa_driver_ops {
        int (*set_freq)(void *priv, struct hostapd_freq_params *freq);
        int (*set_rts)(void *priv, int rts);
        int (*set_frag)(void *priv, int frag);
-       int (*set_retry)(void *priv, int short_retry, int long_retry);
 
        int (*sta_set_flags)(void *priv, const u8 *addr,
                             int total_flags, int flags_or, int flags_and);
index b176229..fd0e97e 100644 (file)
@@ -3241,7 +3241,6 @@ const struct wpa_driver_ops wpa_driver_ndis_ops = {
        NULL /* set_freq */,
        NULL /* set_rts */,
        NULL /* set_frag */,
-       NULL /* set_retry */,
        NULL /* sta_set_flags */,
        NULL /* set_rate_sets */,
        NULL /* set_ieee80211d */,
index 4c5ae59..2f87d43 100644 (file)
@@ -3437,36 +3437,6 @@ static int i802_set_frag(void *priv, int frag)
 }
 
 
-static int i802_set_retry(void *priv, int short_retry, int long_retry)
-{
-#ifdef NO_WEXT
-       return -1;
-#else /* NO_WEXT */
-       struct wpa_driver_nl80211_data *drv = priv;
-       struct iwreq iwr;
-
-       memset(&iwr, 0, sizeof(iwr));
-       os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ);
-
-       iwr.u.retry.value = short_retry;
-       iwr.u.retry.flags = IW_RETRY_LIMIT | IW_RETRY_MIN;
-       if (ioctl(drv->ioctl_sock, SIOCSIWRETRY, &iwr) < 0) {
-               perror("ioctl[SIOCSIWRETRY(short)]");
-               return -1;
-       }
-
-       iwr.u.retry.value = long_retry;
-       iwr.u.retry.flags = IW_RETRY_LIMIT | IW_RETRY_MAX;
-       if (ioctl(drv->ioctl_sock, SIOCSIWRETRY, &iwr) < 0) {
-               perror("ioctl[SIOCSIWRETRY(long)]");
-               return -1;
-       }
-
-       return 0;
-#endif /* NO_WEXT */
-}
-
-
 static int i802_flush(void *priv)
 {
        struct wpa_driver_nl80211_data *drv = priv;
@@ -3987,7 +3957,6 @@ const struct wpa_driver_ops wpa_driver_nl80211_ops = {
        .set_freq = i802_set_freq,
        .set_rts = i802_set_rts,
        .set_frag = i802_set_frag,
-       .set_retry = i802_set_retry,
        .set_rate_sets = i802_set_rate_sets,
        .hapd_set_beacon = i802_set_beacon,
        .set_cts_protect = i802_set_cts_protect,