iwlagn: default to MAX_UCODE_BEACON_INTERVAL in iwl_adjust_beacon_interval
[linux-2.6.git] / drivers / net / wireless / iwlwifi / iwl-agn.c
index 50f8c7f470613841c164a38a7f2cfa66ba091922..ad310050e298ed0e6aad62cd4fe85191f24f9d7e 100644 (file)
@@ -644,6 +644,9 @@ static u16 iwl_adjust_beacon_interval(u16 beacon_val)
                                        / MAX_UCODE_BEACON_INTERVAL;
        new_val = beacon_val / beacon_factor;
 
+       if (!new_val)
+               new_val = MAX_UCODE_BEACON_INTERVAL;
+
        return new_val;
 }