Lines Matching defs:buflen
742 int wifi_wait_on_socket(int index, char *buf, size_t buflen)
744 size_t nread = buflen - 1;
753 strncpy(buf, WPA_EVENT_TERMINATING " - connection closed", buflen-1);
754 buf[buflen-1] = '\0';
762 strncpy(buf, WPA_EVENT_TERMINATING " - connection closed", buflen-1);
763 buf[buflen-1] = '\0';
769 strncpy(buf, WPA_EVENT_TERMINATING " - recv error", buflen-1);
770 buf[buflen-1] = '\0';
778 strncpy(buf, WPA_EVENT_TERMINATING " - signal 0 received", buflen-1);
779 buf[buflen-1] = '\0';
802 int wifi_wait_for_event(const char *ifname, char *buf, size_t buflen)
805 return wifi_wait_on_socket(PRIMARY, buf, buflen);
807 return wifi_wait_on_socket(SECONDARY, buf, buflen);