Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268818
b: refs/heads/master
c: 25b2046
h: refs/heads/master
v: v3
  • Loading branch information
David Kilroy authored and Greg Kroah-Hartman committed Oct 17, 2011
1 parent 76ebe73 commit 6c5b7c1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 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: add54e5c8ac3a11b4fabe34fcea6c62d6b22a006
refs/heads/master: 25b20463f30e98c7e939b706ba7696fcfb68d1fd
33 changes: 14 additions & 19 deletions trunk/drivers/staging/wlags49_h2/wl_wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,6 @@
#include <wl_wext.h>
#include <wl_priv.h>



#define IWE_STREAM_ADD_EVENT(info, buf, end, iwe, len) \
iwe_stream_add_event(info, buf, end, iwe, len)
#define IWE_STREAM_ADD_POINT(info, buf, end, iwe, msg) \
iwe_stream_add_point(info, buf, end, iwe, msg)



/*******************************************************************************
* global definitions
******************************************************************************/
Expand Down Expand Up @@ -2681,8 +2672,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
memcpy( iwe.u.ap_addr.sa_data, probe_resp->BSSID, ETH_ALEN);
iwe.len = IW_EV_ADDR_LEN;

buf = IWE_STREAM_ADD_EVENT(info, buf, buf_end, &iwe, IW_EV_ADDR_LEN);

buf = iwe_stream_add_event(info, buf, buf_end,
&iwe, IW_EV_ADDR_LEN);

/* Use the mode to indicate if it's a station or AP */
/* Won't always be an AP if in IBSS mode */
Expand All @@ -2698,8 +2689,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf

iwe.len = IW_EV_UINT_LEN;

buf = IWE_STREAM_ADD_EVENT(info, buf, buf_end, &iwe, IW_EV_UINT_LEN);

buf = iwe_stream_add_event(info, buf, buf_end,
&iwe, IW_EV_UINT_LEN);

/* Any quality information */
memset(&iwe, 0, sizeof(iwe));
Expand All @@ -2711,7 +2702,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
iwe.u.qual.updated = lp->probe_results.scan_complete | IW_QUAL_DBM;
iwe.len = IW_EV_QUAL_LEN;

buf = IWE_STREAM_ADD_EVENT(info, buf, buf_end, &iwe, IW_EV_QUAL_LEN);
buf = iwe_stream_add_event(info, buf, buf_end,
&iwe, IW_EV_QUAL_LEN);


/* ESSID information */
Expand All @@ -2722,7 +2714,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
iwe.u.data.length = probe_resp->rawData[1];
iwe.u.data.flags = 1;

buf = IWE_STREAM_ADD_POINT(info, buf, buf_end, &iwe, &probe_resp->rawData[2]);
buf = iwe_stream_add_point(info, buf, buf_end,
&iwe, &probe_resp->rawData[2]);
}


Expand All @@ -2740,7 +2733,7 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
iwe.u.data.flags |= IW_ENCODE_DISABLED;
}

buf = IWE_STREAM_ADD_POINT(info, buf, buf_end, &iwe, NULL);
buf = iwe_stream_add_point(info, buf, buf_end, &iwe, NULL);


/* Frequency Info */
Expand All @@ -2751,7 +2744,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
iwe.u.freq.m = wl_parse_ds_ie( probe_resp );
iwe.u.freq.e = 0;

buf = IWE_STREAM_ADD_EVENT(info, buf, buf_end, &iwe, IW_EV_FREQ_LEN);
buf = iwe_stream_add_event(info, buf, buf_end,
&iwe, IW_EV_FREQ_LEN);


/* Custom info (Beacon Interval) */
Expand All @@ -2762,7 +2756,7 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
sprintf( msg, "beacon_interval=%d", probe_resp->beaconInterval );
iwe.u.data.length = strlen( msg );

buf = IWE_STREAM_ADD_POINT(info, buf, buf_end, &iwe, msg);
buf = iwe_stream_add_point(info, buf, buf_end, &iwe, msg);


/* Custom info (WPA-IE) */
Expand All @@ -2778,7 +2772,8 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
sprintf( msg, "wpa_ie=%s", wl_print_wpa_ie( wpa_ie, wpa_ie_len ));
iwe.u.data.length = strlen( msg );

buf = IWE_STREAM_ADD_POINT(info, buf, buf_end, &iwe, msg);
buf = iwe_stream_add_point(info, buf, buf_end,
&iwe, msg);
}

/* Add other custom info in formatted string format as needed... */
Expand Down

0 comments on commit 6c5b7c1

Please sign in to comment.