index fd9b082a2940f4f0964611f605c5e7fa8fea0bdd..4a04402c20e5533c1ea02c197bb78bb3691f6708 100644 (file)
snprintf(filename, sizeof(filename) - 1,
"/sys/bus/platform/devices/wl12xx/drop_bcast");
f = fopen(filename, "w");
- if (f < 0) {
+ if (!f) {
wpa_printf(MSG_DEBUG, "Could not open file %s: %s",
filename, strerror(errno));
return -1;