From: David Kilroy Date: Sun, 9 Oct 2011 11:11:34 +0000 (+0100) Subject: staging: wlags49_h2: Report WPA IE in scan results with IWEVGENIE X-Git-Tag: firefly_0821_release~3680^2~4313^2^2~74 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=68da105637af306f5113441812c13209e4f939c4;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlags49_h2/wl_wext.c b/drivers/staging/wlags49_h2/wl_wext.c index c392fd82e980..af9fec583a75 100644 --- a/drivers/staging/wlags49_h2/wl_wext.c +++ b/drivers/staging/wlags49_h2/wl_wext.c @@ -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); - /* Custom info (WPA-IE) */ + /* WPA-IE */ wpa_ie = NULL; wpa_ie_len = 0; wpa_ie = wl_parse_wpa_ie( probe_resp, &wpa_ie_len ); if( wpa_ie != NULL ) { - memset( &iwe, 0, sizeof( iwe )); - memset( msg, 0, sizeof( msg )); + memset(&iwe, 0, sizeof(iwe)); - iwe.cmd = IWEVCUSTOM; - sprintf( msg, "wpa_ie=%s", wl_print_wpa_ie( wpa_ie, wpa_ie_len )); - iwe.u.data.length = strlen( msg ); + iwe.cmd = IWEVGENIE; + iwe.u.data.length = wpa_ie_len; buf = iwe_stream_add_point(info, buf, buf_end, - &iwe, msg); + &iwe, wpa_ie); } /* Add other custom info in formatted string format as needed... */