summaryrefslogtreecommitdiff
authoraquadran <aquadran>2007-06-10 06:17:47 (UTC)
committer aquadran <aquadran>2007-06-10 06:17:47 (UTC)
commit85dfcf4f5e7fb28990606b83a02043af19a8c15d (patch) (unidiff)
tree7a735f00f6f4a6493ea3ebd990d095c3c720db90
parente87affd3d9a8a7d705d0dc3d1a4905e1e3f902d0 (diff)
downloadopie-85dfcf4f5e7fb28990606b83a02043af19a8c15d.zip
opie-85dfcf4f5e7fb28990606b83a02043af19a8c15d.tar.gz
opie-85dfcf4f5e7fb28990606b83a02043af19a8c15d.tar.bz2
fix missing types for include for latest kernel
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opienet/onetwork.h1
-rw-r--r--noncore/settings/networksettings/wlan/wextensions.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/libopie2/opienet/onetwork.h b/libopie2/opienet/onetwork.h
index b13c7a3..370ad59 100644
--- a/libopie2/opienet/onetwork.h
+++ b/libopie2/opienet/onetwork.h
@@ -36,24 +36,25 @@
36 36
37/* QT */ 37/* QT */
38#include <qvaluelist.h> 38#include <qvaluelist.h>
39#include <qdict.h> 39#include <qdict.h>
40#include <qmap.h> 40#include <qmap.h>
41#include <qobject.h> 41#include <qobject.h>
42#include <qhostaddress.h> 42#include <qhostaddress.h>
43 43
44/* STD */ 44/* STD */
45// hacky workarounds until we have a true user space wireless.h 45// hacky workarounds until we have a true user space wireless.h
46#include <net/if.h> 46#include <net/if.h>
47#define _LINUX_IF_H 47#define _LINUX_IF_H
48#include <linux/types.h>
48#include <linux/wireless.h> 49#include <linux/wireless.h>
49#ifndef IW_MAX_PRIV_DEF 50#ifndef IW_MAX_PRIV_DEF
50#define IW_MAX_PRIV_DEF 128 51#define IW_MAX_PRIV_DEF 128
51#endif 52#endif
52 53
53namespace Opie { 54namespace Opie {
54namespace Net { 55namespace Net {
55class ONetworkInterface; 56class ONetworkInterface;
56class OWirelessNetworkInterface; 57class OWirelessNetworkInterface;
57class OChannelHopper; 58class OChannelHopper;
58class OMonitoringInterface; 59class OMonitoringInterface;
59 60
diff --git a/noncore/settings/networksettings/wlan/wextensions.h b/noncore/settings/networksettings/wlan/wextensions.h
index a89e33a..aceb672 100644
--- a/noncore/settings/networksettings/wlan/wextensions.h
+++ b/noncore/settings/networksettings/wlan/wextensions.h
@@ -1,18 +1,20 @@
1#ifndef WEXTENSIONS_H 1#ifndef WEXTENSIONS_H
2#define WEXTENSIONS_H 2#define WEXTENSIONS_H
3 3
4#include <qstring.h> 4#include <qstring.h>
5 5
6#include <net/if.h>
6#include <netinet/ip.h> 7#include <netinet/ip.h>
8#include <linux/types.h>
7#include <linux/wireless.h> 9#include <linux/wireless.h>
8 10
9class WExtensions { 11class WExtensions {
10 12
11public: 13public:
12 WExtensions(QString interfaceName); 14 WExtensions(QString interfaceName);
13 QString getInterfaceName(){return interface;}; 15 QString getInterfaceName(){return interface;};
14 bool doesHaveWirelessExtensions(){return hasWirelessExtensions;}; 16 bool doesHaveWirelessExtensions(){return hasWirelessExtensions;};
15 QString station(); 17 QString station();
16 QString essid(); 18 QString essid();
17 QString mode(); 19 QString mode();
18 double frequency(); 20 double frequency();