Skip to content

Commit

Permalink
softap: allow output of multicast frames.
Browse files Browse the repository at this point in the history
Multicast frames were being dropped by ieee80211_output_pbuf. It appears to look
up the destination address using cnx_node_search which only has an entry for the
broadcast address (all ones). This patch modifies cnx_node_search to return the
broadcast cnx_node for the multicast addresses too.

This is needed to support services such as mDNS on the softap interface.
  • Loading branch information
ourairquality committed Dec 12, 2017
1 parent 61f23d0 commit 0a07fe1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions open_esplibs/libnet80211/wl_cnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ struct sdk_cnx_node *sdk_cnx_node_search(uint8_t mac[6])

struct sdk_cnx_node **cnx_nodes = sdk_g_ic.v.softap_netif_info->cnx_nodes;

/* Multicast addresses */
if (mac[0] & 0x01) {
return cnx_nodes[0];
}

int i = 0;
do {
struct sdk_cnx_node *cnx_node = cnx_nodes[i];
Expand Down

0 comments on commit 0a07fe1

Please sign in to comment.