Loading net/mac80211/ieee80211_ioctl.c +19 −18 Original line number Diff line number Diff line Loading @@ -522,12 +522,6 @@ static int ieee80211_ioctl_siwscan(struct net_device *dev, if (!netif_running(dev)) return -ENETDOWN; if (wrqu->data.length == sizeof(struct iw_scan_req) && wrqu->data.flags & IW_SCAN_THIS_ESSID) { req = (struct iw_scan_req *)extra; ssid = req->essid; ssid_len = req->essid_len; } else { switch (sdata->type) { case IEEE80211_IF_TYPE_STA: case IEEE80211_IF_TYPE_IBSS: Loading @@ -545,6 +539,13 @@ static int ieee80211_ioctl_siwscan(struct net_device *dev, default: return -EOPNOTSUPP; } /* if SSID was specified explicitly then use that */ if (wrqu->data.length == sizeof(struct iw_scan_req) && wrqu->data.flags & IW_SCAN_THIS_ESSID) { req = (struct iw_scan_req *)extra; ssid = req->essid; ssid_len = req->essid_len; } return ieee80211_sta_req_scan(dev, ssid, ssid_len); Loading Loading
net/mac80211/ieee80211_ioctl.c +19 −18 Original line number Diff line number Diff line Loading @@ -522,12 +522,6 @@ static int ieee80211_ioctl_siwscan(struct net_device *dev, if (!netif_running(dev)) return -ENETDOWN; if (wrqu->data.length == sizeof(struct iw_scan_req) && wrqu->data.flags & IW_SCAN_THIS_ESSID) { req = (struct iw_scan_req *)extra; ssid = req->essid; ssid_len = req->essid_len; } else { switch (sdata->type) { case IEEE80211_IF_TYPE_STA: case IEEE80211_IF_TYPE_IBSS: Loading @@ -545,6 +539,13 @@ static int ieee80211_ioctl_siwscan(struct net_device *dev, default: return -EOPNOTSUPP; } /* if SSID was specified explicitly then use that */ if (wrqu->data.length == sizeof(struct iw_scan_req) && wrqu->data.flags & IW_SCAN_THIS_ESSID) { req = (struct iw_scan_req *)extra; ssid = req->essid; ssid_len = req->essid_len; } return ieee80211_sta_req_scan(dev, ssid, ssid_len); Loading