Erase WiMAX device before restore.
diff --git a/nandroid.c b/nandroid.c
index e0aa757..60aa564 100644
--- a/nandroid.c
+++ b/nandroid.c
@@ -315,6 +315,9 @@
         }
         else
         {
+            ui_print("Erasing WiMAX before restore...\n");
+            if (0 != (ret = format_device("wimax")))
+                return print_and_error("Error while formatting wimax!\n");
             ui_print("Restoring WiMAX image...\n");
             if (0 != (ret = restore_raw_partition("wimax", tmp)))
                 return ret;