Skip to content
Browse files

rename SSID to realm everywhere

This WiMAX network id was never called 'SSID' in the real world. SSID
comes from Wifi networks. Use 'realm' term instead. One can also call
it 'VNO'.

Signed-off-by: Alexander Gordeev <lasaine@lvk.cs.msu.su>
  • Loading branch information...
1 parent a6f1d42 commit 07784dc328ff765de5e7bf27e8081d3101ff6a5a @ago committed
Showing with 7 additions and 7 deletions.
  1. +2 −2 man/madwimax.8.txt
  2. +5 −5 src/wimax.c
View
4 man/madwimax.8.txt
@@ -62,8 +62,8 @@ OPTIONS
*-v, --verbose*::
Increase the log level.
-*--ssid*='SSID'::
- Specify service set identifier, or SSID, which is a friendly name
+*--realm*='REALM'::
+ Specify service set identifier, or realm, which is a friendly name
that identifies a particular 802.16e wireless network.
View
10 src/wimax.c
@@ -43,7 +43,7 @@
static int daemonize = 0;
static int diode_on = 1;
static int detach_dvd = 0;
-static char *ssid = "@yota.ru";
+static char *realm = "@yota.ru";
static char *event_script = SYSCONFDIR "/event.sh";
static FILE *logfile = NULL;
@@ -578,7 +578,7 @@ static int init(void)
process_events_by_mask(500, WDS_OTHER);
- len = fill_auth_set_cmd(req_data, ssid);
+ len = fill_auth_set_cmd(req_data, realm);
set_data(req_data, len);
return 0;
@@ -646,7 +646,7 @@ void usage(const char *progname)
printf(" --device=VID:PID specify the USB device by VID:PID\n");
printf(" --exact-device=BUS/DEV specify the exact USB bus/device (use with care!)\n");
printf(" -V, --version print the version number\n");
- printf(" --ssid specify SSID, a friendly name that identifies a\n");
+ printf(" --realm specify realm, a friendly name that identifies a\n");
printf(" particular 802.16e wireless network\n");
printf(" -e, --event-script=FILE specify path to the event script\n");
printf(" -h, --help display this help\n");
@@ -676,7 +676,7 @@ static void parse_args(int argc, char **argv)
{"device", required_argument, 0, 1},
{"exact-device", required_argument, 0, 2},
{"version", no_argument, 0, 'V'},
- {"ssid", required_argument, 0, 3},
+ {"realm", required_argument, 0, 3},
{"event-script", required_argument, 0, 'e'},
{"help", no_argument, 0, 'h'},
{0, 0, 0, 0}
@@ -776,7 +776,7 @@ static void parse_args(int argc, char **argv)
break;
}
case 3: {
- ssid = optarg;
+ realm = optarg;
break;
}
case 'e': {

0 comments on commit 07784dc

Please sign in to comment.
Something went wrong with that request. Please try again.