Making it compile on 2.2.x
This commit is contained in:
parent
6993d6a14b
commit
51ed8a54bc
|
@ -258,25 +258,8 @@ int prism2wext_support_ioctl(struct net_device *dev, struct iwreq *iwr, int cmd)
|
|||
|
||||
break;
|
||||
|
||||
case SIOCSIWMODE: /* set operation mode */
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
|
||||
case SIOCGIWMODE: /* get operation mode */
|
||||
err = priv->ap ? 0 : hfa384x_drvr_getconfig(hw, HFA384x_RID_CNFPORTTYPE, reqbuf, HFA384x_RID_CNFPORTTYPE_LEN);
|
||||
|
||||
/* Access Point, infrastructure or ADHOC? */
|
||||
iwr->u.mode = priv->ap ? IW_MODE_MASTER :
|
||||
(*reqbuf ? IW_MODE_INFRA : IW_MODE_ADHOC);
|
||||
|
||||
break;
|
||||
|
||||
case SIOCSIWSENS:
|
||||
case SIOCGIWSENS:
|
||||
case SIOCSIWRANGE:
|
||||
case SIOCSIWPRIV:
|
||||
case SIOCSIWSPY:
|
||||
case SIOCGIWSPY:
|
||||
case SIOCSIWAP: /* set access point MAC addresses (BSSID) */
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
|
@ -291,7 +274,20 @@ int prism2wext_support_ioctl(struct net_device *dev, struct iwreq *iwr, int cmd)
|
|||
|
||||
break;
|
||||
|
||||
case SIOCGIWAPLIST:
|
||||
#if WIRELESS_EXT > 8
|
||||
case SIOCSIWMODE: /* set operation mode */
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
|
||||
case SIOCGIWMODE: /* get operation mode */
|
||||
err = priv->ap ? 0 : hfa384x_drvr_getconfig(hw, HFA384x_RID_CNFPORTTYPE, reqbuf, HFA384x_RID_CNFPORTTYPE_LEN);
|
||||
|
||||
/* Access Point, infrastructure or ADHOC? */
|
||||
iwr->u.mode = priv->ap ? IW_MODE_MASTER :
|
||||
(*reqbuf ? IW_MODE_INFRA : IW_MODE_ADHOC);
|
||||
|
||||
break;
|
||||
|
||||
case SIOCSIWESSID: /* set ESSID (network name) */
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
|
@ -304,15 +300,6 @@ int prism2wext_support_ioctl(struct net_device *dev, struct iwreq *iwr, int cmd)
|
|||
}
|
||||
|
||||
break;
|
||||
|
||||
case SIOCSIWNICKN: /* set node name/nickname */
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
|
||||
case SIOCGIWNICKN: /* get node name/nickname */
|
||||
err = prism2wext_get_string(hw, &(iwr->u.data), HFA384x_RID_CNFOWNNAME, HFA384x_RID_CNFOWNNAME_LEN);
|
||||
break;
|
||||
|
||||
case SIOCSIWRATE: /* set default bit rate (bps) */
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
|
@ -321,24 +308,27 @@ int prism2wext_support_ioctl(struct net_device *dev, struct iwreq *iwr, int cmd)
|
|||
err = prism2wext_getrate (hw, &iwr->u.bitrate);
|
||||
break;
|
||||
|
||||
case SIOCGIWAPLIST:
|
||||
case SIOCSIWRTS:
|
||||
case SIOCGIWRTS:
|
||||
case SIOCSIWFRAG:
|
||||
case SIOCGIWFRAG:
|
||||
case SIOCSIWTXPOW:
|
||||
case SIOCGIWTXPOW:
|
||||
case SIOCSIWRETRY:
|
||||
case SIOCGIWRETRY:
|
||||
case SIOCGIWFRAG:
|
||||
case SIOCSIWSENS:
|
||||
case SIOCGIWSENS:
|
||||
case SIOCSIWNICKN: /* set node name/nickname */
|
||||
case SIOCSIWENCODE: /* set encoding token & mode */
|
||||
case SIOCGIWENCODE: /* get encoding token & mode */
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
|
||||
case SIOCSIWSPY:
|
||||
case SIOCGIWSPY:
|
||||
case SIOCSIWPOWER:
|
||||
case SIOCGIWPOWER:
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
|
||||
case SIOCGIWNICKN: /* get node name/nickname */
|
||||
err = prism2wext_get_string(hw, &(iwr->u.data), HFA384x_RID_CNFOWNNAME, HFA384x_RID_CNFOWNNAME_LEN);
|
||||
break;
|
||||
|
||||
case SIOCGIWRANGE:
|
||||
/* Static meta data about the other ioctls */
|
||||
if(iwr->u.data.pointer != NULL) {
|
||||
|
@ -370,7 +360,6 @@ int prism2wext_support_ioctl(struct net_device *dev, struct iwreq *iwr, int cmd)
|
|||
err = -EFAULT;
|
||||
}
|
||||
break;
|
||||
|
||||
case SIOCGIWPRIV: /* get private ioctls for iwpriv. This is
|
||||
not necessary and not implemented but
|
||||
i'll return a useless dummy for
|
||||
|
@ -391,6 +380,20 @@ int prism2wext_support_ioctl(struct net_device *dev, struct iwreq *iwr, int cmd)
|
|||
}
|
||||
break;
|
||||
|
||||
#endif /* WIRELESS_EXT > 8 */
|
||||
#if WIRELESS_EXT > 9
|
||||
case SIOCSIWTXPOW:
|
||||
case SIOCGIWTXPOW:
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
#endif /* WIRELESS_EXT > 9 */
|
||||
#if WIRELESS_EXT > 10
|
||||
case SIOCSIWRETRY:
|
||||
case SIOCGIWRETRY:
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
#endif /* WIRELESS_EXT > 10 */
|
||||
|
||||
default:
|
||||
err = (-EOPNOTSUPP);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue