diff options
Diffstat (limited to 'src/waproamd.c')
-rw-r--r-- | src/waproamd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/waproamd.c b/src/waproamd.c index 41cfa3f..91dd26b 100644 --- a/src/waproamd.c +++ b/src/waproamd.c @@ -274,10 +274,8 @@ int go(struct interface *i) { /* Try to enable userspace roaming in the driver */ if (!disabled && use_userspace_roaming) { - if (iw_set_hostroam(i, 2) < 0) { + if (iw_set_hostroam(i, 2) < 0) daemon_log(LOG_WARNING, "Enabling user space roaming failed, doing without."); - use_userspace_roaming = 0; - } } memset(¤t_ap, 0, sizeof(current_ap)); @@ -406,6 +404,9 @@ int go(struct interface *i) { if (d && !disabled) { daemon_log(LOG_INFO, "Interface enabled"); associated = scanning = 0; + + if (iw_set_hostroam(i, 2) < 0) + daemon_log(LOG_WARNING, "Enabling user space roaming failed, doing without."); } if (!disabled) { |