1
# -*- coding: utf-8 -*-
2
# Copyright (C) 2006-2010 Vodafone España, S.A.
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License along
16
# with this program; if not, write to the Free Software Foundation, Inc.,
17
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
from wader.common import consts
20
from wader.common.hardware.base import build_band_dict
21
from wader.common.hardware.huawei import (HuaweiWCDMADevicePlugin,
22
HuaweiWCDMACustomizer,
26
class HuaweiK4505Customizer(HuaweiWCDMACustomizer):
28
:class:`~wader.common.hardware.huawei.HuaweiWCDMACustomizer` for the K4505
31
# GSM/GPRS/EDGE 850/900/1800/1900 MHz
32
# HSDPA/UMTS 2100/900 MHz
34
band_dict = build_band_dict(
36
[consts.MM_NETWORK_BAND_ANY,
38
consts.MM_NETWORK_BAND_G850,
39
consts.MM_NETWORK_BAND_EGSM,
40
consts.MM_NETWORK_BAND_DCS,
41
consts.MM_NETWORK_BAND_PCS,
43
# consts.MM_NETWORK_BAND_U900, # waiting for docs
44
consts.MM_NETWORK_BAND_U2100])
47
class HuaweiK4505(HuaweiWCDMADevicePlugin):
49
:class:`~wader.common.plugin.DevicePlugin` for Huawei's Vodafone K4505
53
author = u"Andrew Bird"
54
custom = HuaweiK4505Customizer()
56
__remote_name__ = "K4505"
59
'ID_VENDOR_ID': [0x12d1],
60
'ID_MODEL_ID': [0x1464],
64
huaweik4505 = HuaweiK4505()