+ /* send encryption capability */
+ iwe.cmd = SIOCGIWENCODE;
+ iwe.u.data.pointer = NULL;
+ iwe.u.data.length = 0;
+ if (bss_info->capability & DOT11_CAP_PRIVACY)
+ iwe.u.data.flags = IW_ENCODE_ENABLED | IW_ENCODE_NOKEY;
+ else
+ iwe.u.data.flags = IW_ENCODE_DISABLED;
+ current_ev = iwe_stream_add_point(current_ev, end_buf, &iwe, NULL);
+