+static void print_htmodelist(const struct iwinfo_ops *iw, const char *ifname)
+{
+ int i, htmodes = 0;
+
+ if (iw->htmodelist(ifname, &htmodes))
+ {
+ printf("No HT mode information available\n");
+ return;
+ }
+
+ for (i = 0; i < ARRAY_SIZE(IWINFO_HTMODE_NAMES); i++)
+ if (htmodes & (1 << i))
+ printf("%s ", IWINFO_HTMODE_NAMES[i]);
+
+ printf("\n");
+}
+
+static void lookup_phy(const struct iwinfo_ops *iw, const char *section)
+{
+ char buf[IWINFO_BUFSIZE];
+
+ if (!iw->lookup_phy)
+ {
+ fprintf(stderr, "Not supported\n");
+ return;
+ }
+
+ if (iw->lookup_phy(section, buf))
+ {
+ fprintf(stderr, "Phy not found\n");
+ return;
+ }
+
+ printf("%s\n", buf);
+}
+