CC ?= "gcc"
CFLAGS ?= -O2 -g
-CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common \
- -Werror-implicit-function-declaration -Wsign-compare
+CFLAGS += -Wall -Wextra -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common \
+ -Werror-implicit-function-declaration -Wsign-compare -Wno-unused-parameter
OBJS = iw.o genl.o event.o info.o phy.o \
interface.o ibss.o station.o survey.o util.o ocb.o \
break;
case NL80211_CMD_NEW_SCAN_RESULTS:
printf("scan finished:");
+ /* fall through */
case NL80211_CMD_SCAN_ABORTED:
if (gnlh->cmd == NL80211_CMD_SCAN_ABORTED)
printf("scan aborted:");
/* The current mesh parameters */
-const static struct mesh_param_descr _mesh_param_descrs[] =
+static const struct mesh_param_descr _mesh_param_descrs[] =
{
{"mesh_retry_timeout",
NL80211_MESHCONF_RETRY_TIMEOUT,
parse = DURATION;
break;
}
+ /* fall through - this is an error */
case DONE:
nlmsg_free(ssids);
nlmsg_free(freqs);
printf("\t * malformed device info\n");
break;
}
+
/* fall through for now */
case 0x00: /* status */
case 0x01: /* minor reason */
switch (strlen(keydata)) {
case 10:
keydata = hex2bin(keydata, keybuf);
+ /* fall through */
case 5:
NLA_PUT_U32(msg, NL80211_KEY_CIPHER, 0x000FAC01);
keylen = 5;
break;
case 26:
keydata = hex2bin(keydata, keybuf);
+ /* fall through */
case 13:
NLA_PUT_U32(msg, NL80211_KEY_CIPHER, 0x000FAC05);
keylen = 13;