Lines Matching refs:sub
167 asn_oid *, uint sub, struct wlan_iface **, uint32_t *);
179 uint sub, struct wlan_iface **);
188 static int wlan_scanr_index_decode(const struct asn_oid *oid, uint sub,
217 op_wlan_iface(struct snmp_context *ctx, struct snmp_value *val, uint32_t sub, in op_wlan_iface() argument
228 if ((wif = wlan_get_snmp_interface(&val->var, sub)) == NULL) in op_wlan_iface()
233 if ((wif = wlan_get_next_snmp_interface(&val->var, sub)) == NULL) in op_wlan_iface()
235 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_iface()
239 if ((wif = wlan_get_snmp_interface(&val->var, sub)) == NULL) { in op_wlan_iface()
240 if (val->var.subs[sub - 1] != LEAF_wlanIfaceName) in op_wlan_iface()
242 if (wlan_get_ifname(&val->var, sub, wname) == NULL) in op_wlan_iface()
249 val->var.subs[sub - 1] != LEAF_wlanIfaceStatus && in op_wlan_iface()
250 val->var.subs[sub - 1] != LEAF_wlanIfaceState) in op_wlan_iface()
253 switch (val->var.subs[sub - 1]) { in op_wlan_iface()
346 if ((wif = wlan_get_snmp_interface(&val->var, sub)) == NULL) in op_wlan_iface()
348 switch (val->var.subs[sub - 1]) { in op_wlan_iface()
399 switch (val->var.subs[sub - 1]) { in op_wlan_iface()
414 switch (val->var.subs[sub - 1]) { in op_wlan_iface()
445 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_if_parent() argument
453 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_if_parent()
457 if ((wif = wlan_get_next_interface(&val->var, sub)) == NULL) in op_wlan_if_parent()
459 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_if_parent()
471 switch (val->var.subs[sub - 1]) { in op_wlan_if_parent()
488 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_iface_config() argument
498 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_iface_config()
503 if ((wif = wlan_get_next_interface(&val->var, sub)) == NULL) in op_wlan_iface_config()
505 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_iface_config()
509 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_iface_config()
517 switch (val->var.subs[sub - 1]) { in op_wlan_iface_config()
667 if (val->var.subs[sub - 1] == LEAF_wlanIfaceDesiredSsid) in op_wlan_iface_config()
682 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_iface_config()
684 switch (val->var.subs[sub - 1]) { in op_wlan_iface_config()
697 switch (val->var.subs[sub - 1]) { in op_wlan_iface_config()
711 if (wlan_config_get_ioctl(wif, val->var.subs[sub - 1]) < 0) in op_wlan_iface_config()
714 switch (val->var.subs[sub - 1]) { in op_wlan_iface_config()
854 rc = wlan_config_set_ioctl(wif, val->var.subs[sub - 1], intval, in op_wlan_iface_config()
858 switch (val->var.subs[sub - 1]) { in op_wlan_iface_config()
876 op_wlan_if_peer(struct snmp_context *ctx, struct snmp_value *val, uint32_t sub, in op_wlan_if_peer() argument
887 if ((wip = wlan_get_peer(&val->var, sub, &wif)) == NULL) in op_wlan_if_peer()
891 if ((wip = wlan_get_next_peer(&val->var, sub, &wif)) == NULL) in op_wlan_if_peer()
893 wlan_append_mac_index(&val->var, sub, wif->wname, wip->pmac); in op_wlan_if_peer()
896 if ((wip = wlan_get_peer(&val->var, sub, &wif)) == NULL) in op_wlan_if_peer()
898 if (val->var.subs[sub - 1] != LEAF_wlanIfacePeerVlanTag) in op_wlan_if_peer()
907 if ((wip = wlan_get_peer(&val->var, sub, &wif)) == NULL) in op_wlan_if_peer()
909 if (val->var.subs[sub - 1] != LEAF_wlanIfacePeerVlanTag) in op_wlan_if_peer()
918 switch (val->var.subs[sub - 1]) { in op_wlan_if_peer()
963 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_channels() argument
974 if ((channel = wlan_get_channel(&val->var, sub, &wif)) == NULL) in op_wlan_channels()
978 channel = wlan_get_next_channel(&val->var, sub, &wif); in op_wlan_channels()
981 wlan_append_channel_index(&val->var, sub, wif, channel); in op_wlan_channels()
993 switch (val->var.subs[sub - 1]) { in op_wlan_channels()
1031 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_roam_params() argument
1042 rparam = wlan_get_roam_param(&val->var, sub, &wif); in op_wlan_roam_params()
1047 rparam = wlan_get_next_roam_param(&val->var, sub, &wif, &phy); in op_wlan_roam_params()
1050 wlan_append_phy_index(&val->var, sub, wif->wname, phy); in op_wlan_roam_params()
1062 switch (val->var.subs[sub - 1]) { in op_wlan_roam_params()
1078 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_tx_params() argument
1089 txparam = wlan_get_tx_param(&val->var, sub, &wif, &phy); in op_wlan_tx_params()
1095 txparam = wlan_get_next_tx_param(&val->var, sub, &wif, &phy); in op_wlan_tx_params()
1098 wlan_append_phy_index(&val->var, sub, wif->wname, phy); in op_wlan_tx_params()
1102 txparam = wlan_get_tx_param(&val->var, sub, &wif, &phy); in op_wlan_tx_params()
1105 switch (val->var.subs[sub - 1]) { in op_wlan_tx_params()
1133 txparam = wlan_get_tx_param(&val->var, sub, &wif, &phy); in op_wlan_tx_params()
1136 switch (val->var.subs[sub - 1]) { in op_wlan_tx_params()
1160 switch (val->var.subs[sub - 1]) { in op_wlan_tx_params()
1182 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_scan_config() argument
1190 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_scan_config()
1195 if ((wif = wlan_get_next_interface(&val->var, sub)) == NULL) in op_wlan_scan_config()
1197 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_scan_config()
1201 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_scan_config()
1204 && val->var.subs[sub - 1] != LEAF_wlanScanConfigStatus) in op_wlan_scan_config()
1206 switch (val->var.subs[sub - 1]) { in op_wlan_scan_config()
1235 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_scan_config()
1237 if (val->var.subs[sub - 1] == LEAF_wlanScanConfigStatus) in op_wlan_scan_config()
1243 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_scan_config()
1245 switch (val->var.subs[sub - 1]) { in op_wlan_scan_config()
1267 switch (val->var.subs[sub - 1]) { in op_wlan_scan_config()
1290 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_scan_results() argument
1300 if ((sr = wlan_get_scanr(&val->var, sub, &wif)) == NULL) in op_wlan_scan_results()
1305 if ((sr = wlan_get_next_scanr(&val->var, sub, &wif)) == NULL) in op_wlan_scan_results()
1307 wlan_append_scanr_index(&val->var, sub, wif->wname, sr->ssid, in op_wlan_scan_results()
1321 switch (val->var.subs[sub - 1]) { in op_wlan_scan_results()
1349 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_iface_stats() argument
1357 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_iface_stats()
1361 if ((wif = wlan_get_next_interface(&val->var, sub)) == NULL) in op_wlan_iface_stats()
1363 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_iface_stats()
1379 switch (val->var.subs[sub - 1]) { in op_wlan_iface_stats()
1752 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_wep_iface() argument
1760 if ((wif = wlan_get_interface(&val->var, sub)) == NULL || in op_wlan_wep_iface()
1767 if ((wif = wlan_get_next_interface(&val->var, sub)) == NULL) in op_wlan_wep_iface()
1769 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_wep_iface()
1773 if ((wif = wlan_get_interface(&val->var, sub)) == NULL || in op_wlan_wep_iface()
1776 switch (val->var.subs[sub - 1]) { in op_wlan_wep_iface()
1808 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_wep_iface()
1810 switch (val->var.subs[sub - 1]) { in op_wlan_wep_iface()
1830 switch (val->var.subs[sub - 1]) { in op_wlan_wep_iface()
1850 struct snmp_value *val __unused, uint32_t sub __unused, in op_wlan_wep_key()
1858 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_mac_access_control() argument
1866 if ((wif = wlan_get_interface(&val->var, sub)) == NULL || in op_wlan_mac_access_control()
1873 if ((wif = wlan_get_next_interface(&val->var, sub)) == NULL) in op_wlan_mac_access_control()
1875 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_mac_access_control()
1879 if ((wif = wlan_get_interface(&val->var, sub)) == NULL || in op_wlan_mac_access_control()
1882 switch (val->var.subs[sub - 1]) { in op_wlan_mac_access_control()
1897 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_mac_access_control()
1899 switch (val->var.subs[sub - 1]) { in op_wlan_mac_access_control()
1916 if ((wif = wlan_get_interface(&val->var, sub)) == NULL) in op_wlan_mac_access_control()
1918 if (val->var.subs[sub - 1] == LEAF_wlanMACAccessControlPolicy) in op_wlan_mac_access_control()
1929 switch (val->var.subs[sub - 1]) { in op_wlan_mac_access_control()
1948 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_mac_acl_mac() argument
1958 if ((macl = wlan_get_acl_mac(&val->var, sub, &wif)) == NULL) in op_wlan_mac_acl_mac()
1963 if ((macl = wlan_get_next_acl_mac(&val->var, sub, &wif)) in op_wlan_mac_acl_mac()
1966 wlan_append_mac_index(&val->var, sub, wif->wname, macl->mac); in op_wlan_mac_acl_mac()
1970 switch (val->var.subs[sub - 1]) { in op_wlan_mac_acl_mac()
1974 return(wlan_acl_mac_set_status(ctx, val, sub)); in op_wlan_mac_acl_mac()
1980 if ((macl = wlan_get_acl_mac(&val->var, sub, &wif)) == NULL) in op_wlan_mac_acl_mac()
1988 if ((macl = wlan_get_acl_mac(&val->var, sub, &wif)) == NULL) in op_wlan_mac_acl_mac()
1999 switch (val->var.subs[sub - 1]) { in op_wlan_mac_acl_mac()
2014 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_mesh_config() argument
2018 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_config()
2045 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_config()
2071 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_config()
2093 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_config()
2113 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_mesh_iface() argument
2122 if ((wif = wlan_mesh_get_iface(&val->var, sub)) == NULL) in op_wlan_mesh_iface()
2127 if ((wif = wlan_mesh_get_next_iface(&val->var, sub)) == NULL) in op_wlan_mesh_iface()
2129 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_mesh_iface()
2133 if ((wif = wlan_mesh_get_iface(&val->var, sub)) == NULL) in op_wlan_mesh_iface()
2135 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_iface()
2176 if (val->var.subs[sub - 1] == LEAF_wlanMeshId) in op_wlan_mesh_iface()
2180 rc = wlan_mesh_config_set(wif, val->var.subs[sub - 1]); in op_wlan_mesh_iface()
2186 if ((wif = wlan_mesh_get_iface(&val->var, sub)) == NULL) in op_wlan_mesh_iface()
2188 if (val->var.subs[sub - 1] == LEAF_wlanMeshRoutesFlush && in op_wlan_mesh_iface()
2191 if (val->var.subs[sub - 1] == LEAF_wlanMeshId) in op_wlan_mesh_iface()
2196 if ((wif = wlan_mesh_get_iface(&val->var, sub)) == NULL) in op_wlan_mesh_iface()
2198 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_iface()
2224 if (val->var.subs[sub - 1] == LEAF_wlanMeshId) in op_wlan_mesh_iface()
2228 rc = wlan_mesh_config_set(wif, val->var.subs[sub - 1]); in op_wlan_mesh_iface()
2237 if (val->var.subs[sub - 1] == LEAF_wlanMeshId) in op_wlan_mesh_iface()
2240 rc = wlan_mesh_config_get(wif, val->var.subs[sub - 1]); in op_wlan_mesh_iface()
2244 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_iface()
2274 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_mesh_neighbor() argument
2284 if ((wip = wlan_mesh_get_peer(&val->var, sub, &wif)) == NULL) in op_wlan_mesh_neighbor()
2288 wip = wlan_mesh_get_next_peer(&val->var, sub, &wif); in op_wlan_mesh_neighbor()
2291 wlan_append_mac_index(&val->var, sub, wif->wname, in op_wlan_mesh_neighbor()
2304 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_neighbor()
2343 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_mesh_route() argument
2353 if ((wmr = wlan_mesh_get_route(&val->var, sub, &wif)) == NULL) in op_wlan_mesh_route()
2358 wmr = wlan_mesh_get_next_route(&val->var, sub, &wif); in op_wlan_mesh_route()
2361 wlan_append_mac_index(&val->var, sub, wif->wname, in op_wlan_mesh_route()
2366 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_route()
2370 return(wlan_mesh_route_set_status(ctx, val, sub)); in op_wlan_mesh_route()
2377 if ((wmr = wlan_mesh_get_route(&val->var, sub, &wif)) == NULL) in op_wlan_mesh_route()
2385 if ((wmr = wlan_mesh_get_route(&val->var, sub, &wif)) == NULL) in op_wlan_mesh_route()
2396 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_route()
2435 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_mesh_stats() argument
2443 if ((wif = wlan_mesh_get_iface(&val->var, sub)) == NULL) in op_wlan_mesh_stats()
2447 if ((wif = wlan_mesh_get_next_iface(&val->var, sub)) == NULL) in op_wlan_mesh_stats()
2449 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_mesh_stats()
2464 switch (val->var.subs[sub - 1]) { in op_wlan_mesh_stats()
2507 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_hwmp_config() argument
2511 switch (val->var.subs[sub - 1]) { in op_wlan_hwmp_config()
2547 switch (val->var.subs[sub - 1]) { in op_wlan_hwmp_config()
2585 switch (val->var.subs[sub - 1]) { in op_wlan_hwmp_config()
2616 switch (val->var.subs[sub - 1]) { in op_wlan_hwmp_config()
2645 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_hwmp_iface() argument
2653 if ((wif = wlan_mesh_get_iface(&val->var, sub)) == NULL) in op_wlan_hwmp_iface()
2658 if ((wif = wlan_mesh_get_next_iface(&val->var, sub)) == NULL) in op_wlan_hwmp_iface()
2660 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_hwmp_iface()
2664 if ((wif = wlan_mesh_get_iface(&val->var, sub)) == NULL) in op_wlan_hwmp_iface()
2666 switch (val->var.subs[sub - 1]) { in op_wlan_hwmp_iface()
2678 if (wlan_hwmp_config_set(wif, val->var.subs[sub - 1]) < 0) in op_wlan_hwmp_iface()
2686 if ((wif = wlan_mesh_get_iface(&val->var, sub)) == NULL) in op_wlan_hwmp_iface()
2688 switch (val->var.subs[sub - 1]) { in op_wlan_hwmp_iface()
2698 if (wlan_hwmp_config_set(wif, val->var.subs[sub - 1]) < 0) in op_wlan_hwmp_iface()
2706 if (wlan_hwmp_config_get(wif, val->var.subs[sub - 1]) < 0) in op_wlan_hwmp_iface()
2709 switch (val->var.subs[sub - 1]) { in op_wlan_hwmp_iface()
2725 uint32_t sub, uint32_t iidx __unused, enum snmp_op op) in op_wlan_hwmp_stats() argument
2733 if ((wif = wlan_mesh_get_iface(&val->var, sub)) == NULL) in op_wlan_hwmp_stats()
2737 if ((wif = wlan_mesh_get_next_iface(&val->var, sub)) == NULL) in op_wlan_hwmp_stats()
2739 wlan_append_ifindex(&val->var, sub, wif); in op_wlan_hwmp_stats()
2754 switch (val->var.subs[sub - 1]) { in op_wlan_hwmp_stats()
3035 wlan_append_ifindex(struct asn_oid *oid, uint sub, const struct wlan_iface *w) in wlan_append_ifindex() argument
3039 oid->len = sub + strlen(w->wname) + 1; in wlan_append_ifindex()
3040 oid->subs[sub] = strlen(w->wname); in wlan_append_ifindex()
3042 oid->subs[sub + i] = w->wname[i - 1]; in wlan_append_ifindex()
3046 wlan_get_ifname(const struct asn_oid *oid, uint sub, uint8_t *wname) in wlan_get_ifname() argument
3052 if (oid->len - sub != oid->subs[sub] + 1 || oid->subs[sub] >= IFNAMSIZ) in wlan_get_ifname()
3055 for (i = 0; i < oid->subs[sub]; i++) in wlan_get_ifname()
3056 wname[i] = oid->subs[sub + i + 1]; in wlan_get_ifname()
3063 wlan_get_interface(const struct asn_oid *oid, uint sub) in wlan_get_interface() argument
3067 if (wlan_get_ifname(oid, sub, wname) == NULL) in wlan_get_interface()
3074 wlan_get_next_interface(const struct asn_oid *oid, uint sub) in wlan_get_next_interface() argument
3080 if (oid->len - sub == 0) { in wlan_get_next_interface()
3088 if (oid->len - sub != oid->subs[sub] + 1 || oid->subs[sub] >= IFNAMSIZ) in wlan_get_next_interface()
3092 for (i = 0; i < oid->subs[sub]; i++) in wlan_get_next_interface()
3093 wname[i] = oid->subs[sub + i + 1]; in wlan_get_next_interface()
3106 wlan_get_snmp_interface(const struct asn_oid *oid, uint sub) in wlan_get_snmp_interface() argument
3111 if (wlan_get_ifname(oid, sub, wname) == NULL) in wlan_get_snmp_interface()
3123 wlan_get_next_snmp_interface(const struct asn_oid *oid, uint sub) in wlan_get_next_snmp_interface() argument
3129 if (oid->len - sub == 0) in wlan_get_next_snmp_interface()
3132 if (oid->len - sub != oid->subs[sub] + 1 || oid->subs[sub] >= IFNAMSIZ) in wlan_get_next_snmp_interface()
3136 for (i = 0; i < oid->subs[sub]; i++) in wlan_get_next_snmp_interface()
3137 wname[i] = oid->subs[sub + i + 1]; in wlan_get_next_snmp_interface()
3153 wlan_mac_index_decode(const struct asn_oid *oid, uint sub, in wlan_mac_index_decode() argument
3159 if (oid->len - sub != oid->subs[sub] + 2 + IEEE80211_ADDR_LEN in wlan_mac_index_decode()
3160 || oid->subs[sub] >= IFNAMSIZ) in wlan_mac_index_decode()
3163 for (i = 0; i < oid->subs[sub]; i++) in wlan_mac_index_decode()
3164 wname[i] = oid->subs[sub + i + 1]; in wlan_mac_index_decode()
3167 mac_off = sub + oid->subs[sub] + 1; in wlan_mac_index_decode()
3177 wlan_append_mac_index(struct asn_oid *oid, uint sub, char *wname, uint8_t *mac) in wlan_append_mac_index() argument
3181 oid->len = sub + strlen(wname) + IEEE80211_ADDR_LEN + 2; in wlan_append_mac_index()
3182 oid->subs[sub] = strlen(wname); in wlan_append_mac_index()
3184 oid->subs[sub + i] = wname[i - 1]; in wlan_append_mac_index()
3186 sub += strlen(wname) + 1; in wlan_append_mac_index()
3187 oid->subs[sub] = IEEE80211_ADDR_LEN; in wlan_append_mac_index()
3189 oid->subs[sub + i] = mac[i - 1]; in wlan_append_mac_index()
3197 wlan_phy_index_decode(const struct asn_oid *oid, uint sub, char *wname, in wlan_phy_index_decode() argument
3202 if (oid->len - sub != oid->subs[sub] + 2 || oid->subs[sub] >= IFNAMSIZ) in wlan_phy_index_decode()
3205 for (i = 0; i < oid->subs[sub]; i++) in wlan_phy_index_decode()
3206 wname[i] = oid->subs[sub + i + 1]; in wlan_phy_index_decode()
3209 *phy = oid->subs[sub + oid->subs[sub] + 1]; in wlan_phy_index_decode()
3214 wlan_append_phy_index(struct asn_oid *oid, uint sub, char *wname, uint32_t phy) in wlan_append_phy_index() argument
3218 oid->len = sub + strlen(wname) + 2; in wlan_append_phy_index()
3219 oid->subs[sub] = strlen(wname); in wlan_append_phy_index()
3221 oid->subs[sub + i] = wname[i - 1]; in wlan_append_phy_index()
3222 oid->subs[sub + strlen(wname) + 1] = phy; in wlan_append_phy_index()
3317 wlan_get_peer(const struct asn_oid *oid, uint sub, struct wlan_iface **wif) in wlan_get_peer() argument
3322 if (wlan_mac_index_decode(oid, sub, wname, pmac) < 0) in wlan_get_peer()
3332 wlan_get_next_peer(const struct asn_oid *oid, uint sub, struct wlan_iface **wif) in wlan_get_next_peer() argument
3338 if (oid->len - sub == 0) { in wlan_get_next_peer()
3351 if (wlan_mac_index_decode(oid, sub, wname, pmac) < 0 || in wlan_get_next_peer()
3390 wlan_channel_index_decode(const struct asn_oid *oid, uint sub, char *wname, in wlan_channel_index_decode() argument
3394 if (oid->len - sub != oid->subs[sub] + 2 || oid->subs[sub] >= IFNAMSIZ) in wlan_channel_index_decode()
3397 for (i = 0; i < oid->subs[sub]; i++) in wlan_channel_index_decode()
3398 wname[i] = oid->subs[sub + i + 1]; in wlan_channel_index_decode()
3401 *cindex = oid->subs[sub + oid->subs[sub] + 1]; in wlan_channel_index_decode()
3407 wlan_append_channel_index(struct asn_oid *oid, uint sub, in wlan_append_channel_index() argument
3412 oid->len = sub + strlen(wif->wname) + 2; in wlan_append_channel_index()
3413 oid->subs[sub] = strlen(wif->wname); in wlan_append_channel_index()
3415 oid->subs[sub + i] = wif->wname[i - 1]; in wlan_append_channel_index()
3416 oid->subs[sub + strlen(wif->wname) + 1] = (channel - wif->chanlist) + 1; in wlan_append_channel_index()
3452 wlan_get_channel(const struct asn_oid *oid, uint sub, struct wlan_iface **wif) in wlan_get_channel() argument
3457 if (wlan_channel_index_decode(oid, sub, wname, &cindex) < 0) in wlan_get_channel()
3467 wlan_get_next_channel(const struct asn_oid *oid, uint sub, in wlan_get_next_channel() argument
3473 if (oid->len - sub == 0) { in wlan_get_next_channel()
3484 if (wlan_channel_index_decode(oid, sub, wname, &cindex) < 0) in wlan_get_next_channel()
3522 wlan_get_roam_param(const struct asn_oid *oid, uint sub, struct wlan_iface **wif) in wlan_get_roam_param() argument
3527 if (wlan_phy_index_decode(oid, sub, wname, &phy) < 0) in wlan_get_roam_param()
3540 wlan_get_next_roam_param(const struct asn_oid *oid, uint sub, in wlan_get_next_roam_param() argument
3545 if (oid->len - sub == 0) { in wlan_get_next_roam_param()
3556 if (wlan_phy_index_decode(oid, sub, wname, phy) < 0) in wlan_get_next_roam_param()
3595 wlan_get_tx_param(const struct asn_oid *oid, uint sub, struct wlan_iface **wif, in wlan_get_tx_param() argument
3600 if (wlan_phy_index_decode(oid, sub, wname, phy) < 0) in wlan_get_tx_param()
3613 wlan_get_next_tx_param(const struct asn_oid *oid, uint sub, in wlan_get_next_tx_param() argument
3618 if (oid->len - sub == 0) { in wlan_get_next_tx_param()
3629 if (wlan_phy_index_decode(oid, sub, wname, phy) < 0) in wlan_get_next_tx_param()
3773 wlan_scanr_index_decode(const struct asn_oid *oid, uint sub, in wlan_scanr_index_decode() argument
3779 if (oid->subs[sub] >= IFNAMSIZ) in wlan_scanr_index_decode()
3781 for (i = 0; i < oid->subs[sub]; i++) in wlan_scanr_index_decode()
3782 wname[i] = oid->subs[sub + i + 1]; in wlan_scanr_index_decode()
3783 wname[oid->subs[sub]] = '\0'; in wlan_scanr_index_decode()
3785 offset = sub + oid->subs[sub] + 1; in wlan_scanr_index_decode()
3792 offset = sub + oid->subs[sub] + oid->subs[offset] + 2; in wlan_scanr_index_decode()
3802 wlan_append_scanr_index(struct asn_oid *oid, uint sub, char *wname, in wlan_append_scanr_index() argument
3807 oid->len = sub + strlen(wname) + strlen(ssid) + IEEE80211_ADDR_LEN + 3; in wlan_append_scanr_index()
3808 oid->subs[sub] = strlen(wname); in wlan_append_scanr_index()
3810 oid->subs[sub + i] = wname[i - 1]; in wlan_append_scanr_index()
3812 sub += strlen(wname) + 1; in wlan_append_scanr_index()
3813 oid->subs[sub] = strlen(ssid); in wlan_append_scanr_index()
3815 oid->subs[sub + i] = ssid[i - 1]; in wlan_append_scanr_index()
3817 sub += strlen(ssid) + 1; in wlan_append_scanr_index()
3818 oid->subs[sub] = IEEE80211_ADDR_LEN; in wlan_append_scanr_index()
3820 oid->subs[sub + i] = bssid[i - 1]; in wlan_append_scanr_index()
3824 wlan_get_scanr(const struct asn_oid *oid, uint sub, struct wlan_iface **wif) in wlan_get_scanr() argument
3830 if (wlan_scanr_index_decode(oid, sub, wname, ssid, bssid) < 0) in wlan_get_scanr()
3840 wlan_get_next_scanr(const struct asn_oid *oid, uint sub, in wlan_get_next_scanr() argument
3848 if (oid->len - sub == 0) { in wlan_get_next_scanr()
3858 if (wlan_scanr_index_decode(oid, sub, wname, ssid, bssid) < 0 || in wlan_get_next_scanr()
3989 wlan_get_acl_mac(const struct asn_oid *oid, uint sub, struct wlan_iface **wif) in wlan_get_acl_mac() argument
3994 if (wlan_mac_index_decode(oid, sub, wname, mac) < 0) in wlan_get_acl_mac()
4004 wlan_get_next_acl_mac(const struct asn_oid *oid, uint sub, in wlan_get_next_acl_mac() argument
4011 if (oid->len - sub == 0) { in wlan_get_next_acl_mac()
4021 if (wlan_mac_index_decode(oid, sub, wname, mac) < 0 || in wlan_get_next_acl_mac()
4038 uint sub) in wlan_acl_mac_set_status() argument
4045 if (wlan_mac_index_decode(&val->var, sub, wname, mac) < 0) in wlan_acl_mac_set_status()
4047 macl = wlan_get_acl_mac(&val->var, sub, &wif); in wlan_acl_mac_set_status()
4118 wlan_mesh_get_iface(const struct asn_oid *oid, uint sub) in wlan_mesh_get_iface() argument
4122 if ((wif = wlan_get_interface(oid, sub)) == NULL) in wlan_mesh_get_iface()
4132 wlan_mesh_get_next_iface(const struct asn_oid *oid, uint sub) in wlan_mesh_get_next_iface() argument
4138 if (oid->len - sub == 0) in wlan_mesh_get_next_iface()
4141 if (oid->len - sub != oid->subs[sub] + 1 || oid->subs[sub] >= IFNAMSIZ) in wlan_mesh_get_next_iface()
4145 for (i = 0; i < oid->subs[sub]; i++) in wlan_mesh_get_next_iface()
4146 wname[i] = oid->subs[sub + i + 1]; in wlan_mesh_get_next_iface()
4159 wlan_mesh_get_peer(const struct asn_oid *oid, uint sub, struct wlan_iface **wif) in wlan_mesh_get_peer() argument
4164 if (wlan_mac_index_decode(oid, sub, wname, pmac) < 0) in wlan_mesh_get_peer()
4175 wlan_mesh_get_next_peer(const struct asn_oid *oid, uint sub, struct wlan_iface **wif) in wlan_mesh_get_next_peer() argument
4181 if (oid->len - sub == 0) { in wlan_mesh_get_next_peer()
4191 if (wlan_mac_index_decode(oid, sub, wname, pmac) < 0 || in wlan_mesh_get_next_peer()
4328 wlan_mesh_get_route(const struct asn_oid *oid, uint sub, struct wlan_iface **wif) in wlan_mesh_get_route() argument
4333 if (wlan_mac_index_decode(oid, sub, wname, dstmac) < 0) in wlan_mesh_get_route()
4343 wlan_mesh_get_next_route(const struct asn_oid *oid, uint sub, in wlan_mesh_get_next_route() argument
4350 if (oid->len - sub == 0) { in wlan_mesh_get_next_route()
4360 if (wlan_mac_index_decode(oid, sub, wname, dstmac) < 0 || in wlan_mesh_get_next_route()
4377 uint sub) in wlan_mesh_route_set_status() argument
4384 if (wlan_mac_index_decode(&val->var, sub, wname, mac) < 0) in wlan_mesh_route_set_status()
4386 wmr = wlan_mesh_get_route(&val->var, sub, &wif); in wlan_mesh_route_set_status()