nwid[IEEE80211_NWID_LEN] = 0; if (ioctl(s, SIOCG80211NWID, (caddr_t)&ifr) == 0) printf("\tnwid %s\n", nwid);
if (ioctl(s, SIOCG80211NWID, (caddr_t)&ifr) == 0) { strncpy(buf, nwid.i_nwid, sizeof(buf) - 1); buf[IEEE80211_NWID_LEN] = '\0'; printf("\tnwid %s\n", nwid.i_nwid); }
ieee80211_status(){	u_int8_t nwid[IEEE80211_NWID_LEN + 1];	memset(&ifr, 0, sizeof(ifr));	ifr.ifr_data = (caddr_t)nwid;	(void)strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name));	nwid[IEEE80211_NWID_LEN] = 0;	if (ioctl(s, SIOCG80211NWID, (caddr_t)&ifr) == 0)		printf("\tnwid %s\n", nwid);}