kconfig: hide irrelevant sub-menus for oldconfig
[carl9170fw.git] / config / conf.c
index 927e3ba5830f0aeb7fdf19de3768f013494411f2..c4bc255a95d5232b0249e63d99a529da2064ed9d 100644 (file)
@@ -354,8 +354,11 @@ static void conf(struct menu *menu)
 
                switch (prop->type) {
                case P_MENU:
-                       if (input_mode == listnewconfig) &&
-                           rootEntry != menu) {
+                       /*
+                        * Except in oldaskconfig mode, we show only menus that
+                        * contain new symbols.
+                        */
+                       if (input_mode != oldaskconfig && rootEntry != menu) {
                                check_conf(menu);
                                return;
                        }