P2P: Use larger pending_interface_name buffer

In theory, the interface name could be longer than IFNAMSIZ in
some systems, so use the same size buffer for this field as is
used with the main interface name.
This commit is contained in:
Jouni Malinen 2010-11-26 15:49:26 +02:00 committed by Jouni Malinen
parent afa4926c95
commit 0f85ef5cf0

View File

@ -461,7 +461,7 @@ struct wpa_supplicant {
struct p2p_go_neg_results *go_params; struct p2p_go_neg_results *go_params;
int create_p2p_iface; int create_p2p_iface;
u8 pending_interface_addr[ETH_ALEN]; u8 pending_interface_addr[ETH_ALEN];
char pending_interface_name[IFNAMSIZ]; char pending_interface_name[100];
int pending_interface_type; int pending_interface_type;
int p2p_group_idx; int p2p_group_idx;
unsigned int off_channel_freq; unsigned int off_channel_freq;