-rw-r--r-- | libopie2/opienet/onetwork.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libopie2/opienet/onetwork.cpp b/libopie2/opienet/onetwork.cpp index 2548a04..66fa215 100644 --- a/libopie2/opienet/onetwork.cpp +++ b/libopie2/opienet/onetwork.cpp | |||
@@ -53,4 +53,5 @@ | |||
53 | #include <unistd.h> | 53 | #include <unistd.h> |
54 | #include <linux/sockios.h> | 54 | #include <linux/sockios.h> |
55 | #include <stdarg.h> | ||
55 | 56 | ||
56 | using namespace std; | 57 | using namespace std; |
@@ -583,4 +584,36 @@ QString OWirelessNetworkInterface::nickName() const | |||
583 | 584 | ||
584 | 585 | ||
586 | void OWirelessNetworkInterface::setPrivate( const QString& call, int numargs, ... ) | ||
587 | { | ||
588 | OPrivateIOCTL* priv = static_cast<OPrivateIOCTL*>( child( (const char*) call ) ); | ||
589 | if ( !priv ) | ||
590 | { | ||
591 | qDebug( "OWirelessNetworkInterface::setPrivate(): interface '%s' does not support private ioctl '%s'", name(), (const char*) call ); | ||
592 | return; | ||
593 | } | ||
594 | if ( priv->numberSetArgs() != numargs ) | ||
595 | { | ||
596 | qDebug( "OWirelessNetworkInterface::setPrivate(): parameter count not matching. '%s' expects %d arguments, but got %d", (const char*) call, priv->numberSetArgs(), numargs ); | ||
597 | return; | ||
598 | } | ||
599 | |||
600 | qDebug( "OWirelessNetworkInterface::setPrivate(): about to call '%s' on interface '%s'", (const char*) call, name() ); | ||
601 | memset( &_iwr, 0, sizeof _iwr ); | ||
602 | va_list argp; | ||
603 | va_start( argp, numargs ); | ||
604 | for ( int i = 0; i < numargs; ++i ) | ||
605 | { | ||
606 | priv->setParameter( i, va_arg( argp, int ) ); | ||
607 | } | ||
608 | va_end( argp ); | ||
609 | priv->invoke(); | ||
610 | } | ||
611 | |||
612 | |||
613 | void OWirelessNetworkInterface::getPrivate( const QString& call ) | ||
614 | { | ||
615 | } | ||
616 | |||
617 | |||
585 | QString OWirelessNetworkInterface::SSID() const | 618 | QString OWirelessNetworkInterface::SSID() const |
586 | { | 619 | { |