staging: wlags49_h2: Report WPA IE in scan results with IWEVGENIE

Report the IE using the appropriate event instead of a custom one.

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
David Kilroy 2011-10-09 12:11:34 +01:00 committed by Greg Kroah-Hartman
parent 25b20463f3
commit 68da105637

View file

@ -2759,21 +2759,19 @@ static int wireless_get_scan(struct net_device *dev, struct iw_request_info *inf
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) */ /* WPA-IE */
wpa_ie = NULL; wpa_ie = NULL;
wpa_ie_len = 0; wpa_ie_len = 0;
wpa_ie = wl_parse_wpa_ie( probe_resp, &wpa_ie_len ); wpa_ie = wl_parse_wpa_ie( probe_resp, &wpa_ie_len );
if( wpa_ie != NULL ) { if( wpa_ie != NULL ) {
memset(&iwe, 0, sizeof(iwe)); memset(&iwe, 0, sizeof(iwe));
memset( msg, 0, sizeof( msg ));
iwe.cmd = IWEVCUSTOM; iwe.cmd = IWEVGENIE;
sprintf( msg, "wpa_ie=%s", wl_print_wpa_ie( wpa_ie, wpa_ie_len )); iwe.u.data.length = wpa_ie_len;
iwe.u.data.length = strlen( msg );
buf = iwe_stream_add_point(info, buf, buf_end, buf = iwe_stream_add_point(info, buf, buf_end,
&iwe, msg); &iwe, wpa_ie);
} }
/* Add other custom info in formatted string format as needed... */ /* Add other custom info in formatted string format as needed... */