Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304442
b: refs/heads/master
c: 19f798a
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Wilczynski authored and Greg Kroah-Hartman committed Apr 24, 2012
1 parent bbff1f9 commit b3a8bf5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89f5e7102a56bcd1b5b0691085d0839e92b3ca04
refs/heads/master: 19f798ad009a1c9aebe6c248173e4a7ec694c680
10 changes: 9 additions & 1 deletion trunk/drivers/staging/wlan-ng/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ int prism2_scan(struct wiphy *wiphy, struct net_device *dev,
wlandevice_t *wlandev = dev->ml_priv;
struct p80211msg_dot11req_scan msg1;
struct p80211msg_dot11req_scan_results msg2;
struct cfg80211_bss *bss;
int result;
int err = 0;
int numbss = 0;
Expand Down Expand Up @@ -401,7 +402,7 @@ int prism2_scan(struct wiphy *wiphy, struct net_device *dev,
ie_buf[1] = msg2.ssid.data.len;
ie_len = ie_buf[1] + 2;
memcpy(&ie_buf[2], &(msg2.ssid.data.data), msg2.ssid.data.len);
cfg80211_inform_bss(wiphy,
bss = cfg80211_inform_bss(wiphy,
ieee80211_get_channel(wiphy, ieee80211_dsss_chan_to_freq(msg2.dschannel.data)),
(const u8 *) &(msg2.bssid.data.data),
msg2.timestamp.data, msg2.capinfo.data,
Expand All @@ -411,6 +412,13 @@ int prism2_scan(struct wiphy *wiphy, struct net_device *dev,
(msg2.signal.data - 65536) * 100, /* Conversion to signed type */
GFP_KERNEL
);

if (!bss) {
err = -ENOMEM;
goto exit;
}

cfg80211_put_bss(bss);
}

if (result)
Expand Down

0 comments on commit b3a8bf5

Please sign in to comment.