iwmgmt_cmd.c File Reference

#include <gpxe/netdevice.h>
#include <gpxe/net80211.h>
#include <gpxe/command.h>
#include <usr/iwmgmt.h>
#include <hci/ifmgmt_cmd.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
static int iwstat_payload (struct net_device *netdev)
static int iwstat_exec (int argc, char **argv)
static int iwlist_payload (struct net_device *netdev)
static int iwlist_exec (int argc, char **argv)

Variables

struct command iwmgmt_commands[] __command
 Wireless interface management commands.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

static int iwstat_payload ( struct net_device netdev  )  [static]

Definition at line 29 of file iwmgmt_cmd.c.

References iwstat(), and net80211_get().

Referenced by iwstat_exec().

00029                                                         {
00030         struct net80211_device *dev = net80211_get ( netdev );
00031 
00032         if ( dev )
00033                 iwstat ( dev );
00034 
00035         return 0;
00036 }

static int iwstat_exec ( int  argc,
char **  argv 
) [static]

Definition at line 38 of file iwmgmt_cmd.c.

References ifcommon_exec(), and iwstat_payload().

00038                                                  {
00039         return ifcommon_exec ( argc, argv,
00040                                iwstat_payload, "Display wireless status of" );
00041 }

static int iwlist_payload ( struct net_device netdev  )  [static]

Definition at line 45 of file iwmgmt_cmd.c.

References iwlist(), and net80211_get().

Referenced by iwlist_exec().

00045                                                         {
00046         struct net80211_device *dev = net80211_get ( netdev );
00047 
00048         if ( dev )
00049                 return iwlist ( dev );
00050 
00051         return 0;
00052 }

static int iwlist_exec ( int  argc,
char **  argv 
) [static]

Definition at line 54 of file iwmgmt_cmd.c.

References ifcommon_exec(), and iwlist_payload().

00054                                                  {
00055         return ifcommon_exec ( argc, argv, iwlist_payload,
00056                                "List wireless networks available via" );
00057 }


Variable Documentation

struct command iwmgmt_commands [] __command

Initial value:

 {
        {
                .name = "iwstat",
                .exec = iwstat_exec,
        },
        {
                .name = "iwlist",
                .exec = iwlist_exec,
        },
}
Wireless interface management commands.

Definition at line 60 of file iwmgmt_cmd.c.


Generated on Tue Apr 6 20:01:46 2010 for gPXE by  doxygen 1.5.7.1