ap: rename ap_parse_ie to be more descriptive
This is only used for NEW_STATION parsing so name appropriately
This commit is contained in:
parent
c09e97689b
commit
4635e095ba
8
src/ap.c
8
src/ap.c
|
@ -2197,8 +2197,9 @@ error:
|
||||||
ap_start_failed(ap);
|
ap_start_failed(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool ap_parse_ie(const void *data, uint16_t len, uint8_t **rsn_out,
|
static bool ap_parse_new_station_ies(const void *data, uint16_t len,
|
||||||
struct l_uintset **rates_out)
|
uint8_t **rsn_out,
|
||||||
|
struct l_uintset **rates_out)
|
||||||
{
|
{
|
||||||
struct ie_tlv_iter iter;
|
struct ie_tlv_iter iter;
|
||||||
uint8_t *rsn = NULL;
|
uint8_t *rsn = NULL;
|
||||||
|
@ -2255,7 +2256,8 @@ static void ap_handle_new_station(struct ap_state *ap, struct l_genl_msg *msg)
|
||||||
while (l_genl_attr_next(&attr, &type, &len, &data)) {
|
while (l_genl_attr_next(&attr, &type, &len, &data)) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case NL80211_ATTR_IE:
|
case NL80211_ATTR_IE:
|
||||||
if (!ap_parse_ie(data, len, &assoc_rsne, &rates))
|
if (!ap_parse_new_station_ies(data, len, &assoc_rsne,
|
||||||
|
&rates))
|
||||||
return;
|
return;
|
||||||
break;
|
break;
|
||||||
case NL80211_ATTR_MAC:
|
case NL80211_ATTR_MAC:
|
||||||
|
|
Loading…
Reference in New Issue