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:
parent
022a720886
commit
1a280c1a11
|
@ -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 (;;) {
|
||||
|
|
Reference in New Issue