dect
/
dectmon
Archived
13
0
Fork 0

dectmon: don't lock to foreign FPs when not in scanning mode

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2010-11-19 22:15:28 +01:00
parent 022a720886
commit 1a280c1a11
1 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,7 @@
LIST_HEAD(dect_handles);
static unsigned int locked;
static bool scan;
static FILE *logfile;
@ -69,6 +70,9 @@ static void dect_mac_me_info_ind(struct dect_handle *dh,
{
struct dect_handle_priv *priv = dect_handle_priv(dh);
if (!scan)
return;
if (pari != NULL) {
if (dect_handle_lookup(pari) == NULL) {
dect_llme_mac_me_info_res(dh, pari);
@ -222,7 +226,6 @@ int main(int argc, char **argv)
unsigned int ncluster = 0, i;
struct dect_handle *dh;
struct dect_fd *dfd;
bool scan = false;
int optidx = 0, c;
for (;;) {