net: ptp: do not reimplement PTP/BPF classifier
[linux/fpc-iii.git] / drivers / net / wireless / libertas / mesh.h
blob6603f341c8746f0b6ed66078ac4d8d02b2ce4f53
1 /*
2 * Contains all definitions needed for the Libertas' MESH implementation.
3 */
4 #ifndef _LBS_MESH_H_
5 #define _LBS_MESH_H_
8 #include <net/iw_handler.h>
9 #include <net/lib80211.h>
11 #include "host.h"
12 #include "dev.h"
14 #ifdef CONFIG_LIBERTAS_MESH
16 struct net_device;
18 int lbs_init_mesh(struct lbs_private *priv);
19 void lbs_start_mesh(struct lbs_private *priv);
20 int lbs_deinit_mesh(struct lbs_private *priv);
22 void lbs_remove_mesh(struct lbs_private *priv);
24 static inline bool lbs_mesh_activated(struct lbs_private *priv)
26 /* Mesh SSID is only programmed after successful init */
27 return priv->mesh_ssid_len != 0;
30 int lbs_mesh_set_channel(struct lbs_private *priv, u8 channel);
32 /* Sending / Receiving */
34 struct rxpd;
35 struct txpd;
37 struct net_device *lbs_mesh_set_dev(struct lbs_private *priv,
38 struct net_device *dev, struct rxpd *rxpd);
39 void lbs_mesh_set_txpd(struct lbs_private *priv,
40 struct net_device *dev, struct txpd *txpd);
43 /* Command handling */
45 struct cmd_ds_command;
46 struct cmd_ds_mesh_access;
47 struct cmd_ds_mesh_config;
50 /* Ethtool statistics */
52 struct ethtool_stats;
54 void lbs_mesh_ethtool_get_stats(struct net_device *dev,
55 struct ethtool_stats *stats, uint64_t *data);
56 int lbs_mesh_ethtool_get_sset_count(struct net_device *dev, int sset);
57 void lbs_mesh_ethtool_get_strings(struct net_device *dev,
58 uint32_t stringset, uint8_t *s);
61 #else
63 #define lbs_init_mesh(priv)
64 #define lbs_deinit_mesh(priv)
65 #define lbs_start_mesh(priv)
66 #define lbs_add_mesh(priv)
67 #define lbs_remove_mesh(priv)
68 #define lbs_mesh_set_dev(priv, dev, rxpd) (dev)
69 #define lbs_mesh_set_txpd(priv, dev, txpd)
70 #define lbs_mesh_set_channel(priv, channel) (0)
71 #define lbs_mesh_activated(priv) (false)
73 #endif
77 #endif