Commit 939c5b34 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Change the values of NET_CHANNEL_* to fit in a byte.

parent e8430115
......@@ -49,8 +49,8 @@ struct network_conf {
#define NET_LQ (1 << 3)
#define NET_CHANNEL_UNKNOWN 0
#define NET_CHANNEL_INTERFERING -2
#define NET_CHANNEL_NONINTERFERING -3
#define NET_CHANNEL_INTERFERING 253
#define NET_CHANNEL_NONINTERFERING 254
struct network {
struct network *next;
......@@ -58,7 +58,7 @@ struct network {
unsigned int ifindex;
unsigned short flags;
unsigned short cost;
int channel;
unsigned char channel;
struct timeval hello_timeout;
struct timeval update_timeout;
struct timeval flush_timeout;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment