On Wednesday 02 May 2007 10:50, Larry Finger wrote: > +static int ieee80211_ioctl_giwrate(struct net_device *dev, > + struct iw_request_info *info, > + struct iw_param *rate, char *extra) > +{ > + struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); > + struct sta_info * sta; > + struct ieee80211_sub_if_data * sdata; > + > + sdata = IEEE80211_DEV_TO_SUB_IF(dev); > + sta = sta_info_get(local, sdata->u.sta.bssid); Need to check if the interface is IEEE80211_IF_TYPE_STA or IEEE80211_IF_TYPE_IBSS before you can do this. -Michael Wu
Attachment:
pgpzbcwq9Mlni.pgp
Description: PGP signature