Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268291
b: refs/heads/master
c: c13b6f2
h: refs/heads/master
i:
  268289: 355485a
  268287: f967bda
v: v3
  • Loading branch information
Ali Bahar authored and Greg Kroah-Hartman committed Sep 7, 2011
1 parent 47d41a9 commit 4b8af52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: 6c19d86b9bd03d32d727d0b1d56a0716dfe6eb83
refs/heads/master: c13b6f24986de17b29a56be7b6b851d565f455fa
11 changes: 3 additions & 8 deletions trunk/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,6 @@ static inline char *translate_scan(struct _adapter *padapter,
struct iw_event iwe;
struct ieee80211_ht_cap *pht_capie;
char *current_val;
u8 *buf = (u8 *)_malloc(pnetwork->network.IELength * 2);
u8 *wpa_ie = (u8 *)_malloc(255);
u8 *rsn_ie = (u8 *)_malloc(255);
u8 *wps_ie = (u8 *)_malloc(MAX_WPS_IE_LEN);
s8 *p;
u32 i = 0, ht_ielen = 0;
u16 cap, ht_cap = false, mcs_rate;
Expand Down Expand Up @@ -289,6 +285,8 @@ static inline char *translate_scan(struct _adapter *padapter,
start = current_val;
/* parsing WPA/WPA2 IE */
{
u8 buf[MAX_WPA_IE_LEN];
u8 wpa_ie[255], rsn_ie[255];
u16 wpa_len = 0, rsn_len = 0;
int n;
sint out_len = 0;
Expand Down Expand Up @@ -339,6 +337,7 @@ static inline char *translate_scan(struct _adapter *padapter,
}

{ /* parsing WPS IE */
u8 wps_ie[512];
uint wps_ielen;

if (r8712_get_wps_ie(pnetwork->network.IEs,
Expand All @@ -363,10 +362,6 @@ static inline char *translate_scan(struct _adapter *padapter,
iwe.u.qual.noise = 0; /* noise level */
start = iwe_stream_add_event(info, start, stop, &iwe, IW_EV_QUAL_LEN);
/* how to translate rssi to ?% */
kfree(buf);
kfree(wpa_ie);
kfree(rsn_ie);
kfree(wps_ie);
return start;
}

Expand Down

0 comments on commit 4b8af52

Please sign in to comment.