aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-03-19 10:20:10 (GMT)
committerJouni Malinen <j@w1.fi>2011-03-19 10:22:24 (GMT)
commit10c5d2a593249a2a1e0a5d4bfdba6caaff00bdb3 (patch)
treeeb6b0cccb6835957724d1ce70036342ec4047483 /src/p2p/p2p_i.h
parent6f2c0607112354744cec693968f1bb689ffb070f (diff)
downloadhostap-10c5d2a593249a2a1e0a5d4bfdba6caaff00bdb3.zip
hostap-10c5d2a593249a2a1e0a5d4bfdba6caaff00bdb3.tar.gz
hostap-10c5d2a593249a2a1e0a5d4bfdba6caaff00bdb3.tar.bz2
P2P: Use a single define for max number of vendor extensions
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index 4e12c70..237abbf 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -385,11 +385,10 @@ struct p2p_data {
int best_freq_5;
int best_freq_overall;
-#define P2P_MAX_WPS_VENDOR_EXTENSIONS 10
/**
* wps_vendor_ext - WPS Vendor Extensions to add
*/
- struct wpabuf *wps_vendor_ext[P2P_MAX_WPS_VENDOR_EXTENSIONS];
+ struct wpabuf *wps_vendor_ext[P2P_MAX_WPS_VENDOR_EXT];
};
/**
@@ -445,8 +444,8 @@ struct p2p_message {
const u8 *wps_pri_dev_type;
const u8 *wps_sec_dev_type_list;
size_t wps_sec_dev_type_list_len;
- const u8 *wps_vendor_ext[P2P_MAX_WPS_VENDOR_EXTENSIONS];
- size_t wps_vendor_ext_len[P2P_MAX_WPS_VENDOR_EXTENSIONS];
+ const u8 *wps_vendor_ext[P2P_MAX_WPS_VENDOR_EXT];
+ size_t wps_vendor_ext_len[P2P_MAX_WPS_VENDOR_EXT];
/* DS Parameter Set IE */
const u8 *ds_params;