+static int nl80211_get_htmodelist(const char *ifname, int *buf)
+{
+ struct nl80211_msg_conveyor *req;
+ struct nl80211_modes m = { };
+
+ req = nl80211_msg(ifname, NL80211_CMD_GET_WIPHY, 0);
+ if (req)
+ {
+ nl80211_send(req, nl80211_get_modelist_cb, &m);
+ nl80211_free(req);
+ }
+
+ if (m.ok)
+ {
+ *buf = m.ht;
+ return 0;
+ }
+
+ return -1;
+}
+
+