projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
curly wars / auto-indentation
[oweals/gnunet.git]
/
src
/
transport
/
gnunet-transport-wlan-helper.c
diff --git
a/src/transport/gnunet-transport-wlan-helper.c
b/src/transport/gnunet-transport-wlan-helper.c
index f917e1ecd333c96e86871ccf84f33a9b4113fe41..25e55e510a583ca3287aa457608a10addb84f999 100644
(file)
--- a/
src/transport/gnunet-transport-wlan-helper.c
+++ b/
src/transport/gnunet-transport-wlan-helper.c
@@
-1016,7
+1016,9
@@
getFrequencyFromChannel (int channel)
6050, 6055, 6060, 6065, 6070, 6075, 6080, 6085, 6090, 6095, 6100
};
6050, 6055, 6060, 6065, 6070, 6075, 6080, 6085, 6090, 6095, 6100
};
- return (channel > 0 && channel <= 221) ? frequencies[channel] : -1;
+ return ((channel > 0) &&
+ (channel <
+ sizeof (frequencies) / sizeof (int))) ? frequencies[channel] : -1;
}
/**
}
/**