C语言获取wifi状态
int getWirelessStatus(char *ath, char *ssid, char *ipAddr){ int sock_fd; struct iwreq iwr; struct ifreq ifr; char buffer[32] = {0}; if (NULL == ath) { printf("ath is NULL\n"); return -1; } if ((sock_fd =