mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 18:50:12 +01:00
wimax: more NSP property type fixes
Forgot this in the last commit.
This commit is contained in:
parent
8c2932fc2b
commit
752d17cf9d
1 changed files with 3 additions and 3 deletions
|
|
@ -139,7 +139,7 @@ set_property (GObject *object, guint prop_id,
|
|||
{
|
||||
NMWimaxNspPrivate *priv = GET_PRIVATE (object);
|
||||
guint32 quality;
|
||||
guchar network_type;
|
||||
guint network_type;
|
||||
|
||||
switch (prop_id) {
|
||||
case PROP_NAME:
|
||||
|
|
@ -154,7 +154,7 @@ set_property (GObject *object, guint prop_id,
|
|||
}
|
||||
break;
|
||||
case PROP_NETWORK_TYPE:
|
||||
network_type = g_value_get_uchar (value);
|
||||
network_type = g_value_get_uint (value);
|
||||
if (network_type != priv->network_type) {
|
||||
priv->network_type = network_type;
|
||||
g_object_notify (object, NM_WIMAX_NSP_NETWORK_TYPE);
|
||||
|
|
@ -180,7 +180,7 @@ get_property (GObject *object, guint prop_id,
|
|||
g_value_set_uint (value, nm_wimax_nsp_get_signal_quality (self));
|
||||
break;
|
||||
case PROP_NETWORK_TYPE:
|
||||
g_value_set_uchar (value, nm_wimax_nsp_get_network_type (self));
|
||||
g_value_set_uint (value, nm_wimax_nsp_get_network_type (self));
|
||||
break;
|
||||
default:
|
||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue