- mode:value("11b", "802.11b")
- mode:value("11g", "802.11g")
- mode:value("11a", "802.11a")
- mode:value("11bg", "802.11b+g")
- mode:value("11gst", "802.11g + Turbo")
- mode:value("11ast", "802.11a + Turbo")
+ if hw_modes.b then mode:value("11b", "802.11b") end
+ if hw_modes.g then mode:value("11g", "802.11g") end
+ if hw_modes.a then mode:value("11a", "802.11a") end
+ if hw_modes.g then mode:value("11bg", "802.11b+g") end
+ if hw_modes.g then mode:value("11gst", "802.11g + Turbo") end
+ if hw_modes.a then mode:value("11ast", "802.11a + Turbo") end