├── hostap08
├── src
│ ├── tls
│ │ ├── .gitignore
│ │ ├── Makefile
│ │ ├── pkcs5.h
│ │ ├── pkcs8.h
│ │ ├── rsa.h
│ │ └── pkcs1.h
│ ├── crypto
│ │ ├── .gitignore
│ │ ├── fips_prf_nss.c
│ │ ├── fips_prf_cryptoapi.c
│ │ ├── fips_prf_gnutls.c
│ │ ├── dh_group5.h
│ │ ├── crypto_none.c
│ │ ├── md5_i.h
│ │ ├── aes.h
│ │ ├── sha1_i.h
│ │ ├── dh_groups.h
│ │ ├── sha256.h
│ │ ├── des_i.h
│ │ ├── dh_group5.c
│ │ ├── aes-encblock.c
│ │ └── Makefile
│ ├── radius
│ │ ├── .gitignore
│ │ └── Makefile
│ ├── utils
│ │ ├── .gitignore
│ │ ├── Makefile
│ │ ├── uuid.h
│ │ ├── base64.h
│ │ ├── edit.h
│ │ └── ip_addr.h
│ ├── drivers
│ │ ├── .gitignore
│ │ ├── Makefile
│ │ ├── rfkill.h
│ │ ├── netlink.h
│ │ └── linux_ioctl.h
│ ├── ap
│ │ ├── Makefile
│ │ ├── authsrv.h
│ │ ├── tkip_countermeasures.h
│ │ ├── wpa_auth_glue.h
│ │ ├── ctrl_iface_ap.h
│ │ ├── wmm.h
│ │ ├── ieee802_11_auth.h
│ │ └── beacon.h
│ ├── wps
│ │ ├── Makefile
│ │ ├── upnp_xml.h
│ │ └── http.h
│ ├── common
│ │ ├── Makefile
│ │ └── version.h
│ ├── l2_packet
│ │ └── Makefile
│ ├── rsn_supp
│ │ └── Makefile
│ ├── eap_common
│ │ ├── Makefile
│ │ ├── chap.h
│ │ ├── eap_peap_common.h
│ │ ├── chap.c
│ │ ├── eap_common.h
│ │ ├── eap_wsc_common.h
│ │ └── eap_wsc_common.c
│ ├── eap_server
│ │ └── Makefile
│ ├── eapol_auth
│ │ └── Makefile
│ ├── eapol_supp
│ │ └── Makefile
│ ├── p2p
│ │ └── Makefile
│ ├── eap_peer
│ │ ├── Makefile
│ │ └── mschapv2.h
│ ├── lib.rules
│ └── Makefile
├── wpa_supplicant
│ ├── .gitignore
│ ├── dbus
│ │ ├── .gitignore
│ │ ├── fi.w1.wpa_supplicant1.service.in
│ │ ├── fi.epitest.hostap.WPASupplicant.service.in
│ │ ├── dbus_common.h
│ │ └── dbus_common_i.h
│ ├── wpa_gui-qt4
│ │ ├── lang
│ │ │ └── .gitignore
│ │ ├── .gitignore
│ │ ├── wpa_gui.desktop
│ │ ├── icons.qrc
│ │ ├── icons_png.qrc
│ │ ├── stringquery.h
│ │ ├── icons
│ │ │ └── Makefile
│ │ ├── stringquery.cpp
│ │ ├── wpamsg.h
│ │ ├── addinterface.h
│ │ └── peers.ui
│ ├── wpa_gui
│ │ ├── .gitignore
│ │ ├── setup-mingw-cross-compiling
│ │ ├── main.cpp
│ │ └── wpamsg.h
│ ├── doc
│ │ └── docbook
│ │ │ ├── .gitignore
│ │ │ └── Makefile
│ ├── symbian
│ │ ├── bld.inf
│ │ └── README.symbian
│ ├── examples
│ │ ├── plaintext.conf
│ │ ├── wep.conf
│ │ ├── wpa-psk-tkip.conf
│ │ ├── ieee8021x.conf
│ │ ├── 60_wpa_supplicant
│ │ └── wpa2-eap-ccmp.conf
│ ├── systemd
│ │ ├── wpa_supplicant.service.in
│ │ ├── wpa_supplicant@.service.in
│ │ ├── wpa_supplicant-wired@.service.in
│ │ └── wpa_supplicant-nl80211@.service.in
│ ├── wpas_glue.h
│ └── blacklist.h
├── radius_example
│ ├── .gitignore
│ └── Makefile
├── mac80211_hwsim
│ ├── tests
│ │ ├── 0002-vlan
│ │ │ ├── hostapd.vlan
│ │ │ ├── hostapd.accept
│ │ │ ├── hostapd.conf
│ │ │ └── test.txt
│ │ └── 0001-wpa2-psk
│ │ │ ├── test.txt
│ │ │ ├── hostapd.conf
│ │ │ └── wpa_supplicant.conf
│ ├── tools
│ │ └── Makefile
│ ├── hostapd.conf
│ └── wpa_supplicant.conf
├── eap_example
│ ├── .gitignore
│ ├── server-key.pem
│ ├── server.pem
│ └── ca.pem
├── www
│ ├── links.html
│ ├── Makefile
│ ├── wpa_supplicant
│ │ ├── conf
│ │ │ ├── eap-tls.html
│ │ │ ├── eap-peap.html
│ │ │ ├── auth_modes.html
│ │ │ ├── eap.html
│ │ │ ├── configure.css
│ │ │ └── index.html
│ │ └── wpa_gui.html
│ └── releases.html
├── testing
│ ├── run-hostapd
│ ├── run-hostapd-0.4
│ ├── wpa_supplicant-config
│ │ ├── minimal-wpa
│ │ ├── minimal
│ │ ├── freebsd
│ │ ├── arm
│ │ ├── default
│ │ ├── default-0.3
│ │ ├── dyneap
│ │ ├── windows-0.4
│ │ ├── windows2-0.3
│ │ ├── windows2-0.4
│ │ ├── windows-0.3
│ │ ├── gcc-cvs
│ │ ├── windows2
│ │ └── windows
│ ├── run-hostapd-0.3
│ ├── run-wpa_supplicant
│ ├── run-wpa_supplicant-0.4
│ ├── run-wpa_supplicant-0.3
│ ├── hostapd-config
│ │ ├── minimal-0.4
│ │ ├── minimal
│ │ ├── noeap-0.4
│ │ ├── noeap
│ │ ├── full-0.4
│ │ ├── freebsd
│ │ ├── full
│ │ ├── arm-0.4
│ │ ├── gcc-cvs
│ │ ├── arm
│ │ └── x86_64
│ └── compile_wireless_versions
├── doc
│ ├── .gitignore
│ └── Makefile
├── hostapd
│ ├── hostapd.deny
│ ├── hostapd.radius_clients
│ ├── hostapd.accept
│ ├── hostapd.vlan
│ ├── logwatch
│ │ ├── hostapd.conf
│ │ └── README
│ ├── hostapd.sim_db
│ ├── hostapd.wpa_psk
│ ├── eap_register.h
│ ├── dump_state.h
│ ├── config_file.h
│ ├── hlr_auc_gw.milenage_db
│ └── ctrl_iface.h
├── tests
│ ├── .gitignore
│ └── test-x509.c
└── build_nsis.sh
├── driver
├── svn_info
├── support
│ ├── release
│ │ └── configs
│ │ │ ├── driver.complist
│ │ │ ├── DONGLE.Gen3.config
│ │ │ ├── DECA.Gen3.config
│ │ │ ├── FPGA.Gen35.config
│ │ │ ├── dut.complist
│ │ │ ├── ugw5.1-arx188.config
│ │ │ ├── ugw5.1-grx168.config
│ │ │ ├── ugw5.1-gw188.config
│ │ │ ├── ugw5.1-vrx288.config
│ │ │ ├── mttools.complist
│ │ │ ├── ugw5.1-grx288-nand.config
│ │ │ ├── ugw5.1-vrx288-nand.config
│ │ │ ├── hlprtools.complist
│ │ │ ├── rtlogger.complist
│ │ │ ├── PC.Gen3.config
│ │ │ ├── STAR.Gen3.config
│ │ │ ├── VB300.Gen3.config
│ │ │ ├── AMCC405EX.Gen3.config
│ │ │ ├── wls.complist
│ │ │ ├── STAR.NoDSPAD.Gen3.config
│ │ │ ├── all.complist
│ │ │ └── all.stable.complist
│ ├── ugw5.1_current_tag.cfg
│ ├── ugw5.1-gw188.env
│ ├── ugw5.1-arx188.env
│ ├── ugw5.1-vrx288-nand.env
│ ├── ugw5.1-grx168.env
│ ├── ugw5.1-vrx288.env
│ ├── ugw5.1-grx288-nand.env
│ ├── x86-linux26.env
│ ├── bewan.env
│ ├── vb300-linux26.env
│ ├── ppc405-linux26.env
│ ├── dongle-linux26.env
│ └── deca-linux26.env
├── tools
│ ├── rtlogger
│ │ ├── logserver
│ │ │ ├── Makefile.am
│ │ │ └── linux
│ │ │ │ ├── proto_lg.h
│ │ │ │ ├── compat.h
│ │ │ │ ├── logserver.h
│ │ │ │ ├── app_toolchain_info
│ │ │ │ ├── db.h
│ │ │ │ ├── net.h
│ │ │ │ ├── proto_drv.h
│ │ │ │ └── Makefile.am
│ │ ├── prebuilt
│ │ │ └── Makefile.am
│ │ ├── shared
│ │ │ ├── Makefile.am
│ │ │ ├── logmacro_database.c
│ │ │ └── logsrv_protocol.h
│ │ ├── Makefile.am
│ │ └── logcnv
│ │ │ └── Makefile.am
│ ├── shared
│ │ ├── 3rd_party
│ │ │ ├── Makefile.am
│ │ │ └── iniparser
│ │ │ │ ├── README
│ │ │ │ └── Makefile.am
│ │ ├── linux
│ │ │ ├── mtlk_assert.c
│ │ │ ├── mtlksighandler.h
│ │ │ ├── log_osdep.c
│ │ │ ├── LinException.h
│ │ │ ├── mtlkpack.h
│ │ │ └── mtlkidefs.h
│ │ ├── Makefile.am
│ │ ├── Debug.h
│ │ ├── ParamInfo.cpp
│ │ ├── CmdLine.h
│ │ └── ParamInfo.h
│ ├── BCLSockServer
│ │ ├── BCL
│ │ │ ├── mt_bcl_wrap.h
│ │ │ ├── mt_bcl_defs.h
│ │ │ ├── mt_bcl_funcs.h
│ │ │ ├── mt_types.h
│ │ │ └── mt_chacc.h
│ │ └── Makefile.am
│ ├── mttools
│ │ ├── drvhlpr
│ │ │ ├── irbponger.h
│ │ │ ├── arphelper.h
│ │ │ ├── wpsctrl.h
│ │ │ ├── asel.h
│ │ │ ├── drvhlpr.h
│ │ │ └── ledsctrl.h
│ │ ├── Makefile.am
│ │ ├── shared
│ │ │ ├── compat.h
│ │ │ ├── mtlk_cli_defs.h
│ │ │ ├── driver_api.h
│ │ │ └── Makefile.am
│ │ ├── mtlk_cli
│ │ │ └── Makefile.am
│ │ └── mtlk_cli_dbg_srv
│ │ │ └── Makefile.am
│ ├── mtlkroot
│ │ ├── linux
│ │ │ ├── mtlk_assert.c
│ │ │ ├── drvver.h
│ │ │ └── nlmsgs.h
│ │ └── Makefile.am
│ └── kconfig
│ │ └── kconfig_load.c
├── wireless
│ ├── driver
│ │ ├── shared
│ │ │ ├── frame.c
│ │ │ ├── coex20_40.h
│ │ │ ├── MT_mac_host_adapt.h
│ │ │ ├── mtlkmsg.h
│ │ │ ├── mtlk_snprintf.h
│ │ │ ├── mtlk_mmb_msg.h
│ │ │ ├── mtlk_card_types.h
│ │ │ ├── mtlk_gpl_helper.h
│ │ │ ├── mtlk_wssd.h
│ │ │ ├── mtlk_pcie_ccr_decls.h
│ │ │ ├── mtlk_pcig3_ccr_decls.h
│ │ │ ├── drvver.h
│ │ │ ├── bitrate.h
│ │ │ ├── mtlk_ccr_decls.h
│ │ │ └── mtlk_clipboard.h
│ │ ├── linux
│ │ │ ├── mtlk_df_user.c
│ │ │ ├── rod_osdep.h
│ │ │ ├── mtlk_sq_osdep.h
│ │ │ ├── utils.h
│ │ │ ├── osal_atomic_decls.h
│ │ │ ├── mtlk_pci_drv_defs.h
│ │ │ ├── osal_atomic64_decls.h
│ │ │ ├── mtlk_ahb_drv_defs.h
│ │ │ ├── progmodel.h
│ │ │ ├── mib_osdep.h
│ │ │ ├── mtlkdfdefs.h
│ │ │ ├── osal_atomic_defs.h
│ │ │ ├── mtlk_pci_drv_decls.h
│ │ │ ├── mtlkpack.h
│ │ │ └── wpa.h
│ │ └── rflib
│ │ │ └── shared
│ │ │ ├── coex20_40.c
│ │ │ ├── mtlk_aocs_propr.h
│ │ │ ├── mtlk_scan_propr.h
│ │ │ ├── rdlim.h
│ │ │ └── mtlk_gpl_helper.c
│ ├── shared
│ │ ├── pattern.h
│ │ ├── mtlkwlanirbdefs.h
│ │ ├── mtlkhash_ieee_addr.h
│ │ ├── mtlk_assert.h
│ │ ├── mtlkhash_ieee_addr.c
│ │ ├── mtlkstartup.c
│ │ ├── mtlkerr.c
│ │ ├── mtlkmetrics.h
│ │ └── mtlk_algorithms.h
│ └── Makefile.am
├── branch_version.m4.in
├── mtlk_version
├── branch_version.m4
├── config.h.in
└── Makefile.am.module_helper
├── lq_scripts
├── drvhlpr_w0.conf
├── lq_drvhlpr.sh
└── hostapd_w0_default.conf
└── .gitignore
/hostap08/src/tls/.gitignore:
--------------------------------------------------------------------------------
1 | libtls.a
2 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/.gitignore:
--------------------------------------------------------------------------------
1 | libcrypto.a
2 |
--------------------------------------------------------------------------------
/hostap08/src/radius/.gitignore:
--------------------------------------------------------------------------------
1 | libradius.a
2 |
--------------------------------------------------------------------------------
/hostap08/src/utils/.gitignore:
--------------------------------------------------------------------------------
1 | libutils.a
2 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/.gitignore:
--------------------------------------------------------------------------------
1 | *.service
2 |
--------------------------------------------------------------------------------
/driver/svn_info:
--------------------------------------------------------------------------------
1 | 12953.branches/REL_3.2.1 5294
2 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/dbus/.gitignore:
--------------------------------------------------------------------------------
1 | libwpadbus.a
2 |
--------------------------------------------------------------------------------
/hostap08/radius_example/.gitignore:
--------------------------------------------------------------------------------
1 | *.d
2 | radius_example
3 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/lang/.gitignore:
--------------------------------------------------------------------------------
1 | *.qm
2 |
--------------------------------------------------------------------------------
/driver/support/release/configs/driver.complist:
--------------------------------------------------------------------------------
1 | CONFIG_LIN_DRV=y
2 |
--------------------------------------------------------------------------------
/hostap08/mac80211_hwsim/tests/0002-vlan/hostapd.vlan:
--------------------------------------------------------------------------------
1 | * vlan#
2 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui/.gitignore:
--------------------------------------------------------------------------------
1 | .moc
2 | .obj
3 | .ui
4 |
--------------------------------------------------------------------------------
/driver/support/ugw5.1_current_tag.cfg:
--------------------------------------------------------------------------------
1 | built_ugw_5.1.1_20110917T040609
2 |
--------------------------------------------------------------------------------
/driver/support/release/configs/DONGLE.Gen3.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_DONGLE=y
2 |
--------------------------------------------------------------------------------
/hostap08/src/drivers/.gitignore:
--------------------------------------------------------------------------------
1 | build.wpa_supplicant
2 | build.hostapd
3 |
--------------------------------------------------------------------------------
/driver/support/release/configs/DECA.Gen3.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_AMCC405_DECA=y
2 |
--------------------------------------------------------------------------------
/driver/support/release/configs/FPGA.Gen35.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_GEN35FPGA=y
2 |
--------------------------------------------------------------------------------
/hostap08/eap_example/.gitignore:
--------------------------------------------------------------------------------
1 | *.d
2 | eap_example
3 | libeap.so
4 | libeap.a
5 |
--------------------------------------------------------------------------------
/driver/support/release/configs/dut.complist:
--------------------------------------------------------------------------------
1 | CONFIG_LIN_DRV=n
2 | CONFIG_LIN_DUT=y
3 |
--------------------------------------------------------------------------------
/driver/support/release/configs/ugw5.1-arx188.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_UGW51_ARX188=y
2 |
--------------------------------------------------------------------------------
/driver/support/release/configs/ugw5.1-grx168.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_UGW51_GRX168=y
2 |
--------------------------------------------------------------------------------
/driver/support/release/configs/ugw5.1-gw188.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_UGW51_GW188=y
2 |
--------------------------------------------------------------------------------
/driver/support/release/configs/ugw5.1-vrx288.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_UGW51_VRX288=y
2 |
--------------------------------------------------------------------------------
/driver/support/release/configs/mttools.complist:
--------------------------------------------------------------------------------
1 | CONFIG_LIN_DRV=n
2 | CONFIG_LIN_MTTOOLS=y
3 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/.gitignore:
--------------------------------------------------------------------------------
1 | .moc
2 | .obj
3 | .ui
4 | qrc_icons.cpp
5 |
--------------------------------------------------------------------------------
/driver/support/release/configs/ugw5.1-grx288-nand.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_UGW51_GRX288_NAND=y
2 |
--------------------------------------------------------------------------------
/driver/support/release/configs/ugw5.1-vrx288-nand.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_UGW51_VRX288_NAND=y
2 |
--------------------------------------------------------------------------------
/driver/support/release/configs/hlprtools.complist:
--------------------------------------------------------------------------------
1 | CONFIG_LIN_DRV=n
2 | CONFIG_LIN_HELPER_TOOLS=y
3 |
--------------------------------------------------------------------------------
/driver/support/release/configs/rtlogger.complist:
--------------------------------------------------------------------------------
1 | CONFIG_LIN_DRV=n
2 | CONFIG_LIN_RTLOG_COMPONENTS=y
3 |
--------------------------------------------------------------------------------
/hostap08/mac80211_hwsim/tests/0002-vlan/hostapd.accept:
--------------------------------------------------------------------------------
1 | 02:00:00:00:01:00 1
2 | 02:00:00:00:02:00 2
3 |
--------------------------------------------------------------------------------
/hostap08/www/links.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vittorio88/WAVE300/HEAD/hostap08/www/links.html
--------------------------------------------------------------------------------
/driver/support/release/configs/PC.Gen3.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_PC_KERN26=y
2 | CONFIG_LINDRV_HW_PCIG3=y
3 |
--------------------------------------------------------------------------------
/driver/support/release/configs/STAR.Gen3.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_STAR4MB=y
2 | CONFIG_LINDRV_HW_PCIG3=y
3 |
--------------------------------------------------------------------------------
/driver/support/release/configs/VB300.Gen3.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_VB300=y
2 | CONFIG_LINDRV_HW_PCIG3=y
3 |
--------------------------------------------------------------------------------
/driver/support/release/configs/AMCC405EX.Gen3.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_AMCC405EX=y
2 | CONFIG_LINDRV_HW_PCIG3=y
3 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/doc/docbook/.gitignore:
--------------------------------------------------------------------------------
1 | manpage.links
2 | manpage.refs
3 | *.8
4 | *.5
5 | *.html
6 | *.pdf
7 |
--------------------------------------------------------------------------------
/driver/support/release/configs/wls.complist:
--------------------------------------------------------------------------------
1 | CONFIG_LIN_DRV=y
2 | CONFIG_LIN_MTTOOLS=y
3 | CONFIG_LIN_RTLOG_COMPONENTS=y
4 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/logserver/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 8833 2010-05-12 08:43:31Z dmytrof $
2 |
3 | SUBDIRS = linux
4 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/frame.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vittorio88/WAVE300/HEAD/driver/wireless/driver/shared/frame.c
--------------------------------------------------------------------------------
/driver/tools/shared/3rd_party/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 8833 2010-05-12 08:43:31Z dmytrof $
2 |
3 | SUBDIRS = iniparser
4 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/coex20_40.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vittorio88/WAVE300/HEAD/driver/wireless/driver/shared/coex20_40.h
--------------------------------------------------------------------------------
/driver/branch_version.m4.in:
--------------------------------------------------------------------------------
1 | dnl Definition of the branch version for configure.ac
2 | m4_define([MTLK_BRANCH_VERSION], [@BRANCH_VERSION@])
3 |
--------------------------------------------------------------------------------
/driver/tools/BCLSockServer/BCL/mt_bcl_wrap.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vittorio88/WAVE300/HEAD/driver/tools/BCLSockServer/BCL/mt_bcl_wrap.h
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/mtlk_df_user.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vittorio88/WAVE300/HEAD/driver/wireless/driver/linux/mtlk_df_user.c
--------------------------------------------------------------------------------
/driver/support/release/configs/STAR.NoDSPAD.Gen3.config:
--------------------------------------------------------------------------------
1 | CONFIG_PLATFORM_STAR4MB=y
2 | CONFIG_STAR4MB_NO_DSPAD=y
3 | CONFIG_LINDRV_HW_PCIG3=y
4 |
--------------------------------------------------------------------------------
/driver/wireless/driver/rflib/shared/coex20_40.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vittorio88/WAVE300/HEAD/driver/wireless/driver/rflib/shared/coex20_40.c
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/symbian/bld.inf:
--------------------------------------------------------------------------------
1 | PRJ_PLATFORMS
2 | WINSCW GCCE
3 |
4 | PRJ_EXPORTS
5 |
6 | PRJ_MMPFILES
7 |
8 | wpa_supplicant.mmp
9 |
--------------------------------------------------------------------------------
/hostap08/src/ap/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.d
6 |
7 | install:
8 | @echo Nothing to be made.
9 |
--------------------------------------------------------------------------------
/hostap08/src/wps/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.d
6 |
7 | install:
8 | @echo Nothing to be made.
9 |
--------------------------------------------------------------------------------
/hostap08/src/common/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.d
6 |
7 | install:
8 | @echo Nothing to be made.
9 |
--------------------------------------------------------------------------------
/hostap08/src/l2_packet/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.d
6 |
7 | install:
8 | @echo Nothing to be made.
9 |
--------------------------------------------------------------------------------
/hostap08/src/rsn_supp/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.d
6 |
7 | install:
8 | @echo Nothing to be made.
9 |
--------------------------------------------------------------------------------
/hostap08/testing/run-hostapd:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | for i in minimal noeap full freebsd x86_64 gcc-cvs arm; do
4 | ./compile hostapd-config/$i $1
5 | done
6 |
--------------------------------------------------------------------------------
/driver/tools/shared/3rd_party/iniparser/README:
--------------------------------------------------------------------------------
1 | This folder contains files from src folder of iniparser3.0b (http://ndevilla.free.fr/iniparser/) package.
2 |
3 |
--------------------------------------------------------------------------------
/hostap08/src/eap_common/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.d
6 |
7 | install:
8 | @echo Nothing to be made.
9 |
--------------------------------------------------------------------------------
/hostap08/src/eap_server/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.d
6 |
7 | install:
8 | @echo Nothing to be made.
9 |
--------------------------------------------------------------------------------
/hostap08/src/eapol_auth/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.d
6 |
7 | install:
8 | @echo Nothing to be made.
9 |
--------------------------------------------------------------------------------
/hostap08/src/eapol_supp/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.d
6 |
7 | install:
8 | @echo Nothing to be made.
9 |
--------------------------------------------------------------------------------
/hostap08/doc/.gitignore:
--------------------------------------------------------------------------------
1 | doxygen.warnings
2 | hostapd.eps
3 | hostapd.png
4 | html
5 | latex
6 | wpa_supplicant.eps
7 | wpa_supplicant.png
8 | wpa_supplicant-devel.pdf
9 |
--------------------------------------------------------------------------------
/driver/support/release/configs/all.complist:
--------------------------------------------------------------------------------
1 | CONFIG_LIN_DRV=y
2 | CONFIG_LIN_MTTOOLS=y
3 | CONFIG_LIN_RTLOG_COMPONENTS=y
4 | CONFIG_LIN_DUT=y
5 | CONFIG_LIN_HELPER_TOOLS=y
6 |
--------------------------------------------------------------------------------
/hostap08/testing/run-hostapd-0.4:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | for i in minimal-0.4 noeap-0.4 full-0.4 freebsd x86_64 gcc-cvs arm-0.4; do
4 | ./compile hostapd-config/$i $1
5 | done
6 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/minimal-wpa:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CONFIG_DRIVER_TEST=y
4 | CONFIG_NO_STDOUT_DEBUG=y
5 | CONFIG_NO_AES_EXTRAS=y
6 |
7 | CFLAGS += -Werror
8 |
--------------------------------------------------------------------------------
/driver/wireless/shared/pattern.h:
--------------------------------------------------------------------------------
1 | #ifndef _MTLK_PATTERN_H_
2 | #define _MTLK_PATTERN_H_
3 |
4 | BOOL __MTLK_IFUNC mtlk_pattern_match(char *pattern, char *string);
5 |
6 | #endif
7 |
--------------------------------------------------------------------------------
/hostap08/testing/run-hostapd-0.3:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # freebsd gcc-cvs
4 | for i in minimal-0.4 noeap-0.4 full-0.4 x86_64 arm-0.4; do
5 | ./compile hostapd-config/$i $1
6 | done
7 |
--------------------------------------------------------------------------------
/driver/support/ugw5.1-gw188.env:
--------------------------------------------------------------------------------
1 | UGW_PLATFORM_NAME=gw188_gw_he_dualwlan_adsl
2 | UGW_TAG=`cat ${srcdir}/support/ugw5.1_current_tag.cfg`
3 |
4 | source ${srcdir}/support/ugw.env.common
5 |
6 |
--------------------------------------------------------------------------------
/hostap08/hostapd/hostapd.deny:
--------------------------------------------------------------------------------
1 | # List of MAC addresses that are not allowed to authenticate (IEEE 802.11)
2 | # with the AP.
3 | 00:20:30:40:50:60
4 | 00:ab:cd:ef:12:34
5 | 00:00:30:40:50:60
6 |
--------------------------------------------------------------------------------
/hostap08/hostapd/hostapd.radius_clients:
--------------------------------------------------------------------------------
1 | # RADIUS client configuration for the RADIUS server
2 | 10.1.2.3 secret passphrase
3 | 192.168.1.0/24 another very secret passphrase
4 | 0.0.0.0/0 radius
5 |
--------------------------------------------------------------------------------
/hostap08/testing/run-wpa_supplicant:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | for i in minimal minimal-wpa default windows windows2 freebsd x86_64 gcc-cvs arm; do
4 | ./compile wpa_supplicant-config/$i $1
5 | done
6 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/minimal:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CONFIG_DRIVER_TEST=y
4 | CONFIG_NO_STDOUT_DEBUG=y
5 | CONFIG_NO_WPA=y
6 | CONFIG_NO_AES_EXTRAS=y
7 |
8 | CFLAGS += -Werror
9 |
--------------------------------------------------------------------------------
/hostap08/mac80211_hwsim/tools/Makefile:
--------------------------------------------------------------------------------
1 | all: hwsim_test
2 |
3 | ifndef CC
4 | CC=gcc
5 | endif
6 |
7 | ifndef CFLAGS
8 | CFLAGS = -O2 -Wall -g
9 | endif
10 |
11 | hwsim_test: hwsim_test.o
12 |
--------------------------------------------------------------------------------
/hostap08/testing/run-wpa_supplicant-0.4:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | for i in minimal minimal-wpa default windows-0.4 windows2-0.4 freebsd x86_64 gcc-cvs arm; do
4 | ./compile wpa_supplicant-config/$i $1
5 | done
6 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in:
--------------------------------------------------------------------------------
1 | [D-BUS Service]
2 | Name=fi.w1.wpa_supplicant1
3 | Exec=@BINDIR@/wpa_supplicant -u
4 | User=root
5 | SystemdService=wpa_supplicant.service
6 |
--------------------------------------------------------------------------------
/hostap08/src/drivers/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.d
6 | rm -f build.wpa_supplicant build.hostapd
7 |
8 | install:
9 | @echo Nothing to be made.
10 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/examples/plaintext.conf:
--------------------------------------------------------------------------------
1 | # Plaintext (no encryption) network
2 |
3 | ctrl_interface=/var/run/wpa_supplicant
4 |
5 | network={
6 | ssid="example open network"
7 | key_mgmt=NONE
8 | }
9 |
--------------------------------------------------------------------------------
/driver/support/ugw5.1-arx188.env:
--------------------------------------------------------------------------------
1 | UGW_PLATFORM_NAME=arx188_gw_he_adsl
2 | UGW_TAG=`cat ${srcdir}/support/ugw5.1_current_tag.cfg`
3 |
4 | LDFLAGS="-lnl $LDFLAGS"
5 |
6 | source ${srcdir}/support/ugw.env.common
7 |
8 |
--------------------------------------------------------------------------------
/hostap08/src/p2p/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | for d in $(SUBDIRS); do make -C $$d clean; done
6 | rm -f *~ *.o *.d
7 |
8 | install:
9 | @echo Nothing to be made.
10 |
--------------------------------------------------------------------------------
/hostap08/testing/run-wpa_supplicant-0.3:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # freebsd gcc-cvs
4 | for i in minimal minimal-wpa default-0.3 windows-0.3 windows2-0.3 x86_64 arm; do
5 | ./compile wpa_supplicant-config/$i $1
6 | done
7 |
--------------------------------------------------------------------------------
/hostap08/tests/.gitignore:
--------------------------------------------------------------------------------
1 | test-aes
2 | test-asn1
3 | test-base64
4 | test-list
5 | test-md4
6 | test-md5
7 | test-milenage
8 | test-ms_funcs
9 | test-sha1
10 | test-sha256
11 | test-x509
12 | test-x509v3
13 |
--------------------------------------------------------------------------------
/driver/support/ugw5.1-vrx288-nand.env:
--------------------------------------------------------------------------------
1 | UGW_PLATFORM_NAME=vrx288_gw_he_vdsl_nand
2 | UGW_TAG=`cat ${srcdir}/support/ugw5.1_current_tag.cfg`
3 |
4 | LDFLAGS="$LDFLAGS"
5 |
6 | source ${srcdir}/support/ugw.env.common
7 |
8 |
--------------------------------------------------------------------------------
/driver/support/ugw5.1-grx168.env:
--------------------------------------------------------------------------------
1 | UGW_PLATFORM_NAME=grx168_rt_he_video_bridge
2 | UGW_TAG=`cat ${srcdir}/support/ugw5.1_current_tag.cfg`
3 |
4 | LDFLAGS="-lnl $LDFLAGS"
5 |
6 | source ${srcdir}/support/ugw.env.common
7 |
8 |
--------------------------------------------------------------------------------
/driver/support/ugw5.1-vrx288.env:
--------------------------------------------------------------------------------
1 | UGW_PLATFORM_NAME=vrx288_gw_he_vdsl_sample
2 | UGW_TAG=`cat ${srcdir}/support/ugw5.1_current_tag.cfg`
3 |
4 | LDFLAGS="-lnl $LDFLAGS"
5 |
6 | source ${srcdir}/support/ugw.env.common
7 |
8 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in:
--------------------------------------------------------------------------------
1 | [D-BUS Service]
2 | Name=fi.epitest.hostap.WPASupplicant
3 | Exec=@BINDIR@/wpa_supplicant -u
4 | User=root
5 | SystemdService=wpa_supplicant.service
6 |
--------------------------------------------------------------------------------
/hostap08/mac80211_hwsim/hostapd.conf:
--------------------------------------------------------------------------------
1 | interface=wlan0
2 | driver=nl80211
3 |
4 | hw_mode=g
5 | channel=1
6 | ssid=mac80211 test
7 |
8 | wpa=2
9 | wpa_key_mgmt=WPA-PSK
10 | wpa_pairwise=CCMP
11 | wpa_passphrase=12345678
12 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/prebuilt/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 11352 2011-07-06 12:04:12Z fleytman $
2 | include $(top_srcdir)/Makefile.am.common
3 |
4 | dist_rtlogger_DATA = logconv.exe mtlklog.dll nc.exe run-wireshark-logger.cmd
5 |
--------------------------------------------------------------------------------
/hostap08/mac80211_hwsim/tests/0001-wpa2-psk/test.txt:
--------------------------------------------------------------------------------
1 | # WPA2-Personal (PSK) with CCMP, AP and single client
2 |
3 | modprobe mac80211_hwsim
4 |
5 | hostapd hostapd.conf
6 |
7 | wpa_supplicant -Dwext -iwlan1 -c wpa_supplicant.conf
8 |
--------------------------------------------------------------------------------
/driver/support/ugw5.1-grx288-nand.env:
--------------------------------------------------------------------------------
1 | UGW_PLATFORM_NAME=grx288_rt_he_dualwlan_nand_ethwan
2 | UGW_TAG=`cat ${srcdir}/support/ugw5.1_current_tag.cfg`
3 |
4 | LDFLAGS="-lnl $LDFLAGS"
5 |
6 | source ${srcdir}/support/ugw.env.common
7 |
8 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/shared/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 10546 2011-02-08 14:21:07Z dmytrof $
2 |
3 | EXTRA_DIST = formats.h log.h logdefs.h \
4 | logmacro_database.c logmacro_mixins.h \
5 | logsrv_protocol.h
6 |
--------------------------------------------------------------------------------
/hostap08/mac80211_hwsim/wpa_supplicant.conf:
--------------------------------------------------------------------------------
1 | ctrl_interface=/var/run/wpa_supplicant
2 |
3 | network={
4 | ssid="mac80211 test"
5 | psk="12345678"
6 | key_mgmt=WPA-PSK
7 | proto=WPA2
8 | pairwise=CCMP
9 | group=CCMP
10 | }
11 |
--------------------------------------------------------------------------------
/hostap08/mac80211_hwsim/tests/0001-wpa2-psk/hostapd.conf:
--------------------------------------------------------------------------------
1 | interface=wlan0
2 | driver=nl80211
3 |
4 | hw_mode=g
5 | channel=1
6 | ssid=mac80211 test
7 |
8 | wpa=2
9 | wpa_key_mgmt=WPA-PSK
10 | wpa_pairwise=CCMP
11 | wpa_passphrase=12345678
12 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/minimal-0.4:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CONFIG_DRIVER_HOSTAP=y
4 | CONFIG_DRIVER_WIRED=y
5 | CONFIG_DRIVER_MADWIFI=y
6 | CFLAGS += -I/home/jm/work/madwifi-BSD
7 | CONFIG_DRIVER_PRISM54=y
8 |
9 | CFLAGS += -Werror
10 |
--------------------------------------------------------------------------------
/driver/tools/mttools/drvhlpr/irbponger.h:
--------------------------------------------------------------------------------
1 | #ifndef __IRB_PONGER_H__
2 | #define __IRB_PONGER_H__
3 |
4 | #include "mtlkcontainer.h"
5 |
6 | extern const mtlk_component_api_t irb_ponger_component_api;
7 |
8 | #endif /* __IRB_PONGER_H__ */
9 |
10 |
11 |
--------------------------------------------------------------------------------
/hostap08/mac80211_hwsim/tests/0001-wpa2-psk/wpa_supplicant.conf:
--------------------------------------------------------------------------------
1 | ctrl_interface=/var/run/wpa_supplicant
2 |
3 | network={
4 | ssid="mac80211 test"
5 | psk="12345678"
6 | key_mgmt=WPA-PSK
7 | proto=WPA2
8 | pairwise=CCMP
9 | group=CCMP
10 | }
11 |
--------------------------------------------------------------------------------
/driver/tools/mttools/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 10708 2011-02-24 16:53:13Z dmytrof $
2 |
3 | if BUILD_MTTOOLS
4 | SUBDIRS = shared drvhlpr mtdump mtlk_cli mtlk_cli_dbg_srv
5 | else
6 | SUBDIRS =
7 | endif
8 |
9 | DIST_SUBDIRS = $(SUBDIRS)
10 |
11 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/examples/wep.conf:
--------------------------------------------------------------------------------
1 | # Static WEP keys
2 |
3 | ctrl_interface=/var/run/wpa_supplicant
4 |
5 | network={
6 | ssid="example wep network"
7 | key_mgmt=NONE
8 | wep_key0="abcde"
9 | wep_key1=0102030405
10 | wep_tx_keyidx=0
11 | }
12 |
--------------------------------------------------------------------------------
/driver/tools/mttools/shared/compat.h:
--------------------------------------------------------------------------------
1 | #ifndef __COMPAT_H__
2 | #define __COMPAT_H__
3 |
4 | #define __PACKED __attribute__((aligned(1), packed))
5 |
6 | #ifndef INVALID_SOCKET
7 | #define INVALID_SOCKET -1
8 | #endif
9 |
10 | #endif // !__COMPAT_H__
11 |
12 |
--------------------------------------------------------------------------------
/hostap08/mac80211_hwsim/tests/0002-vlan/hostapd.conf:
--------------------------------------------------------------------------------
1 | interface=wlan0
2 | driver=nl80211
3 |
4 | hw_mode=g
5 | channel=1
6 | ssid=mac80211 test
7 |
8 | dynamic_vlan=2
9 | vlan_file=hostapd.vlan
10 |
11 | macaddr_acl=0
12 | accept_mac_file=hostapd.accept
13 |
--------------------------------------------------------------------------------
/driver/support/release/configs/all.stable.complist:
--------------------------------------------------------------------------------
1 | #This is a list of all components in stable state
2 | #i.e. buildable on all platforms
3 | #Mainly, to be used by buildbot
4 | CONFIG_LIN_DRV=y
5 | CONFIG_LIN_MTTOOLS=y
6 | CONFIG_LIN_RTLOG_COMPONENTS=y
7 | CONFIG_LIN_DUT=y
8 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/minimal:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 | #MAKE2:make hlr_auc_gw
3 |
4 | CONFIG_DRIVER_HOSTAP=y
5 | CONFIG_DRIVER_WIRED=y
6 | CONFIG_DRIVER_MADWIFI=y
7 | CFLAGS += -I/home/jm/work/madwifi-BSD
8 | CONFIG_DRIVER_PRISM54=y
9 |
10 | CFLAGS += -Werror
11 |
--------------------------------------------------------------------------------
/hostap08/src/common/version.h:
--------------------------------------------------------------------------------
1 | #ifndef VERSION_H
2 | #define VERSION_H
3 |
4 | #ifndef VERSION_STR_POSTFIX
5 | #define VERSION_STR_POSTFIX ""
6 | #endif /* VERSION_STR_POSTFIX */
7 |
8 | #define VERSION_STR "0.8.x" VERSION_STR_POSTFIX
9 |
10 | #endif /* VERSION_H */
11 |
--------------------------------------------------------------------------------
/driver/tools/shared/linux/mtlk_assert.c:
--------------------------------------------------------------------------------
1 | #include "mtlkinc.h"
2 | #include
3 |
4 | void __MTLK_IFUNC
5 | __mtlk_assert (mtlk_slid_t slid)
6 | {
7 | printf("Assertion failed " MTLK_SLID_FMT "\n",
8 | MTLK_SLID_ARGS(slid));
9 | assert(0);
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/examples/wpa-psk-tkip.conf:
--------------------------------------------------------------------------------
1 | # WPA-PSK/TKIP
2 |
3 | ctrl_interface=/var/run/wpa_supplicant
4 |
5 | network={
6 | ssid="example wpa-psk network"
7 | key_mgmt=WPA-PSK
8 | proto=WPA
9 | pairwise=TKIP
10 | group=TKIP
11 | psk="secret passphrase"
12 | }
13 |
--------------------------------------------------------------------------------
/hostap08/www/Makefile:
--------------------------------------------------------------------------------
1 | all: versions.png
2 |
3 | %.png: %.fig
4 | fig2dev -Lpng -s5.1 -S4 -m2 $< | \
5 | pngtopnm | \
6 | pnmscale -xscale 0.5 -yscale 0.5 | \
7 | pnmtopng > $@
8 |
9 | %.fig: %.dot
10 | dot $< -Tfig -o $@
11 |
12 | clean:
13 | rm versions.png versions.fig
14 |
--------------------------------------------------------------------------------
/hostap08/src/eap_peer/Makefile:
--------------------------------------------------------------------------------
1 | all:
2 | @echo Nothing to be made.
3 |
4 | clean:
5 | rm -f *~ *.o *.so *.d
6 |
7 | install:
8 | if ls *.so >/dev/null 2>&1; then \
9 | install -d $(DESTDIR)$(LIBDIR)/wpa_supplicant && \
10 | cp *.so $(DESTDIR)$(LIBDIR)/wpa_supplicant \
11 | ; fi
12 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/noeap-0.4:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CONFIG_DRIVER_HOSTAP=y
4 | CONFIG_DRIVER_WIRED=y
5 | CONFIG_DRIVER_MADWIFI=y
6 | CFLAGS += -I/home/jm/work/madwifi-BSD
7 | CONFIG_DRIVER_PRISM54=y
8 |
9 | CONFIG_IAPP=y
10 | CONFIG_RSN_PREAUTH=y
11 |
12 | CFLAGS += -Werror
13 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/MT_mac_host_adapt.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __MT_MAC_HOST_ADAPT
3 | #define __MT_MAC_HOST_ADAPT
4 |
5 | typedef uint32 mtlk_void_ptr;
6 | typedef uint32 mtlk_uint8_ptr;
7 | typedef uint32 mtlk_umimsg_ptr;
8 | typedef uint32 mtlk_umidata_ptr;
9 |
10 | #endif /* */
11 |
12 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/mtlkmsg.h:
--------------------------------------------------------------------------------
1 | #ifndef _MTLKMSG_H_
2 | #define _MTLKMSG_H_
3 |
4 | #if defined (MTCFG_BUS_PCI_PCIE) || defined (MTCFG_BUS_AHB)
5 | #include "mtlk_mmb_msg.h"
6 | #else
7 | #error Unknown HW! Can not include suitable msg.h!
8 | #endif
9 |
10 | #endif /* ! _MTLKMSG_H_ */
11 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/wpa_gui.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Version=1.0
3 | Name=wpa_gui
4 | Comment=Graphical user interface for wpa_supplicant
5 | Exec=wpa_gui
6 | Icon=wpa_gui
7 | GenericName=wpa_supplicant user interface
8 | Terminal=false
9 | Type=Application
10 | Categories=Qt;Network;
11 |
--------------------------------------------------------------------------------
/driver/mtlk_version:
--------------------------------------------------------------------------------
1 | # $Id: mtlk_version 6079 2009-02-12 16:22:05Z dmytrof $
2 | # Code version file for Metalink driver release system
3 | # Branch version is marked by the curly braces
4 | # Major number is marked by the round braces
5 | # Minor number is marked by the square braces
6 |
7 | MTLK_VER={3.2.1}.(1).[48]
8 |
--------------------------------------------------------------------------------
/driver/tools/mtlkroot/linux/mtlk_assert.c:
--------------------------------------------------------------------------------
1 | #include "mtlkinc.h"
2 | #include "mtlk_assert.h"
3 |
4 | void __MTLK_IFUNC
5 | __mtlk_assert (mtlk_slid_t slid)
6 | {
7 | printk("Assertion failed " MTLK_SLID_FMT "\n",
8 | MTLK_SLID_ARGS(slid));
9 | BUG();
10 | }
11 |
12 | EXPORT_SYMBOL(__mtlk_assert);
13 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/noeap:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 | #MAKE2:make hlr_auc_gw
3 |
4 | CONFIG_DRIVER_HOSTAP=y
5 | CONFIG_DRIVER_WIRED=y
6 | CONFIG_DRIVER_MADWIFI=y
7 | CFLAGS += -I/home/jm/work/madwifi-BSD
8 | CONFIG_DRIVER_PRISM54=y
9 |
10 | CONFIG_IAPP=y
11 | CONFIG_RSN_PREAUTH=y
12 |
13 | CFLAGS += -Werror
14 |
--------------------------------------------------------------------------------
/driver/tools/mttools/shared/mtlk_cli_defs.h:
--------------------------------------------------------------------------------
1 | #ifndef __MTLK_CLI_DEFS_H__
2 | #define __MTLK_CLI_DEFS_H__
3 |
4 | #define MTLK_CLI_PROTOCOL_EOL "\r\n"
5 | #define MTLK_CLI_PROTOCOL_WORD_DELIM " "
6 |
7 | #define MTLK_CLI_LS_CMD "__cli_internal_ls"
8 |
9 | #endif /* __MTLK_CLI_DEFS_H__ */
10 |
11 |
--------------------------------------------------------------------------------
/hostap08/hostapd/hostapd.accept:
--------------------------------------------------------------------------------
1 | # List of MAC addresses that are allowed to authenticate (IEEE 802.11)
2 | # with the AP. Optional VLAN ID can be assigned for clients based on the
3 | # MAC address if dynamic VLANs (hostapd.conf dynamic_vlan option) are used.
4 | 00:11:22:33:44:55
5 | 00:66:77:88:99:aa
6 | 00:00:22:33:44:55 1
7 |
--------------------------------------------------------------------------------
/hostap08/src/lib.rules:
--------------------------------------------------------------------------------
1 | ifndef CC
2 | CC=gcc
3 | endif
4 |
5 | ifndef CFLAGS
6 | CFLAGS = -MMD -O2 -Wall -g
7 | endif
8 |
9 | CFLAGS += -I.. -I../utils
10 |
11 |
12 | Q=@
13 | E=echo
14 | ifeq ($(V), 1)
15 | Q=
16 | E=true
17 | endif
18 |
19 | %.o: %.c
20 | $(Q)$(CC) -c -o $@ $(CFLAGS) $<
21 | @$(E) " CC " $<
22 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/systemd/wpa_supplicant.service.in:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=WPA supplicant
3 |
4 | [Service]
5 | Type=dbus
6 | BusName=fi.epitest.hostap.WPASupplicant
7 | ExecStart=@BINDIR@/wpa_supplicant -u
8 |
9 | [Install]
10 | WantedBy=network.target
11 | Alias=dbus-fi.epitest.hostap.WPASupplicant.service
12 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 11049 2011-04-24 09:29:12Z dmitryf $
2 | include $(top_srcdir)/Makefile.am.common
3 |
4 | if BUILD_RTLOGGER
5 | SUBDIRS = logserver logcnv shared
6 | else
7 | SUBDIRS = shared
8 | endif
9 |
10 | DIST_SUBDIRS = $(SUBDIRS)
11 |
12 | EXTRA_DIST = logprep/logprep.pl
13 |
14 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/mtlk_snprintf.h:
--------------------------------------------------------------------------------
1 | #ifndef MTLK_SNPRINTF
2 | #define MTLK_SNPRINTF
3 |
4 | int __MTLK_IFUNC mtlk_vsnprintf (char *buffer, size_t buffer_size, const char *format, va_list argv);
5 | int __MTLK_IFUNC mtlk_snprintf (char *buffer, size_t buffer_size, const char *format, ...);
6 |
7 | #endif /* MTLK_SNPRINTF */
8 |
9 |
--------------------------------------------------------------------------------
/lq_scripts/drvhlpr_w0.conf:
--------------------------------------------------------------------------------
1 | Debug_SoftwareWatchdogEnable = 1
2 | network_type = 2
3 | NonProcSecurityMode = 2
4 | interface = wlan0
5 | arp_iface0 = eth0
6 | arp_iface1 = eth1
7 | RFMgmtEnable = 3
8 | RFMgmtRefreshTime = 1000
9 | RFMgmtKeepAliveTimeout = 60
10 | RFMgmtAveragingAlpha = 40
11 | RFMgmtMetMarginThreshold = 1100
12 |
13 |
--------------------------------------------------------------------------------
/driver/branch_version.m4:
--------------------------------------------------------------------------------
1 | dnl WARNING:
2 | dnl WARNING: This file is automatically generated from branch_version.m4.in.
3 | dnl WARNING: Do not edit it, all changes will gone.
4 | dnl WARNING: Edit branch_version.m4.in instead.
5 | dnl WARNING:
6 |
7 | dnl Definition of the branch version for configure.ac
8 | m4_define([MTLK_BRANCH_VERSION], [3.2.1])
9 |
--------------------------------------------------------------------------------
/hostap08/hostapd/hostapd.vlan:
--------------------------------------------------------------------------------
1 | # VLAN ID to network interface mapping
2 | 1 vlan1
3 | 2 vlan2
4 | 3 vlan3
5 | 100 guest
6 | # Optional wildcard entry matching all VLAN IDs. The first # in the interface
7 | # name will be replaced with the VLAN ID. The network interfaces are created
8 | # (and removed) dynamically based on the use.
9 | * vlan#
10 |
--------------------------------------------------------------------------------
/driver/tools/mttools/shared/driver_api.h:
--------------------------------------------------------------------------------
1 | #ifndef __DRIVER_API_H__
2 | #define __DRIVER_API_H__
3 |
4 | #include "compat.h"
5 |
6 | int driver_connected(void);
7 | int driver_setup_connection(const char *itrfname);
8 | int driver_ioctl(int id, char *buf, size_t len);
9 | void driver_close_connection(void);
10 |
11 | #endif // !__DRIVER_API_H__
12 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/shared/logmacro_database.c:
--------------------------------------------------------------------------------
1 | /* $Id: logmacro_database.c 11579 2011-08-29 14:31:05Z nayshtut $ */
2 | #include "mtlkinc.h"
3 | #include "formats.h"
4 | #include "logmacro_mixins.h"
5 |
6 | #define LOG_LOCAL_GID GID_LOG
7 | #define LOG_LOCAL_FID 1
8 |
9 | #ifdef MTCFG_RT_LOGGER_FUNCTIONS
10 | #include "logmacros.c"
11 | #endif
12 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/logserver/linux/proto_lg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007-2008 Metalink Broadband (Israel)
3 | *
4 | * LogGrabber protocol
5 | *
6 | * Written by: Andrey Fidrya
7 | *
8 | */
9 |
10 | #ifndef __PROTO_LG_H__
11 | #define __PROTO_LG_H__
12 |
13 | int lg_process_next_pkt(cqueue_t *pqueue);
14 |
15 | #endif // !__PROTO_LG_H__
16 |
17 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/examples/ieee8021x.conf:
--------------------------------------------------------------------------------
1 | # IEEE 802.1X with dynamic WEP keys using EAP-PEAP/MSCHAPv2
2 |
3 | ctrl_interface=/var/run/wpa_supplicant
4 |
5 | network={
6 | ssid="example 802.1x network"
7 | key_mgmt=IEEE8021X
8 | eap=PEAP
9 | phase2="auth=MSCHAPV2"
10 | identity="user name"
11 | password="password"
12 | ca_cert="/etc/cert/ca.pem"
13 | }
14 |
--------------------------------------------------------------------------------
/driver/tools/mttools/drvhlpr/arphelper.h:
--------------------------------------------------------------------------------
1 | #ifndef __ARP_HELPER_H__
2 | #define __ARP_HELPER_H__
3 |
4 | #include "mtlkcontainer.h"
5 |
6 | extern const mtlk_component_api_t irb_arp_helper_api;
7 |
8 | /* Private API.
9 | * TODO: Must be replaced by ParamDB
10 | */
11 | int arp_helper_register_iface(const char *iface);
12 |
13 | #endif /* __ARP_HELPER_H__ */
14 |
15 |
16 |
--------------------------------------------------------------------------------
/driver/tools/shared/linux/mtlksighandler.h:
--------------------------------------------------------------------------------
1 | #ifndef __MTLK_SIGNAL_HANDLER_H__
2 | #define __MTLK_SIGNAL_HANDLER_H__
3 |
4 | typedef void (__MTLK_IFUNC *mtlk_shandler_clb_f)(mtlk_handle_t usr_ctx, int signo);
5 |
6 | int __MTLK_IFUNC
7 | mtlk_shandler_init(mtlk_shandler_clb_f clb, mtlk_handle_t usr_ctx);
8 | void __MTLK_IFUNC
9 | mtlk_shandler_cleanup(void);
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/icons.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | icons/wpa_gui.svg
4 | icons/ap.svg
5 | icons/laptop.svg
6 | icons/group.svg
7 | icons/invitation.svg
8 |
9 |
10 |
--------------------------------------------------------------------------------
/hostap08/build_nsis.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | if [ -d nsis.in ]; then
4 | /bin/rm -r nsis.in
5 | fi
6 |
7 | unzip -j -d nsis.in $1
8 | VER=`echo $1 | sed "s/.*wpa_supplicant-windows-bin-\(.*\).zip/\1/"`
9 |
10 | cat wpa_supplicant/wpa_supplicant.nsi |
11 | sed "s/@WPAVER@/$VER/g" \
12 | > nsis.in/wpa_supplicant.nsi
13 |
14 | makensis nsis.in/wpa_supplicant.nsi
15 |
16 | /bin/rm -r nsis.in
17 |
--------------------------------------------------------------------------------
/hostap08/hostapd/logwatch/hostapd.conf:
--------------------------------------------------------------------------------
1 | # Logwatch configuration for hostapd
2 | #
3 | # Copyright 2005 Henrik Brix Andersen
4 | # Distributed under the terms of the GNU General Public License v2
5 | # Alternatively, this file may be distributed under the terms of the BSD License
6 |
7 | Title = "hostapd"
8 | LogFile = messages
9 | *OnlyService = hostapd
10 | *RemoveHeaders
11 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/rod_osdep.h:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: rod_osdep.h 9359 2010-07-19 11:12:40Z antonn $
3 | *
4 | * Copyright (c) 2006-2007 Metalink Broadband (Israel)
5 | *
6 | * Written by: Dmitry Fleytman
7 | *
8 | */
9 | #ifndef __ROD_OSDEP_H__
10 | #define __ROD_OSDEP_H__
11 |
12 | #define mtlk_rod_detect_replay_or_sendup mtlk_detect_replay_or_sendup
13 |
14 | #endif /* !__ROD_OSDEP_H__ */
15 |
--------------------------------------------------------------------------------
/hostap08/src/radius/Makefile:
--------------------------------------------------------------------------------
1 | all: libradius.a
2 |
3 | clean:
4 | rm -f *~ *.o *.d libradius.a
5 |
6 | install:
7 | @echo Nothing to be made.
8 |
9 |
10 | include ../lib.rules
11 |
12 | CFLAGS += -DCONFIG_IPV6
13 |
14 | LIB_OBJS= \
15 | radius.o \
16 | radius_client.o \
17 | radius_server.o
18 |
19 | libradius.a: $(LIB_OBJS)
20 | $(AR) crT $@ $?
21 |
22 | -include $(OBJS:%.o=%.d)
23 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/examples/60_wpa_supplicant:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # /etc/pm/sleep.d/60_wpa_supplicant
4 | # Action script to notify wpa_supplicant of pm-action events.
5 |
6 | PATH=/sbin:/usr/sbin:/bin:/usr/bin
7 |
8 | WPACLI=wpa_cli
9 |
10 | case "$1" in
11 | suspend|hibernate)
12 | $WPACLI suspend
13 | ;;
14 | resume|thaw)
15 | $WPACLI resume
16 | ;;
17 | esac
18 |
19 | exit 0
20 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/examples/wpa2-eap-ccmp.conf:
--------------------------------------------------------------------------------
1 | # WPA2-EAP/CCMP using EAP-TLS
2 |
3 | ctrl_interface=/var/run/wpa_supplicant
4 |
5 | network={
6 | ssid="example wpa2-eap network"
7 | key_mgmt=WPA-EAP
8 | proto=WPA2
9 | pairwise=CCMP
10 | group=CCMP
11 | eap=TLS
12 | ca_cert="/etc/cert/ca.pem"
13 | private_key="/etc/cert/user.p12"
14 | private_key_passwd="PKCS#12 passhrase"
15 | }
16 |
--------------------------------------------------------------------------------
/driver/tools/mttools/drvhlpr/wpsctrl.h:
--------------------------------------------------------------------------------
1 | #ifndef __WPS_CTRL_H__
2 | #define __WPS_CTRL_H__
3 |
4 | #include "mtlkcontainer.h"
5 |
6 |
7 | extern const mtlk_component_api_t irb_wps_ctrl_api;
8 |
9 | /* Private API.
10 | */
11 | void wps_ctrl_set_leds_resolution(int val);
12 | int wps_ctrl_set_link_status_path(char* str);
13 | int wps_ctrl_set_wps_script_path(char* str);
14 |
15 | #endif /* __WPS_CTRL_H__ */
16 |
--------------------------------------------------------------------------------
/hostap08/mac80211_hwsim/tests/0002-vlan/test.txt:
--------------------------------------------------------------------------------
1 | # Plaintext connection, two clients, different VLANs
2 |
3 | modprobe mac80211_hwsim radios=3
4 |
5 | hostapd hostapd.conf
6 |
7 | ifconfig wlan1 up
8 | iwconfig wlan1 essid "mac80211 test"
9 |
10 | ifconfig wlan2 up
11 | iwconfig wlan2 essid "mac80211 test"
12 |
13 | # Expected results:
14 | # STA1(wlan1) is bound to vlan1
15 | # STA2(wlan2) is bound to vlan2
16 |
--------------------------------------------------------------------------------
/hostap08/src/Makefile:
--------------------------------------------------------------------------------
1 | SUBDIRS=ap common crypto drivers eapol_auth eapol_supp eap_common eap_peer eap_server l2_packet p2p radius rsn_supp tls utils wps
2 |
3 | all:
4 | for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d; done
5 |
6 | clean:
7 | for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d clean; done
8 | rm -f *~
9 |
10 | install:
11 | for d in $(SUBDIRS); do [ -d $$d ] && $(MAKE) -C $$d install; done
12 |
--------------------------------------------------------------------------------
/driver/tools/shared/linux/log_osdep.c:
--------------------------------------------------------------------------------
1 | #include "mtlkinc.h"
2 |
3 | /* TODO: This is temporary implementation that will be replaced by */
4 | /* full RTLOGGER integration with applications */
5 |
6 | int mtlk_log_get_flags(int level, int oid, int gid)
7 | {
8 | MTLK_UNREFERENCED_PARAM(oid);
9 | MTLK_UNREFERENCED_PARAM(gid);
10 | return (level <= RTLOG_DLEVEL_VAR) ? LOG_TARGET_CONSOLE : 0;
11 | }
12 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/logserver/linux/compat.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007-2008 Metalink Broadband (Israel)
3 | *
4 | * Compatibility macros
5 | *
6 | * Written by: Andrey Fidrya
7 | *
8 | */
9 |
10 | #ifndef __COMPAT_H__
11 | #define __COMPAT_H__
12 |
13 | #define __PACKED __attribute__((aligned(1), packed))
14 |
15 | #ifndef INVALID_SOCKET
16 | #define INVALID_SOCKET -1
17 | #endif
18 |
19 | #endif // !__COMPAT_H__
20 |
21 |
--------------------------------------------------------------------------------
/driver/wireless/shared/mtlkwlanirbdefs.h:
--------------------------------------------------------------------------------
1 | #ifndef __MTLK_WLAN_IRB_DEFS_H__
2 | #define __MTLK_WLAN_IRB_DEFS_H__
3 |
4 | /***********************************************
5 | * WLAN IRB node names
6 | ***********************************************/
7 | #define MTLK_IRB_DRV_NAME "drv"
8 | #define MTLK_IRB_HW_NAME "hw"
9 | #define MTLK_IRB_VAP_NAME "wlan"
10 | #define MTLK_IRB_STA_NAME "sta"
11 |
12 | #endif /* __MTLK_WLAN_IRB_DEFS_H__ */
13 |
--------------------------------------------------------------------------------
/driver/tools/shared/3rd_party/iniparser/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 10708 2011-02-24 16:53:13Z dmytrof $
2 |
3 | include $(top_srcdir)/Makefile.am.target_apps
4 |
5 | AM_CPPFLAGS += -I$(tools_shared_srcdir) \
6 | -I$(tools_shared_srcdir)/linux \
7 | -I$(wireless_shared_srcdir)
8 |
9 | noinst_LIBRARIES = libiniparser.a
10 | libiniparser_a_SOURCES = dictionary.c iniparser.c \
11 | dictionary.h iniparser.h
12 |
--------------------------------------------------------------------------------
/hostap08/hostapd/hostapd.sim_db:
--------------------------------------------------------------------------------
1 | # Example GSM authentication triplet file for EAP-SIM authenticator
2 | # IMSI:Kc:SRES:RAND
3 | # IMSI: ASCII string (numbers)
4 | # Kc: hex, 8 octets
5 | # SRES: hex, 4 octets
6 | # RAND: hex, 16 octets
7 | 234567898765432:A0A1A2A3A4A5A6A7:D1D2D3D4:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
8 | 234567898765432:B0B1B2B3B4B5B6B7:E1E2E3E4:BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
9 | 234567898765432:C0C1C2C3C4C5C6C7:F1F2F3F4:CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
10 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/logserver/linux/logserver.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007-2008 Metalink Broadband (Israel)
3 | *
4 | * Log server
5 | *
6 | * Written by: Andrey Fidrya
7 | *
8 | */
9 |
10 | #ifndef __LOGSERVER_H__
11 | #define __LOGSERVER_H__
12 |
13 | extern int log_to_console;
14 | extern int log_to_syslog;
15 | extern int text_protocol;
16 | extern int syslog_pri;
17 |
18 | void send_to_all(char *data, size_t len);
19 |
20 | #endif // !__LOGSERVER_H__
21 |
22 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/mtlk_sq_osdep.h:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: mtlk_sq_osdep.h 10052 2010-12-01 16:43:51Z dmytrof $
3 | *
4 | * Copyright (c) 2006-2008 Metalink Broadband (Israel)
5 | *
6 | * Linux dependant send queue parts.
7 | */
8 |
9 | #ifndef __MTLK_SQ_OSDEP_H__
10 | #define __MTLK_SQ_OSDEP_H__
11 |
12 | /* functions called from shared SendQueue code */
13 | int _mtlk_sq_send_to_hw(mtlk_df_t *df, mtlk_nbuf_t *nbuf, uint16 prio);
14 |
15 | #endif /* __MTLK_SQ_OSDEP_H__ */
16 |
--------------------------------------------------------------------------------
/hostap08/hostapd/logwatch/README:
--------------------------------------------------------------------------------
1 | Logwatch is a utility for analyzing system logs and provide a human
2 | readable summary. This directory has a configuration file and a log
3 | analyzer script for parsing hostapd system log entries for logwatch.
4 | These files can be installed by copying them to following locations:
5 |
6 | /etc/log.d/conf/services/hostapd.conf
7 | /etc/log.d/scripts/services/hostapd
8 |
9 | More information about logwatch is available from http://www.logwatch.org/
10 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/icons_png.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | icons/hicolor/16x16/apps/wpa_gui.png
4 | icons/hicolor/32x32/apps/ap.png
5 | icons/hicolor/32x32/apps/laptop.png
6 | icons/hicolor/32x32/apps/group.png
7 | icons/hicolor/32x32/apps/invitation.png
8 |
9 |
10 |
--------------------------------------------------------------------------------
/driver/wireless/shared/mtlkhash_ieee_addr.h:
--------------------------------------------------------------------------------
1 | #ifndef __MTLK_HASH_IEEE_ADDR_H__
2 | #define __MTLK_HASH_IEEE_ADDR_H__
3 |
4 | #include "mtlkhash.h"
5 | #include "mhi_ieee_address.h"
6 |
7 | #define MTLK_IDEFS_ON
8 | #include "mtlkidefs.h"
9 |
10 | /* Use MTLK_HASH_ENTRY_T(ieee_addr) for hash entry type */
11 |
12 | MTLK_HASH_DECLARE_ENTRY_T(ieee_addr, IEEE_ADDR);
13 |
14 | MTLK_HASH_DECLARE_EXTERN(ieee_addr, IEEE_ADDR);
15 |
16 | #define MTLK_IDEFS_OFF
17 | #include "mtlkidefs.h"
18 |
19 | #endif
20 |
--------------------------------------------------------------------------------
/lq_scripts/lq_drvhlpr.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | echo start drvhlpr with param
4 |
5 |
6 | (drvhlpr -p /tmp/drvhlpr_w0.conf /dev/console 2>&1);
7 |
8 | if [ $? = 1 ]
9 | then
10 | echo drvhlpr return MAC HANG
11 | #/tmp/mtlk_init.sh
12 | #drvhlpr will reboot the system while we have bug in SW Watchdog mechanism
13 | #(. ./reload_mtlk_driver.sh > /dev/null);
14 | elif [ $? = 2 ]
15 | then
16 | echo drvhlpr return rmmod
17 | else
18 | echo return from drvhlpr with error
19 | fi
20 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/systemd/wpa_supplicant@.service.in:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=WPA supplicant daemon (interface-specific version)
3 | Requires=sys-subsystem-net-devices-%i.device
4 | After=sys-subsystem-net-devices-%i.device
5 |
6 | # NetworkManager users will probably want the dbus version instead.
7 |
8 | [Service]
9 | Type=simple
10 | ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I
11 |
12 | [Install]
13 | Alias=network.target.wants/wpa_supplicant@wlan0.service
14 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/logserver/linux/app_toolchain_info:
--------------------------------------------------------------------------------
1 | CONFIG=PLATFORM_DONGLE COMPONENTS LIN_DRV LIN_MTTOOLS LIN_RTLOG_COMPONENTS BUS_PCI_PCIE LINDRV_HW LINDRV_HW_PCIE LINDRV_HW_PCIG3 RF_MANAGEMENT_MTLK WPS_LEDS_ENABLE DEBUG ENABLE_OBJPOOL TXMM_HISTORY_LENGTH=3 NO_FW_RESET_ON_STOP RT_LOGGER_FUNCTIONS MAX_DLEVEL=2 DEVELOPMENT_PLATFORM ENVIRONMENT_NAME="dongle-linux26" HOST_TYPE="arm-linux"
2 | TOOLCHAIN_PATH=/opt/toolchains/snapgear/dongle-2.6-r4787
3 | CFLAGS=-mbig-endian -fno-common -fno-builtin
4 | HOSTNAME=tlvrsa0004
5 |
--------------------------------------------------------------------------------
/driver/tools/mtlkroot/linux/drvver.h:
--------------------------------------------------------------------------------
1 | #ifndef __DRV_VER_H__
2 | #define __DRV_VER_H__
3 |
4 | #ifdef MTCFG_DEBUG
5 | #define DRV_COMPILATION_TYPE ".Debug"
6 | #else
7 | # ifdef MTCFG_SILENT
8 | # define DRV_COMPILATION_TYPE ".Silent"
9 | # else
10 | # define DRV_COMPILATION_TYPE ".Release"
11 | # endif
12 | #endif
13 |
14 | #define DRV_NAME "mtlklog"
15 | #define DRV_VERSION MTLK_SOURCE_VERSION DRV_COMPILATION_TYPE
16 | #define DRV_DESCRIPTION "Metalink Logger Driver"
17 |
18 | #endif /* !__DRV_VER_H__ */
19 |
--------------------------------------------------------------------------------
/driver/tools/mttools/drvhlpr/asel.h:
--------------------------------------------------------------------------------
1 | #ifndef __ASEL_H__
2 | #define __ASEL_H__
3 |
4 | #include "mtlkcontainer.h"
5 | #include "mtlkirba.h"
6 |
7 | extern const mtlk_component_api_t rf_mgmt_api;
8 |
9 | struct mtlk_rf_mgmt_cfg
10 | {
11 | uint32 rf_mgmt_type;
12 | uint32 refresh_time_ms;
13 | uint32 keep_alive_tmout_sec;
14 | uint32 averaging_alpha;
15 | uint32 margin_threshold;
16 | mtlk_irba_t *irba;
17 | };
18 |
19 | extern struct mtlk_rf_mgmt_cfg rf_mgmt_cfg;
20 |
21 | #endif /* __ASEL_H__ */
22 |
23 |
24 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/systemd/wpa_supplicant-wired@.service.in:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=WPA supplicant daemon (interface- and wired driver-specific version)
3 | Requires=sys-subsystem-net-devices-%i.device
4 | After=sys-subsystem-net-devices-%i.device
5 |
6 | # NetworkManager users will probably want the dbus version instead.
7 |
8 | [Service]
9 | Type=simple
10 | ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wired-%I.conf -Dwired -i%I
11 |
12 | [Install]
13 | Alias=network.target.wants/wpa_supplicant-wired@wlan0.service
14 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/systemd/wpa_supplicant-nl80211@.service.in:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=WPA supplicant daemon (interface- and nl80211 driver-specific version)
3 | Requires=sys-subsystem-net-devices-%i.device
4 | After=sys-subsystem-net-devices-%i.device
5 |
6 | # NetworkManager users will probably want the dbus version instead.
7 |
8 | [Service]
9 | Type=simple
10 | ExecStart=@BINDIR@/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-nl80211-%I.conf -Dnl80211 -i%I
11 |
12 | [Install]
13 | Alias=network.target.wants/wpa_supplicant-nl80211@wlan0.service
14 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | driver/.build_tree_ts
2 | driver/.config.old
3 | driver/\[config.h\].in
4 | driver/tools/kconfig/conf
5 | driver/tools/kconfig/conf.d
6 | driver/tools/kconfig/conf.o
7 | driver/tools/kconfig/lxdialog/checklist.o
8 | driver/tools/kconfig/lxdialog/inputbox.o
9 | driver/tools/kconfig/lxdialog/menubox.o
10 | driver/tools/kconfig/lxdialog/textbox.o
11 | driver/tools/kconfig/lxdialog/util.o
12 | driver/tools/kconfig/lxdialog/yesno.o
13 | driver/tools/kconfig/mconf
14 | driver/tools/kconfig/mconf.o
15 | driver/tools/kconfig/zconf.tab.o
16 | *\.o
17 | *\.d
18 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui/setup-mingw-cross-compiling:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # qmake seems to be forcing include and lib paths from the original build
4 | # and I have no idea how to change these. For now, just override the
5 | # directories in the Makefile.Release file after qmake run.
6 |
7 | qmake -spec /q/jm/qt4-win/4.0.0/mkspecs/win32-g++ wpa_gui.pro -o Makefile
8 | cat Makefile.Release |
9 | sed s%qt4/lib%qt4-win/4.0.0/lib%g |
10 | sed s%qt4/include%qt4-win/4.0.0/include%g > tmp.Makefile.Release &&
11 | mv -f tmp.Makefile.Release Makefile.Release
12 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/utils.h:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: utils.h 11187 2011-05-27 10:08:55Z Strashko $
3 | *
4 | * Copyright (c) 2006-2007 Metalink Broadband (Israel)
5 | *
6 | * Utilities.
7 | *
8 | * Originally written by Andrey Fidrya
9 | *
10 | */
11 |
12 | #ifndef _UTILS_H_
13 | #define _UTILS_H_
14 |
15 | void mtlk_dump(uint8 level, const void *buf, uint32 len, char *str);
16 |
17 | uint32 mtlk_shexdump (char *buffer, uint8 *data, size_t size);
18 |
19 | char * __MTLK_IFUNC mtlk_get_token (char *str, char *buf, size_t len, char delim);
20 |
21 | #endif // _UTILS_H_
22 |
23 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/mtlk_mmb_msg.h:
--------------------------------------------------------------------------------
1 | #ifndef _MTLK_MMB_MSG_H_
2 | #define _MTLK_MMB_MSG_H_
3 |
4 | #include "mhi_umi.h"
5 |
6 | typedef UMI_MSG_HEADER *PMSG_OBJ;
7 |
8 | static __INLINE uint16
9 | MSG_OBJ_GET_ID (const UMI_MSG_HEADER *msg_hdr)
10 | {
11 | return msg_hdr->u16MsgId;
12 | }
13 |
14 | static __INLINE void
15 | MSG_OBJ_SET_ID (UMI_MSG_HEADER *msg_hdr, uint16 id)
16 | {
17 | msg_hdr->u16MsgId = id;
18 | }
19 |
20 | static __INLINE void *
21 | MSG_OBJ_PAYLOAD (UMI_MSG_HEADER *msg_hdr)
22 | {
23 | return &msg_hdr[1];
24 | }
25 |
26 | #endif /* !_MTLK_MMB_MSG_H_ */
27 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/full-0.4:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CONFIG_DRIVER_HOSTAP=y
4 | CONFIG_DRIVER_WIRED=y
5 | CONFIG_DRIVER_MADWIFI=y
6 | CFLAGS += -I/home/jm/work/madwifi-BSD
7 | CONFIG_DRIVER_PRISM54=y
8 |
9 | CONFIG_IAPP=y
10 | CONFIG_RSN_PREAUTH=y
11 | CONFIG_EAP=y
12 | CONFIG_EAP_MD5=y
13 | CONFIG_EAP_TLS=y
14 | CONFIG_EAP_MSCHAPV2=y
15 | CONFIG_EAP_PEAP=y
16 | CONFIG_EAP_GTC=y
17 | CONFIG_EAP_TTLS=y
18 | CONFIG_EAP_SIM=y
19 | CONFIG_EAP_AKA=y
20 | CONFIG_EAP_PAX=y
21 | CONFIG_EAP_PSK=y
22 | CONFIG_EAP_SAKE=y
23 | CONFIG_PKCS12=y
24 | CONFIG_RADIUS_SERVER=y
25 |
26 | CFLAGS += -Werror
27 |
--------------------------------------------------------------------------------
/hostap08/hostapd/hostapd.wpa_psk:
--------------------------------------------------------------------------------
1 | # List of WPA PSKs. Each line, except for empty lines and lines starting
2 | # with #, must contain a MAC address and PSK separated with a space.
3 | # Special MAC address 00:00:00:00:00:00 can be used to configure PSKs that
4 | # anyone can use. PSK can be configured as an ASCII passphrase of 8..63
5 | # characters or as a 256-bit hex PSK (64 hex digits).
6 | 00:00:00:00:00:00 secret passphrase
7 | 00:11:22:33:44:55 another passphrase
8 | 00:22:33:44:55:66 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
9 | 00:00:00:00:00:00 another passphrase for all STAs
10 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/freebsd:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CC=/opt/freebsd/bin/i586-freebsd6-gcc
4 |
5 | CONFIG_DRIVER_BSD=y
6 | CONFIG_DRIVER_TEST=y
7 |
8 | #CFLAGS += -I/opt/freebsd/local/include
9 |
10 | #CONFIG_IAPP=y
11 | CONFIG_RSN_PREAUTH=y
12 | CONFIG_EAP=y
13 | CONFIG_EAP_MD5=y
14 | CONFIG_EAP_TLS=y
15 | CONFIG_EAP_MSCHAPV2=y
16 | CONFIG_EAP_PEAP=y
17 | CONFIG_EAP_GTC=y
18 | CONFIG_EAP_TTLS=y
19 | CONFIG_EAP_SIM=y
20 | CONFIG_EAP_AKA=y
21 | CONFIG_EAP_PAX=y
22 | CONFIG_EAP_PSK=y
23 | CONFIG_EAP_SAKE=y
24 | CONFIG_PKCS12=y
25 | CONFIG_RADIUS_SERVER=y
26 | CONFIG_IPV6=y
27 |
28 | CFLAGS += -Werror
29 |
--------------------------------------------------------------------------------
/lq_scripts/hostapd_w0_default.conf:
--------------------------------------------------------------------------------
1 | ctrl_interface=/var/run/hostapd
2 | ctrl_interface_group=0
3 | interface=wlan0
4 | driver=mtlk
5 | macaddr_acl=0
6 | bridge=lan1
7 | ignore_broadcast_ssid=0
8 | eapol_key_index_workaround=0
9 | eap_server=1
10 | wps_state=2
11 | wpa=2 # 0:OPEN | 1:WPA | 2:WPA2 | 3:WPA/WPA2
12 | wpa_group_rekey=600
13 | wpa_gmk_rekey=86400
14 | wpa_key_mgmt=WPA-PSK
15 | manufacturer=Lantiq Communications
16 | model_name=UT300R2U
17 | model_number=1.0
18 | serial_number=000
19 | config_methods=label display push_button keypad
20 | device_type=6-0050F204-1
21 | os_version=01020300
22 | pbc_in_m1=1
23 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/full:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 | #MAKE2:make nt_password_hash hlr_auc_gw
3 |
4 | CONFIG_DRIVER_HOSTAP=y
5 | CONFIG_DRIVER_WIRED=y
6 | CONFIG_DRIVER_MADWIFI=y
7 | CFLAGS += -I/home/jm/work/madwifi-BSD
8 | CONFIG_DRIVER_PRISM54=y
9 |
10 | CONFIG_IAPP=y
11 | CONFIG_RSN_PREAUTH=y
12 | CONFIG_EAP=y
13 | CONFIG_EAP_MD5=y
14 | CONFIG_EAP_TLS=y
15 | CONFIG_EAP_MSCHAPV2=y
16 | CONFIG_EAP_PEAP=y
17 | CONFIG_EAP_GTC=y
18 | CONFIG_EAP_TTLS=y
19 | CONFIG_EAP_SIM=y
20 | CONFIG_EAP_AKA=y
21 | CONFIG_EAP_PAX=y
22 | CONFIG_EAP_PSK=y
23 | CONFIG_EAP_SAKE=y
24 | CONFIG_PKCS12=y
25 | CONFIG_RADIUS_SERVER=y
26 |
27 | CFLAGS += -Werror
28 |
--------------------------------------------------------------------------------
/hostap08/hostapd/eap_register.h:
--------------------------------------------------------------------------------
1 | /*
2 | * EAP method registration
3 | * Copyright (c) 2004-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef EAP_REGISTER_H
16 | #define EAP_REGISTER_H
17 |
18 | int eap_server_register_methods(void);
19 |
20 | #endif /* EAP_REGISTER_H */
21 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/freebsd:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CC=/opt/freebsd/bin/i586-freebsd6-gcc
4 |
5 | CONFIG_DRIVER_BSD=y
6 | CONFIG_DRIVER_TEST=y
7 |
8 | CFLAGS += -I/opt/freebsd/local/include
9 |
10 | CONFIG_IEEE8021X_EAPOL=y
11 | CONFIG_EAP_MD5=y
12 | CONFIG_EAP_MSCHAPV2=y
13 | CONFIG_EAP_TLS=y
14 | CONFIG_EAP_PEAP=y
15 | CONFIG_EAP_TTLS=y
16 | CONFIG_EAP_GTC=y
17 | CONFIG_EAP_OTP=y
18 | CONFIG_EAP_SIM=y
19 | CONFIG_EAP_PSK=y
20 | CONFIG_EAP_PAX=y
21 | CONFIG_EAP_SAKE=y
22 | CONFIG_EAP_LEAP=y
23 | CONFIG_EAP_AKA=y
24 | CONFIG_PKCS12=y
25 | CONFIG_CTRL_IFACE=y
26 | CONFIG_SMARTCARD=y
27 |
28 |
29 |
30 | CFLAGS += -Werror
31 |
--------------------------------------------------------------------------------
/driver/wireless/shared/mtlk_assert.h:
--------------------------------------------------------------------------------
1 | #ifndef __MTLK_ASSERT_H__
2 | #define __MTLK_ASSERT_H__
3 |
4 | #ifdef MTCFG_DEBUG
5 |
6 | void __MTLK_IFUNC
7 | __mtlk_assert(mtlk_slid_t slid);
8 |
9 | #define __MTLK_ASSERT(expr, slid) \
10 | do { \
11 | if (__UNLIKELY(!(expr))) { \
12 | __mtlk_assert(slid); \
13 | } \
14 | } while (0)
15 |
16 | #else
17 | #define __MTLK_ASSERT(expr, slid)
18 | #endif
19 |
20 | #define ASSERT(expr) __MTLK_ASSERT(expr, MTLK_SLID)
21 | #define MTLK_ASSERT(expr) __MTLK_ASSERT(expr, MTLK_SLID)
22 |
23 | #endif /* __MTLK_ASSERT_H__ */
24 |
25 |
--------------------------------------------------------------------------------
/hostap08/hostapd/dump_state.h:
--------------------------------------------------------------------------------
1 | /*
2 | * hostapd / State dump
3 | * Copyright (c) 2002-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef DUMP_STATE_H
16 | #define DUMP_STATE_H
17 |
18 | int handle_dump_state_iface(struct hostapd_iface *iface, void *ctx);
19 |
20 | #endif /* DUMP_STATE_H */
21 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/mtlk_card_types.h:
--------------------------------------------------------------------------------
1 | /* $Id: mtlk_card_types.h 10358 2011-01-15 09:59:33Z dmytrof $ */
2 |
3 | #ifndef __HW_MTLK_CARD_TYPES_H__
4 | #define __HW_MTLK_CARD_TYPES_H__
5 |
6 | typedef enum
7 | {
8 | MTLK_CARD_UNKNOWN = 0x8888, /* Just magics to avoid */
9 | MTLK_CARD_FIRST = 0xABCD, /* accidental coincidences */
10 |
11 | #ifdef MTCFG_LINDRV_HW_PCIE
12 | MTLK_CARD_PCIE,
13 | #endif
14 | #ifdef MTCFG_LINDRV_HW_PCIG3
15 | MTLK_CARD_PCIG3,
16 | #endif
17 | #ifdef MTCFG_LINDRV_HW_AHBG35
18 | MTLK_CARD_AHBG35,
19 | #endif
20 |
21 | MTLK_CARD_LAST
22 | } mtlk_card_type_t;
23 |
24 |
25 | #endif /* __HW_MTLK_CARD_TYPES_H__ */
26 |
--------------------------------------------------------------------------------
/hostap08/hostapd/config_file.h:
--------------------------------------------------------------------------------
1 | /*
2 | * hostapd / Configuration file parser
3 | * Copyright (c) 2003-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef CONFIG_FILE_H
16 | #define CONFIG_FILE_H
17 |
18 | struct hostapd_config * hostapd_config_read(const char *fname);
19 |
20 | #endif /* CONFIG_FILE_H */
21 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/arm-0.4:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CC=/opt/devicescape/toolchains/armv5b-linux/bin/armv5b-uclibc-gcc
4 |
5 | CONFIG_DRIVER_HOSTAP=y
6 | CONFIG_DRIVER_WIRED=y
7 | CONFIG_DRIVER_MADWIFI=y
8 | CFLAGS += -I/home/jm/work/madwifi-BSD
9 | CONFIG_DRIVER_PRISM54=y
10 |
11 | CONFIG_IAPP=y
12 | CONFIG_RSN_PREAUTH=y
13 | CONFIG_EAP=y
14 | CONFIG_EAP_MD5=y
15 | CONFIG_EAP_TLS=y
16 | CONFIG_EAP_MSCHAPV2=y
17 | CONFIG_EAP_PEAP=y
18 | CONFIG_EAP_GTC=y
19 | CONFIG_EAP_TTLS=y
20 | CONFIG_EAP_SIM=y
21 | CONFIG_EAP_AKA=y
22 | CONFIG_EAP_PAX=y
23 | CONFIG_EAP_PSK=y
24 | CONFIG_EAP_SAKE=y
25 | CONFIG_PKCS12=y
26 | CONFIG_RADIUS_SERVER=y
27 |
28 | CFLAGS += -Werror
29 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/logserver/linux/db.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007-2008 Metalink Broadband (Israel)
3 | *
4 | * Database
5 | *
6 | * Written by: Andrey Fidrya
7 | *
8 | */
9 |
10 | #ifndef __DB_H__
11 | #define __DB_H__
12 |
13 | struct scd_entry
14 | {
15 | int oid;
16 | int gid;
17 | int fid;
18 | int lid;
19 | char *text;
20 |
21 | struct scd_entry *next;
22 | };
23 |
24 | extern struct scd_entry *scd_data;
25 |
26 | int db_init(void);
27 | int db_destroy(void);
28 | int db_register_scd_entry(int oid, int gid, int fid, int lid, char *text);
29 |
30 | char *scd_get_text(int oid, int gid, int fid, int lid);
31 |
32 | #endif // !__DB_H__
33 |
34 |
--------------------------------------------------------------------------------
/hostap08/src/ap/authsrv.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Authentication server setup
3 | * Copyright (c) 2002-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef AUTHSRV_H
16 | #define AUTHSRV_H
17 |
18 | int authsrv_init(struct hostapd_data *hapd);
19 | void authsrv_deinit(struct hostapd_data *hapd);
20 |
21 | #endif /* AUTHSRV_H */
22 |
--------------------------------------------------------------------------------
/driver/wireless/driver/rflib/shared/mtlk_aocs_propr.h:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: $
3 | *
4 | * Copyright (c) 2006-2007 Metalink Broadband (Israel)
5 | *
6 | * Proprietary includes for library only!
7 | *
8 | */
9 |
10 | #ifndef _MTLK_AOCS_PROPR_H_
11 | #define _MTLK_AOCS_PROPR_H_
12 |
13 | #include "mtlkqos.h"
14 |
15 | #define MTLK_IDEFS_ON
16 | #include "mtlkidefs.h"
17 |
18 | /* AOCS related data */
19 | /* on channel switch status */
20 | typedef struct _mtlk_aocs_evt_switch_t {
21 | int status;
22 | uint16 sq_used[NTS_PRIORITIES];
23 | } __MTLK_IDATA mtlk_aocs_evt_switch_t;
24 |
25 | #define MTLK_IDEFS_OFF
26 | #include "mtlkidefs.h"
27 |
28 | #endif /* _MTLK_AOCS_PROPR_H_ */
29 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/osal_atomic_decls.h:
--------------------------------------------------------------------------------
1 | __MTLK_ATOMIC_API uint32
2 | __mtlk_osal_atomic_sub (mtlk_atomic_t* val, uint32 i);
3 |
4 | __MTLK_ATOMIC_API uint32
5 | __mtlk_osal_atomic_dec (mtlk_atomic_t* val);
6 |
7 | __MTLK_ATOMIC_API uint32
8 | __mtlk_osal_atomic_xchg (mtlk_atomic_t* target, uint32 value);
9 |
10 | __MTLK_ATOMIC_API uint32
11 | __mtlk_osal_atomic_add (mtlk_atomic_t* val, uint32 i);
12 |
13 | __MTLK_ATOMIC_API uint32
14 | __mtlk_osal_atomic_inc (mtlk_atomic_t* val);
15 |
16 | __MTLK_ATOMIC_API void
17 | __mtlk_osal_atomic_set (mtlk_atomic_t* target, uint32 value);
18 |
19 | __MTLK_ATOMIC_API uint32
20 | __mtlk_osal_atomic_get (const mtlk_atomic_t* val);
21 |
22 |
--------------------------------------------------------------------------------
/driver/tools/mtlkroot/linux/nlmsgs.h:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: nlmsgs.h 11167 2011-05-25 11:10:20Z Strashko $
3 | *
4 | * Copyright (c) 2006-2008 Metalink Broadband (Israel)
5 | *
6 | * Subsystem providing communication with userspace over
7 | * NETLINK_USERSOCK netlink protocol.
8 | *
9 | */
10 |
11 | #ifndef __NLMSGS_H__
12 | #define __NLMSGS_H__
13 |
14 | #include "nl.h"
15 |
16 | #define LOG_LOCAL_GID GID_NLMSGS
17 | #define LOG_LOCAL_FID 0
18 |
19 | int mtlk_nl_init(void);
20 | void mtlk_nl_cleanup(void);
21 | int mtlk_nl_send_brd_msg(void *data, int length, gfp_t flags, u32 dst_group, u8 cmd);
22 |
23 | #undef LOG_LOCAL_GID
24 | #undef LOG_LOCAL_FID
25 |
26 | #endif /* __NLMSGS_H__ */
27 |
--------------------------------------------------------------------------------
/driver/tools/shared/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 11832 2011-10-26 13:39:48Z fleytman $
2 |
3 | include $(top_srcdir)/Makefile.am.common
4 |
5 | SUBDIRS = 3rd_party linux
6 |
7 | EXTRA_DIST = argv_parser.c aux_utils.cpp CmdLine.cpp Debug.cpp \
8 | mtlkcontainer.c mtlk_socket.c ParamInfo.cpp \
9 | mtlkirbhash.c
10 |
11 | noinst_HEADERS = iniparseraux.h mtlkirba.h mtlkirb_osdep.h \
12 | mtlk_osal.h mtlk_socket.h ParamInfo.h \
13 | argv_parser.h aux_utils.h CmdLine.h Debug.h \
14 | memdefs.h mtlkcontainer.h mtlk_osal_dbg.h \
15 | mtlkirbhash.h \
16 | $(tools_srcdir)/mtidl/mtidl_c.h
17 |
18 |
--------------------------------------------------------------------------------
/hostap08/doc/Makefile:
--------------------------------------------------------------------------------
1 | all: docs
2 |
3 | %.eps: %.fig
4 | fig2dev -L eps $*.fig $*.eps
5 |
6 | %.png: %.fig
7 | fig2dev -L png -m 3 $*.fig | pngtopnm | pnmscale 0.4 | pnmtopng \
8 | > $*.png
9 |
10 | docs-pics: wpa_supplicant.png wpa_supplicant.eps hostapd.png hostapd.eps
11 |
12 | docs: docs-pics
13 | (cd ..; doxygen doc/doxygen.conf; cd doc)
14 | $(MAKE) -C latex
15 | cp latex/refman.pdf wpa_supplicant-devel.pdf
16 |
17 | html: docs-pics
18 | (cd ..; doxygen doc/doxygen.conf; cd doc)
19 |
20 | clean:
21 | rm -f *~
22 | rm -f wpa_supplicant.eps wpa_supplicant.png
23 | rm -f hostapd.eps hostapd.png
24 | rm -f doxygen.warnings
25 | rm -rf html latex
26 | rm -f wpa_supplicant-devel.pdf
27 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/gcc-cvs:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CC=/hiski/jm/tmp/gcc-install2/bin/i686-pc-linux-gnu-gcc-4.1.0
4 |
5 | CONFIG_DRIVER_HOSTAP=y
6 | CONFIG_DRIVER_WIRED=y
7 | #CONFIG_DRIVER_MADWIFI=y
8 | #CFLAGS += -I../head # change to reflect local setup; directory for madwifi src
9 | CONFIG_DRIVER_PRISM54=y
10 |
11 | CONFIG_IAPP=y
12 | CONFIG_RSN_PREAUTH=y
13 |
14 | CONFIG_EAP=y
15 | CONFIG_EAP_MD5=y
16 | CONFIG_EAP_TLS=y
17 | CONFIG_EAP_MSCHAPV2=y
18 | CONFIG_EAP_PEAP=y
19 | CONFIG_EAP_GTC=y
20 | CONFIG_EAP_TTLS=y
21 | CONFIG_EAP_SIM=y
22 | CONFIG_EAP_PAX=y
23 | CONFIG_EAP_SAKE=y
24 |
25 | CONFIG_PKCS12=y
26 |
27 | CONFIG_RADIUS_SERVER=y
28 | CONFIG_IPV6=y
29 |
30 | CFLAGS += -Werror
31 |
--------------------------------------------------------------------------------
/hostap08/src/tls/Makefile:
--------------------------------------------------------------------------------
1 | all: libtls.a
2 |
3 | clean:
4 | rm -f *~ *.o *.d libtls.a
5 |
6 | install:
7 | @echo Nothing to be made.
8 |
9 |
10 | include ../lib.rules
11 |
12 | CFLAGS += -DCONFIG_INTERNAL_LIBTOMMATH
13 | CFLAGS += -DCONFIG_CRYPTO_INTERNAL
14 |
15 | LIB_OBJS= \
16 | asn1.o \
17 | bignum.o \
18 | pkcs1.o \
19 | pkcs5.o \
20 | pkcs8.o \
21 | rsa.o \
22 | tlsv1_client.o \
23 | tlsv1_client_read.o \
24 | tlsv1_client_write.o \
25 | tlsv1_common.o \
26 | tlsv1_cred.o \
27 | tlsv1_record.o \
28 | tlsv1_server.o \
29 | tlsv1_server_read.o \
30 | tlsv1_server_write.o \
31 | x509v3.o
32 |
33 |
34 | libtls.a: $(LIB_OBJS)
35 | $(AR) crT $@ $?
36 |
37 | -include $(OBJS:%.o=%.d)
38 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/arm:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 | #MAKE2:make nt_password_hash hlr_auc_gw
3 |
4 | CC=/opt/devicescape/toolchains/armv5b-linux/bin/armv5b-uclibc-gcc
5 |
6 | CONFIG_DRIVER_HOSTAP=y
7 | CONFIG_DRIVER_WIRED=y
8 | CONFIG_DRIVER_MADWIFI=y
9 | CFLAGS += -I/home/jm/work/madwifi-BSD
10 | CONFIG_DRIVER_PRISM54=y
11 |
12 | CONFIG_IAPP=y
13 | CONFIG_RSN_PREAUTH=y
14 | CONFIG_EAP=y
15 | CONFIG_EAP_MD5=y
16 | CONFIG_EAP_TLS=y
17 | CONFIG_EAP_MSCHAPV2=y
18 | CONFIG_EAP_PEAP=y
19 | CONFIG_EAP_GTC=y
20 | CONFIG_EAP_TTLS=y
21 | CONFIG_EAP_SIM=y
22 | CONFIG_EAP_AKA=y
23 | CONFIG_EAP_PAX=y
24 | CONFIG_EAP_PSK=y
25 | CONFIG_EAP_SAKE=y
26 | CONFIG_PKCS12=y
27 | CONFIG_RADIUS_SERVER=y
28 |
29 | CFLAGS += -Werror
30 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/shared/logsrv_protocol.h:
--------------------------------------------------------------------------------
1 | #ifndef __LOGSERVER_PROTOCOL_H__
2 | #define __LOGSERVER_PROTOCOL_H__
3 |
4 | #define MTLK_IDEFS_ON
5 | #define MTLK_IDEFS_PACKING 1
6 | #include "mtlkidefs.h"
7 |
8 | /* This message is sent by log server on each connection prior to
9 | * any log data.
10 | * NOTE: all fields are in network order
11 | */
12 | #define LOGSRV_INFO_MAGIC 0xABCDDCBA
13 |
14 | struct logsrv_info
15 | {
16 | uint32 magic; /* LOGSRV_INFO_MAGIC */
17 | uint32 size; /* sizeof(struct logsrv_info) */
18 | uint16 log_ver_major;
19 | uint16 log_ver_minor;
20 | } __MTLK_IDATA;
21 |
22 | #define MTLK_IDEFS_OFF
23 | #include "mtlkidefs.h"
24 |
25 | #endif /* __LOGSERVER_PROTOCOL_H__ */
26 |
--------------------------------------------------------------------------------
/hostap08/src/ap/tkip_countermeasures.h:
--------------------------------------------------------------------------------
1 | /*
2 | * hostapd / TKIP countermeasures
3 | * Copyright (c) 2002-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef TKIP_COUNTERMEASURES_H
16 | #define TKIP_COUNTERMEASURES_H
17 |
18 | void michael_mic_failure(struct hostapd_data *hapd, const u8 *addr, int local);
19 |
20 | #endif /* TKIP_COUNTERMEASURES_H */
21 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/mtlk_pci_drv_defs.h:
--------------------------------------------------------------------------------
1 | #if !defined (SAFE_PLACE_TO_INCLUDE_PCI_DRV_DEFS)
2 | #error "You shouldn't include this file directly!"
3 | #endif /* SAFE_PLACE_TO_INCLUDE_PCI_DRV_DEFS */
4 |
5 | #undef SAFE_PLACE_TO_INCLUDE_PCI_DRV_DEFS
6 |
7 | #include "mmb_ops.h"
8 |
9 | int __MTLK_IFUNC
10 | mtlk_bus_drv_handle_interrupt(mtlk_pci_drv_t *pci_drv);
11 |
12 | const char* __MTLK_IFUNC
13 | mtlk_bus_drv_get_name(mtlk_pci_drv_t *pci_drv);
14 |
15 | mtlk_card_type_t __MTLK_IFUNC
16 | mtlk_bus_drv_get_card_type(mtlk_pci_drv_t *pci_drv);
17 |
18 | struct device *
19 | mtlk_bus_drv_get_device(mtlk_pci_drv_t *drv);
20 |
21 | #define SAFE_PLACE_TO_INCLUDE_MTLK_CCR_DEFS
22 | #include "mtlk_ccr_defs.h"
23 |
24 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/osal_atomic64_decls.h:
--------------------------------------------------------------------------------
1 | __MTLK_ATOMIC64_API uint64
2 | __mtlk_osal_atomic64_sub (mtlk_atomic64_t* val, uint64 i);
3 |
4 | __MTLK_ATOMIC64_API uint64
5 | __mtlk_osal_atomic64_dec (mtlk_atomic64_t* val);
6 |
7 | __MTLK_ATOMIC64_API uint64
8 | __mtlk_osal_atomic64_xchg (mtlk_atomic64_t* target, uint64 value);
9 |
10 | __MTLK_ATOMIC64_API uint64
11 | __mtlk_osal_atomic64_add (mtlk_atomic64_t* val, uint64 i);
12 |
13 | __MTLK_ATOMIC64_API uint64
14 | __mtlk_osal_atomic64_inc (mtlk_atomic64_t* val);
15 |
16 | __MTLK_ATOMIC64_API void
17 | __mtlk_osal_atomic64_set (mtlk_atomic64_t* target, uint64 value);
18 |
19 | __MTLK_ATOMIC64_API uint64
20 | __mtlk_osal_atomic64_get (mtlk_atomic64_t* val);
21 |
22 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/fips_prf_nss.c:
--------------------------------------------------------------------------------
1 | /*
2 | * FIPS 186-2 PRF for NSS
3 | * Copyright (c) 2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #include "includes.h"
16 | #include
17 |
18 | #include "common.h"
19 | #include "crypto.h"
20 |
21 |
22 | int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen)
23 | {
24 | return -1;
25 | }
26 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/mtlk_gpl_helper.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __MTLK_GPL_HELPER_H__
3 | #define __MTLK_GPL_HELPER_H__
4 |
5 | #define MTLK_IDEFS_ON
6 | #include "mtlkidefs.h"
7 |
8 | uint32 __MTLK_IFUNC mtlk_get_umi_man_size(void);
9 | uint32 __MTLK_IFUNC mtlk_get_umi_dbg_size(void);
10 | uint32 __MTLK_IFUNC mtlk_get_umi_activate_size(void);
11 | uint32 __MTLK_IFUNC mtlk_get_umi_mbss_pre_activate_size(void);
12 |
13 | uint32 __MTLK_IFUNC mtlk_get_umi_scan_size(void);
14 |
15 | UMI_ACTIVATE_HDR* __MTLK_IFUNC mtlk_get_umi_activate_hdr(void *data);
16 |
17 | UMI_SCAN_HDR* __MTLK_IFUNC mtlk_get_umi_scan_hdr(void *data);
18 |
19 | #define MTLK_IDEFS_OFF
20 | #include "mtlkidefs.h"
21 |
22 | #endif /* __MTLK_GPL_HELPER_H__ */
23 |
--------------------------------------------------------------------------------
/hostap08/src/eap_common/chap.h:
--------------------------------------------------------------------------------
1 | /*
2 | * CHAP-MD5 (RFC 1994)
3 | * Copyright (c) 2007-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef CHAP_H
16 | #define CHAP_H
17 |
18 | #define CHAP_MD5_LEN 16
19 |
20 | int chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge,
21 | size_t challenge_len, u8 *response);
22 |
23 | #endif /* CHAP_H */
24 |
--------------------------------------------------------------------------------
/hostap08/src/tls/pkcs5.h:
--------------------------------------------------------------------------------
1 | /*
2 | * PKCS #5 (Password-based Encryption)
3 | * Copyright (c) 2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef PKCS5_H
16 | #define PKCS5_H
17 |
18 | u8 * pkcs5_decrypt(const u8 *enc_alg, size_t enc_alg_len,
19 | const u8 *enc_data, size_t enc_data_len,
20 | const char *passwd, size_t *data_len);
21 |
22 | #endif /* PKCS5_H */
23 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/logserver/linux/net.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007-2008 Metalink Broadband (Israel)
3 | *
4 | * Networking
5 | *
6 | * Written by: Andrey Fidrya
7 | *
8 | */
9 |
10 | #ifndef __NET_H__
11 | #define __NET_H__
12 |
13 | #include "compat.h"
14 |
15 | #define MAX_SND_BUF 8192
16 | #define MAX_RCV_BUF 8192
17 |
18 | #define SOCKET_SET_OPT(s, name, val) \
19 | socket_set_opt(s, name, #name, val)
20 |
21 | int create_mother_socket(const char *addr, uint16 port, int *psocket);
22 | int socket_set_opt(int s, int opt, const char *opt_name, int val);
23 | int socket_set_linger(int s, int onoff, int linger);
24 | int socket_set_nonblock(int s, int nonblock);
25 |
26 | #endif // !__NET_H__
27 |
28 |
--------------------------------------------------------------------------------
/driver/wireless/shared/mtlkhash_ieee_addr.c:
--------------------------------------------------------------------------------
1 | #include "mtlkinc.h"
2 | #include "mtlkhash_ieee_addr.h"
3 |
4 | #define LOG_LOCAL_GID GID_MTLKHASH_IEEE_ADDR
5 | #define LOG_LOCAL_FID 1
6 |
7 | static __INLINE uint32
8 | _mtlk_hash_ieee_addr_hashval (const IEEE_ADDR *key, uint32 nof_buckets)
9 | {
10 | return ((key->au8Addr[5]) & (nof_buckets - 1));
11 | }
12 |
13 | static __INLINE int
14 | _mtlk_hash_ieee_addr_keycmp (const IEEE_ADDR *key1, const IEEE_ADDR *key2)
15 | {
16 | return mtlk_osal_compare_eth_addresses(key1->au8Addr, key2->au8Addr);
17 | }
18 |
19 | MTLK_HASH_DEFINE_EXTERN(ieee_addr, IEEE_ADDR,
20 | _mtlk_hash_ieee_addr_hashval,
21 | _mtlk_hash_ieee_addr_keycmp);
22 |
23 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/doc/docbook/Makefile:
--------------------------------------------------------------------------------
1 | all: man html pdf
2 |
3 | FILES += wpa_background
4 | FILES += wpa_cli
5 | FILES += wpa_gui
6 | FILES += wpa_passphrase
7 | FILES += wpa_priv
8 | FILES += wpa_supplicant.conf
9 | FILES += wpa_supplicant
10 |
11 | man:
12 | for i in $(FILES); do docbook2man $$i.sgml; done
13 |
14 | html:
15 | for i in $(FILES); do docbook2html $$i.sgml && \
16 | mv index.html $$i.html; done
17 |
18 | pdf:
19 | for i in $(FILES); do docbook2pdf $$i.sgml; done
20 |
21 |
22 | clean:
23 | rm -f wpa_background.8 wpa_cli.8 wpa_gui.8 wpa_passphrase.8 wpa_priv.8 wpa_supplicant.8
24 | rm -f wpa_supplicant.conf.5
25 | rm -f manpage.links manpage.refs
26 | rm -f $(FILES:%=%.pdf)
27 | rm -f $(FILES:%=%.html)
28 |
--------------------------------------------------------------------------------
/driver/tools/BCLSockServer/BCL/mt_bcl_defs.h:
--------------------------------------------------------------------------------
1 | #define MT_BCL_ITEM_LISTS_NUM 10 /*Number of ItemList buffers*/
2 | #define MT_BCL_ITEM_LIST_SIZE 1024 /*Size of each ItemList buffer*/
3 | #define MT_BCL_INCLUDE_CMDS_HELP /*If defined, help will be included in the BCL project. If ommited, the help won't be included in the project, which will result in rather significant space saving.*/
4 | #define MT_BCL_INCLUDE_DMEM /*If defined, DMEM actions will be supported */
5 | #define MAX_PARAM_COUNT 8 /*8 parameters are supported for regular BCL functions. Modifying this value, requires extensive changes to this excel file, as well as various parts of the source code*/
6 |
7 | #define MT_BCL_COMMANDS_NUMBER 51
8 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/mtlk_ahb_drv_defs.h:
--------------------------------------------------------------------------------
1 | #if !defined (SAFE_PLACE_TO_INCLUDE_AHB_DRV_DEFS)
2 | #error "You shouldn't include this file directly!"
3 | #endif /* SAFE_PLACE_TO_INCLUDE_AHB_DRV_DEFS */
4 |
5 | #undef SAFE_PLACE_TO_INCLUDE_AHB_DRV_DEFS
6 |
7 | #include "mmb_ops.h"
8 |
9 | int __MTLK_IFUNC
10 | mtlk_bus_drv_handle_interrupt(mtlk_ahb_drv_t *ahb_drv);
11 |
12 | const char* __MTLK_IFUNC
13 | mtlk_bus_drv_get_name(mtlk_ahb_drv_t *ahb_drv);
14 |
15 | mtlk_card_type_t __MTLK_IFUNC
16 | mtlk_bus_drv_get_card_type(mtlk_ahb_drv_t *ahb_drv);
17 |
18 | struct device * __MTLK_IFUNC
19 | mtlk_bus_drv_get_device(mtlk_ahb_drv_t *bus_drv);
20 |
21 | #define SAFE_PLACE_TO_INCLUDE_MTLK_CCR_DEFS
22 | #include "mtlk_ccr_defs.h"
23 |
24 |
--------------------------------------------------------------------------------
/hostap08/src/utils/Makefile:
--------------------------------------------------------------------------------
1 | all: libutils.a
2 |
3 | clean:
4 | rm -f *~ *.o *.d libutils.a
5 |
6 | install:
7 | @echo Nothing to be made.
8 |
9 |
10 | include ../lib.rules
11 |
12 | #CFLAGS += -DWPA_TRACE
13 | CFLAGS += -DCONFIG_IPV6
14 |
15 | LIB_OBJS= \
16 | base64.o \
17 | common.o \
18 | ip_addr.o \
19 | radiotap.o \
20 | trace.o \
21 | uuid.o \
22 | wpa_debug.o \
23 | wpabuf.o
24 |
25 | # Pick correct OS wrapper implementation
26 | LIB_OBJS += os_unix.o
27 |
28 | # Pick correct event loop implementation
29 | LIB_OBJS += eloop.o
30 |
31 | # Pick correct edit implementation
32 | LIB_OBJS += edit.o
33 |
34 | #LIB_OBJS += pcsc_funcs.o
35 |
36 | libutils.a: $(LIB_OBJS)
37 | $(AR) crT $@ $?
38 |
39 | -include $(OBJS:%.o=%.d)
40 |
--------------------------------------------------------------------------------
/hostap08/src/utils/uuid.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Universally Unique IDentifier (UUID)
3 | * Copyright (c) 2008, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef UUID_H
16 | #define UUID_H
17 |
18 | #define UUID_LEN 16
19 |
20 | int uuid_str2bin(const char *str, u8 *bin);
21 | int uuid_bin2str(const u8 *bin, char *str, size_t max_len);
22 | int is_nil_uuid(const u8 *uuid);
23 |
24 | #endif /* UUID_H */
25 |
--------------------------------------------------------------------------------
/driver/wireless/driver/rflib/shared/mtlk_scan_propr.h:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: $
3 | *
4 | * Copyright (c) 2006-2007 Metalink Broadband (Israel)
5 | *
6 | * Proprietary includes for library only!
7 | *
8 | */
9 |
10 | #ifndef _MTLK_SCAN_PROPR_H_
11 | #define _MTLK_SCAN_PROPR_H_
12 |
13 | #include "mhi_umi.h"
14 | #include "mhi_umi_propr.h"
15 |
16 | #define MTLK_IDEFS_ON
17 | #include "mtlkidefs.h"
18 |
19 | struct _mtlk_scan_vector_t
20 | {
21 | uint16 count;
22 | uint16 used;
23 | FREQUENCY_ELEMENT *params;
24 | } __MTLK_IDATA;
25 |
26 | FREQUENCY_ELEMENT * __MTLK_IFUNC mtlk_scan_vector_get_offset(struct _mtlk_scan_vector_t *vector, uint8 offs);
27 |
28 | #define MTLK_IDEFS_OFF
29 | #include "mtlkidefs.h"
30 |
31 | #endif /* _MTLK_SCAN_PROPR_H_ */
32 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/fips_prf_cryptoapi.c:
--------------------------------------------------------------------------------
1 | /*
2 | * FIPS 186-2 PRF for Microsoft CryptoAPI
3 | * Copyright (c) 2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #include "includes.h"
16 |
17 | #include "common.h"
18 | #include "crypto.h"
19 |
20 |
21 | int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen)
22 | {
23 | /* FIX: how to do this with CryptoAPI? */
24 | return -1;
25 | }
26 |
--------------------------------------------------------------------------------
/hostap08/www/wpa_supplicant/conf/eap-tls.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EAP-TLS
5 |
6 |
7 |
8 |
9 |
15 |
16 | EAP-TLS
17 |
18 | TODO
19 |
20 |
21 | Jouni Malinen
22 |
23 |
24 | Last modified: Sun Feb 26 13:46:48 PST 2006
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/hostap08/src/tls/pkcs8.h:
--------------------------------------------------------------------------------
1 | /*
2 | * PKCS #8 (Private-key information syntax)
3 | * Copyright (c) 2006-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef PKCS8_H
16 | #define PKCS8_H
17 |
18 | struct crypto_private_key * pkcs8_key_import(const u8 *buf, size_t len);
19 | struct crypto_private_key *
20 | pkcs8_enc_key_import(const u8 *buf, size_t len, const char *passwd);
21 |
22 | #endif /* PKCS8_H */
23 |
--------------------------------------------------------------------------------
/hostap08/www/wpa_supplicant/conf/eap-peap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EAP-PEAP
5 |
6 |
7 |
8 |
9 |
15 |
16 | EAP-PEAP
17 |
18 | TODO
19 |
20 |
21 | Jouni Malinen
22 |
23 |
24 | Last modified: Sun Feb 26 13:46:04 PST 2006
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/hostap08/src/eap_common/eap_peap_common.h:
--------------------------------------------------------------------------------
1 | /*
2 | * EAP-PEAP common routines
3 | * Copyright (c) 2008, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef EAP_PEAP_COMMON_H
16 | #define EAP_PEAP_COMMON_H
17 |
18 | void peap_prfplus(int version, const u8 *key, size_t key_len,
19 | const char *label, const u8 *seed, size_t seed_len,
20 | u8 *buf, size_t buf_len);
21 |
22 | #endif /* EAP_PEAP_COMMON_H */
23 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/fips_prf_gnutls.c:
--------------------------------------------------------------------------------
1 | /*
2 | * FIPS 186-2 PRF for libgcrypt
3 | * Copyright (c) 2004-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #include "includes.h"
16 | #include
17 |
18 | #include "common.h"
19 | #include "crypto.h"
20 |
21 |
22 | int fips186_2_prf(const u8 *seed, size_t seed_len, u8 *x, size_t xlen)
23 | {
24 | /* FIX: how to do this with libgcrypt? */
25 | return -1;
26 | }
27 |
--------------------------------------------------------------------------------
/hostap08/src/ap/wpa_auth_glue.h:
--------------------------------------------------------------------------------
1 | /*
2 | * hostapd / WPA authenticator glue code
3 | * Copyright (c) 2002-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef WPA_AUTH_GLUE_H
16 | #define WPA_AUTH_GLUE_H
17 |
18 | int hostapd_setup_wpa(struct hostapd_data *hapd);
19 | void hostapd_reconfig_wpa(struct hostapd_data *hapd);
20 | void hostapd_deinit_wpa(struct hostapd_data *hapd);
21 |
22 | #endif /* WPA_AUTH_GLUE_H */
23 |
--------------------------------------------------------------------------------
/hostap08/src/utils/base64.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Base64 encoding/decoding (RFC1341)
3 | * Copyright (c) 2005, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef BASE64_H
16 | #define BASE64_H
17 |
18 | unsigned char * base64_encode(const unsigned char *src, size_t len,
19 | size_t *out_len);
20 | unsigned char * base64_decode(const unsigned char *src, size_t len,
21 | size_t *out_len);
22 |
23 | #endif /* BASE64_H */
24 |
--------------------------------------------------------------------------------
/driver/support/x86-linux26.env:
--------------------------------------------------------------------------------
1 | #WARNING: values of DEFAULT_TOOLCHAIN_PATH, DEFAULT_KERNEL_DIR and DEFAULT_KERNEL_CROSS_COMPILE
2 | # variables are assigned in this file but should never be used directly.
3 | # $(get_toolchain_path), $(get_kernel_dir) and $(get_kernel_cross_compile) to be used instead
4 |
5 | #Toolchain path for applications build
6 | #DEFAULT_TOOLCHAIN_PATH=
7 |
8 | #Compiler/precompiler flags applications build
9 | #CC=
10 | #CXX=
11 | #CFLAGS=
12 | #CPPFLAGS=
13 | #CXXFLAGS=
14 |
15 | #Linker flags for C++ applications linkage
16 | cxx_ldadd=
17 |
18 | #Target kernel architecture
19 | kernel_arch=
20 | #Kernel directory location
21 | DEFAULT_KERNEL_DIR=/lib/modules/`uname -r`/build
22 | #Prefix for kernel compiler/binutils
23 | DEFAULT_KERNEL_CROSS_COMPILE=
24 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui/main.cpp:
--------------------------------------------------------------------------------
1 | #ifdef CONFIG_NATIVE_WINDOWS
2 | #include
3 | #endif /* CONFIG_NATIVE_WINDOWS */
4 | #include
5 | #include "wpagui.h"
6 |
7 | int main( int argc, char ** argv )
8 | {
9 | QApplication a( argc, argv );
10 | WpaGui w;
11 | int ret;
12 |
13 | #ifdef CONFIG_NATIVE_WINDOWS
14 | WSADATA wsaData;
15 | if (WSAStartup(MAKEWORD(2, 0), &wsaData)) {
16 | printf("Could not find a usable WinSock.dll\n");
17 | return -1;
18 | }
19 | #endif /* CONFIG_NATIVE_WINDOWS */
20 |
21 | w.show();
22 | a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
23 | ret = a.exec();
24 |
25 | #ifdef CONFIG_NATIVE_WINDOWS
26 | WSACleanup();
27 | #endif /* CONFIG_NATIVE_WINDOWS */
28 |
29 | return ret;
30 | }
31 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/mtlk_wssd.h:
--------------------------------------------------------------------------------
1 | #ifndef __MTLK_WSSD_H__
2 | #define __MTLK_WSSD_H__
3 |
4 | #include "mtlkwssairb.h"
5 |
6 | mtlk_irbd_handle_t* __MTLK_IFUNC
7 | mtlk_wssd_register_request_handler(mtlk_irbd_t* irbd,
8 | mtlk_irbd_evt_handler_f handler_func,
9 | mtlk_handle_t handler_ctx);
10 |
11 | void __MTLK_IFUNC
12 | mtlk_wssd_unregister_request_handler(mtlk_irbd_t* irbd,
13 | mtlk_irbd_handle_t* reg_handle);
14 |
15 | int __MTLK_IFUNC
16 | mtlk_wssd_send_event(mtlk_irbd_t * irbd,
17 | uint32 info_id,
18 | void* data_buff,
19 | uint32 buff_length);
20 |
21 | #endif /* __MTLK_WSSD_H__ */
22 |
--------------------------------------------------------------------------------
/hostap08/hostapd/hlr_auc_gw.milenage_db:
--------------------------------------------------------------------------------
1 | # Parameters for Milenage (Example algorithms for AKA).
2 | # The example Ki, OPc, and AMF values here are from 3GPP TS 35.208 v6.0.0
3 | # 4.3.20 Test Set 20. SQN is the last used SQN value.
4 | # These values can be used for both UMTS (EAP-AKA) and GSM (EAP-SIM)
5 | # authentication. In case of GSM/EAP-SIM, AMF and SQN values are not used, but
6 | # dummy values will need to be included in this file.
7 |
8 | # IMSI Ki OPc AMF SQN
9 | 232010000000000 90dca4eda45b53cf0f12d7c9c3bc6a89 cb9cccc4b9258e6dca4760379fb82581 61df 000000000000
10 |
11 | # These values are from Test Set 19 which has the AMF separation bit set to 1
12 | # and as such, is suitable for EAP-AKA' test.
13 | 555444333222111 5122250214c33e723a5dd523fc145fc0 981d464c7c52eb6e5036234984ad0bcf c3ab 16f3b3f70fc1
14 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/dh_group5.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Diffie-Hellman group 5 operations
3 | * Copyright (c) 2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef DH_GROUP5_H
16 | #define DH_GROUP5_H
17 |
18 | void * dh5_init(struct wpabuf **priv, struct wpabuf **publ);
19 | struct wpabuf * dh5_derive_shared(void *ctx, const struct wpabuf *peer_public,
20 | const struct wpabuf *own_private);
21 | void dh5_free(void *ctx);
22 |
23 | #endif /* DH_GROUP5_H */
24 |
--------------------------------------------------------------------------------
/hostap08/src/wps/upnp_xml.h:
--------------------------------------------------------------------------------
1 | /*
2 | * UPnP XML helper routines
3 | * Copyright (c) 2000-2003 Intel Corporation
4 | * Copyright (c) 2006-2007 Sony Corporation
5 | * Copyright (c) 2008-2009 Atheros Communications
6 | * Copyright (c) 2009, Jouni Malinen
7 | *
8 | * See wps_upnp.c for more details on licensing and code history.
9 | */
10 |
11 | #ifndef UPNP_XML_H
12 | #define UPNP_XML_H
13 |
14 | #include "http.h"
15 |
16 | void xml_data_encode(struct wpabuf *buf, const char *data, int len);
17 | void xml_add_tagged_data(struct wpabuf *buf, const char *tag,
18 | const char *data);
19 | char * xml_get_first_item(const char *doc, const char *item);
20 | struct wpabuf * xml_get_base64_item(const char *data, const char *name,
21 | enum http_reply_code *ret);
22 |
23 | #endif /* UPNP_XML_H */
24 |
--------------------------------------------------------------------------------
/hostap08/www/wpa_supplicant/conf/auth_modes.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Introduction to wireless authentication modes
5 |
6 |
7 |
8 |
9 |
14 |
15 | Introduction to wireless authentication modes
16 |
17 | TODO
18 |
19 |
20 | Jouni Malinen
21 |
22 |
23 | Last modified: Sun Feb 26 13:46:58 PST 2006
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/logcnv/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 11012 2011-04-12 14:59:24Z dmitryf $
2 |
3 | include $(top_srcdir)/Makefile.am.target_apps
4 |
5 | rtlogger_PROGRAMS = logcnv
6 | AM_CPPFLAGS += -I$(tools_shared_srcdir)/linux \
7 | -I$(tools_shared_srcdir) \
8 | -I$(wireless_shared_srcdir) \
9 | -I$(srcdir)/../shared
10 |
11 | logcnv_SOURCES = LogEvt.cpp LogEvt.h \
12 | LogFmtDB.cpp LogFmtDB.h \
13 | logcnv.cpp LogInfo.h pcapdefs.h
14 |
15 | logcnv_LDADD = @ld_group_start@ \
16 | $(wireless_shared_builddir)/libmtlkwls.a \
17 | $(tools_shared_builddir)/linux/libmtlkc.a \
18 | @ld_group_end@ \
19 | $(tools_shared_builddir)/linux/libmtlkcpp.a \
20 | @cxx_ldadd@
21 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/crypto_none.c:
--------------------------------------------------------------------------------
1 | /*
2 | * WPA Supplicant / Empty template functions for crypto wrapper
3 | * Copyright (c) 2005, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #include "includes.h"
16 |
17 | #include "common.h"
18 | #include "crypto.h"
19 |
20 |
21 | int md4_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
22 | {
23 | return 0;
24 | }
25 |
26 |
27 | void des_encrypt(const u8 *clear, const u8 *key, u8 *cypher)
28 | {
29 | }
30 |
--------------------------------------------------------------------------------
/driver/tools/kconfig/kconfig_load.c:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 |
5 | #include "lkc.h"
6 |
7 | #define P(name,type,arg) type (*name ## _p) arg
8 | #include "lkc_proto.h"
9 | #undef P
10 |
11 | void kconfig_load(void)
12 | {
13 | void *handle;
14 | char *error;
15 |
16 | handle = dlopen("./libkconfig.so", RTLD_LAZY);
17 | if (!handle) {
18 | handle = dlopen("./scripts/kconfig/libkconfig.so", RTLD_LAZY);
19 | if (!handle) {
20 | fprintf(stderr, "%s\n", dlerror());
21 | exit(1);
22 | }
23 | }
24 |
25 | #define P(name,type,arg) \
26 | { \
27 | name ## _p = dlsym(handle, #name); \
28 | if ((error = dlerror())) { \
29 | fprintf(stderr, "%s\n", error); \
30 | exit(1); \
31 | } \
32 | }
33 | #include "lkc_proto.h"
34 | #undef P
35 | }
36 |
--------------------------------------------------------------------------------
/driver/tools/shared/Debug.h:
--------------------------------------------------------------------------------
1 | //$Id: Debug.h 5783 2009-01-15 15:11:27Z antonn $
2 | #ifndef _DEBUG_H_INCLUDED_
3 | #define _DEBUG_H_INCLUDED_
4 |
5 | #if defined(UTR_DEBUG)
6 |
7 | #if defined(WIN32)
8 |
9 | void _set_debug_text_color();
10 | void _set_normal_text_color();
11 |
12 | #define DBG_TRACE(msg) { \
13 | _set_debug_text_color(); \
14 | cerr << msg << endl; \
15 | _set_normal_text_color(); \
16 | }
17 |
18 | #elif defined(LINUX)
19 |
20 | #define DBG_TRACE(msg) cerr << "\033[22;32m" << msg << "\033[0m" << endl;
21 |
22 | #else
23 | # error Unknown operating system
24 | #endif
25 |
26 |
27 | #else //UTR_DEBUG
28 |
29 | #define DBG_TRACE(msg)
30 |
31 | #endif //UTR_DEBUG
32 |
33 | #endif //_DEBUG_H_INCLUDED_
34 |
--------------------------------------------------------------------------------
/driver/wireless/shared/mtlkstartup.c:
--------------------------------------------------------------------------------
1 | /* $Id: mtlkstartup.c 7714 2009-09-29 09:39:57Z antonn $ */
2 | /* Helper code and data for startup and */
3 | /* shutdown control module */
4 | #include "mtlkinc.h"
5 | #include "mtlkstartup.h"
6 |
7 | /* Startup steps counter */
8 | int g_CurrentStepNumber = 0;
9 | void mtlk_startup_clear_step_counter(void)
10 | {
11 | g_CurrentStepNumber = 0;
12 | }
13 |
14 | #ifdef MTLK_DEBUG
15 |
16 | /* Failures simulation: */
17 | /* This variable is set to the number of step that */
18 | /* have to fail (simulation of failure for testing) */
19 | /* Default value of 0 means do not simulate failures. */
20 | int g_StepNumberToFail = 0;
21 | void mtlk_startup_set_step_to_fail(uint32 step)
22 | {
23 | g_StepNumberToFail = step;
24 | }
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/hostap08/src/wps/http.h:
--------------------------------------------------------------------------------
1 | /*
2 | * HTTP for WPS
3 | * Copyright (c) 2000-2003 Intel Corporation
4 | * Copyright (c) 2006-2007 Sony Corporation
5 | * Copyright (c) 2008-2009 Atheros Communications
6 | * Copyright (c) 2009, Jouni Malinen
7 | *
8 | * See wps_upnp.c for more details on licensing and code history.
9 | */
10 |
11 | #ifndef HTTP_H
12 | #define HTTP_H
13 |
14 | enum http_reply_code {
15 | HTTP_OK = 200,
16 | HTTP_BAD_REQUEST = 400,
17 | UPNP_INVALID_ACTION = 401,
18 | UPNP_INVALID_ARGS = 402,
19 | HTTP_NOT_FOUND = 404,
20 | HTTP_PRECONDITION_FAILED = 412,
21 | HTTP_INTERNAL_SERVER_ERROR = 500,
22 | HTTP_UNIMPLEMENTED = 501,
23 | UPNP_ACTION_FAILED = 501,
24 | UPNP_ARG_VALUE_INVALID = 600,
25 | UPNP_ARG_VALUE_OUT_OF_RANGE = 601,
26 | UPNP_OUT_OF_MEMORY = 603
27 | };
28 |
29 | #endif /* HTTP_H */
30 |
--------------------------------------------------------------------------------
/hostap08/www/wpa_supplicant/wpa_gui.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | wpa_gui screenshots
4 |
5 |
6 |
7 | wpa_gui screenshots
8 |
9 | Main window
10 |
11 |
12 |
13 | Scan results
14 |
15 |
16 |
17 | Network configuration (new network from scan results)
18 |
19 |
20 |
21 | Event history
22 |
23 |
24 |
25 | User input for authentication credentials
26 |
27 |
28 |
29 |
30 | Jouni Malinen
31 |
32 |
33 | Last modified: Thu Mar 8 19:44:46 PST 2007
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/driver/tools/mttools/mtlk_cli/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 11014 2011-04-12 16:13:52Z andriit $
2 |
3 | include $(top_srcdir)/Makefile.am.target_apps
4 |
5 | mttools_PROGRAMS = mtlk_cli
6 |
7 | mtlk_cli_SOURCES = main.c
8 |
9 | nodist_mtlk_cli_SOURCES = app_info.c \
10 | $(rtlogger_shared_srcdir)/logmacro_database.c
11 |
12 | mtlk_cli_LDADD = $(builddir)/../shared/libmttools.a \
13 | @ld_group_start@ \
14 | $(tools_shared_builddir)/linux/libmtlkc.a \
15 | $(wireless_shared_builddir)/libmtlkwls.a \
16 | @ld_group_end@
17 |
18 | AM_CPPFLAGS += -I$(srcdir)/../shared/ \
19 | -I$(srcdir)/../shared/linux \
20 | -I$(wireless_shared_srcdir) \
21 | -I$(tools_shared_srcdir)/linux \
22 | -I$(tools_shared_srcdir)
23 |
--------------------------------------------------------------------------------
/driver/tools/shared/linux/LinException.h:
--------------------------------------------------------------------------------
1 | //$Id: LinException.h 5803 2009-01-18 08:46:51Z antonn $
2 | #ifndef _LIN_EXCEPTION_H_INCLUDED_
3 | #define _LIN_EXCEPTION_H_INCLUDED_
4 |
5 | class CLinException :
6 | public exception
7 | {
8 | private:
9 | const CLinException& operator=(const CLinException&); //Do not allow assignments
10 | public:
11 | CLinException()
12 | : errorString(string("Linux API error: ") + strerror(errno))
13 | {}
14 | CLinException(const string &strError, int nErrorCode = errno)
15 | : errorString(strError + ": " + strerror(nErrorCode))
16 | {}
17 |
18 | ~CLinException() throw()
19 | {}
20 | const string errorString;
21 | virtual const char *what() const throw()
22 | {
23 | return errorString.c_str();
24 | }
25 | };
26 |
27 | #endif //_LIN_EXCEPTION_H_INCLUDED_
28 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/arm:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 | ###MAKE2:make eapol_test preauth_test wpa_gui
3 |
4 | CC=/opt/devicescape/toolchains/armv5b-linux/bin/armv5b-uclibc-gcc
5 |
6 | CONFIG_DRIVER_TEST=y
7 | CONFIG_DRIVER_HOSTAP=y
8 | CONFIG_DRIVER_ATMEL=y
9 | CONFIG_DRIVER_WEXT=y
10 | CONFIG_DRIVER_WIRED=y
11 | CONFIG_IEEE8021X_EAPOL=y
12 | CONFIG_EAP_MD5=y
13 | CONFIG_EAP_MSCHAPV2=y
14 | CONFIG_EAP_TLS=y
15 | CONFIG_EAP_PEAP=y
16 | CONFIG_EAP_TTLS=y
17 | CONFIG_EAP_GTC=y
18 | CONFIG_EAP_OTP=y
19 | CONFIG_EAP_SIM=y
20 | CONFIG_EAP_PSK=y
21 | CONFIG_EAP_PAX=y
22 | CONFIG_EAP_LEAP=y
23 | CONFIG_EAP_AKA=y
24 | CONFIG_EAP_SAKE=y
25 | #CONFIG_EAP_FAST=y
26 | CONFIG_PKCS12=y
27 | CONFIG_SMARTCARD=y
28 | #CONFIG_PCSC=y
29 | CONFIG_CTRL_IFACE=y
30 | CONFIG_READLINE=y
31 | CONFIG_STAKEY=y
32 | #CONFIG_CTRL_IFACE_DBUS=y
33 |
34 | CFLAGS += -Werror
35 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/default:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 | #MAKE2:make eapol_test preauth_test wpa_gui
3 |
4 | CONFIG_DRIVER_TEST=y
5 | CONFIG_DRIVER_HOSTAP=y
6 | CONFIG_DRIVER_ATMEL=y
7 | CONFIG_DRIVER_WEXT=y
8 | CONFIG_DRIVER_WIRED=y
9 | CONFIG_IEEE8021X_EAPOL=y
10 | CONFIG_EAP_MD5=y
11 | CONFIG_EAP_MSCHAPV2=y
12 | CONFIG_EAP_TLS=y
13 | CONFIG_EAP_PEAP=y
14 | CONFIG_EAP_TTLS=y
15 | CONFIG_EAP_GTC=y
16 | CONFIG_EAP_OTP=y
17 | CONFIG_EAP_SIM=y
18 | CONFIG_EAP_PSK=y
19 | CONFIG_EAP_PAX=y
20 | CONFIG_EAP_LEAP=y
21 | CONFIG_EAP_AKA=y
22 | CONFIG_EAP_SAKE=y
23 | CONFIG_EAP_FAST=y
24 | CONFIG_PKCS12=y
25 | CONFIG_SMARTCARD=y
26 | CONFIG_PCSC=y
27 | CONFIG_CTRL_IFACE=y
28 | CONFIG_READLINE=y
29 | CONFIG_STAKEY=y
30 | CONFIG_CTRL_IFACE_DBUS=y
31 |
32 | CFLAGS += -I/q/jm/openssl098/include
33 | LIBS += -L/q/jm/openssl098/lib
34 |
35 | CFLAGS += -Werror
36 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui/wpamsg.h:
--------------------------------------------------------------------------------
1 | #ifndef WPAMSG_H
2 | #define WPAMSG_H
3 |
4 | class WpaMsg;
5 |
6 | #if QT_VERSION >= 0x040000
7 | #include
8 | #include
9 | typedef QLinkedList WpaMsgList;
10 | #else
11 | #include
12 | typedef QValueList WpaMsgList;
13 | #endif
14 |
15 | class WpaMsg {
16 | public:
17 | WpaMsg() {}
18 | WpaMsg(const QString &_msg, int _priority = 2)
19 | : msg(_msg), priority(_priority)
20 | {
21 | timestamp = QDateTime::currentDateTime();
22 | }
23 |
24 | QString getMsg() const { return msg; }
25 | int getPriority() const { return priority; }
26 | QDateTime getTimestamp() const { return timestamp; }
27 |
28 | private:
29 | QString msg;
30 | int priority;
31 | QDateTime timestamp;
32 | };
33 |
34 | #endif /* WPAMSG_H */
35 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpas_glue.h:
--------------------------------------------------------------------------------
1 | /*
2 | * WPA Supplicant - Glue code to setup EAPOL and RSN modules
3 | * Copyright (c) 2003-2008, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef WPAS_GLUE_H
16 | #define WPAS_GLUE_H
17 |
18 | int wpa_supplicant_init_eapol(struct wpa_supplicant *wpa_s);
19 | int wpa_supplicant_init_wpa(struct wpa_supplicant *wpa_s);
20 | void wpa_supplicant_rsn_supp_set_config(struct wpa_supplicant *wpa_s,
21 | struct wpa_ssid *ssid);
22 |
23 | #endif /* WPAS_GLUE_H */
24 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/symbian/README.symbian:
--------------------------------------------------------------------------------
1 | wpa_supplicant for Symbian
2 | ==========================
3 |
4 | Copyright (c) 2003-2007, Jouni Malinen and
5 | contributors
6 | All Rights Reserved.
7 |
8 | This program is dual-licensed under both the GPL version 2 and BSD
9 | license. Either license may be used at your option.
10 |
11 |
12 | This directory includes project files for testing experimental Symbian
13 | (e.g., Nokia S60 3rd Ed) builds. The Symbian port is not really
14 | complete or expected to work, but these files can be used to verify
15 | that the build itself can be completed successfully.
16 |
17 | These files have been successfully tested with Nokia S60 3rd Edition
18 | MR SDK.
19 |
20 | Build files can be created and a phone release build can be run with
21 | following commands:
22 |
23 | bldmake bldfiles
24 | abld build gcce urel
25 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/default-0.3:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 | ###MAKE2:make eapol_test preauth_test wpa_gui
3 |
4 | CONFIG_DRIVER_TEST=y
5 | CONFIG_DRIVER_HOSTAP=y
6 | CONFIG_DRIVER_ATMEL=y
7 | CONFIG_DRIVER_WEXT=y
8 | CONFIG_DRIVER_WIRED=y
9 | CONFIG_IEEE8021X_EAPOL=y
10 | CONFIG_EAP_MD5=y
11 | CONFIG_EAP_MSCHAPV2=y
12 | CONFIG_EAP_TLS=y
13 | CONFIG_EAP_PEAP=y
14 | CONFIG_EAP_TTLS=y
15 | CONFIG_EAP_GTC=y
16 | CONFIG_EAP_OTP=y
17 | CONFIG_EAP_SIM=y
18 | CONFIG_EAP_PSK=y
19 | CONFIG_EAP_PAX=y
20 | CONFIG_EAP_LEAP=y
21 | CONFIG_EAP_AKA=y
22 | CONFIG_EAP_SAKE=y
23 | #CONFIG_EAP_FAST=y
24 | CONFIG_PKCS12=y
25 | CONFIG_SMARTCARD=y
26 | CONFIG_PCSC=y
27 | CONFIG_CTRL_IFACE=y
28 | CONFIG_READLINE=y
29 | CONFIG_STAKEY=y
30 | CONFIG_CTRL_IFACE_DBUS=y
31 |
32 | CFLAGS += -I/q/jm/openssl098/include
33 | LIBS += -L/q/jm/openssl098/lib
34 |
35 | CFLAGS += -Werror
36 | LIBS += -ldl
37 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/dyneap:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 | #MAKE2:make eapol_test preauth_test wpa_gui
3 |
4 | CONFIG_DRIVER_TEST=y
5 | CONFIG_DRIVER_HOSTAP=y
6 | CONFIG_DRIVER_ATMEL=y
7 | CONFIG_DRIVER_WEXT=y
8 | CONFIG_DRIVER_WIRED=y
9 | CONFIG_IEEE8021X_EAPOL=y
10 | CONFIG_EAP_MD5=dyn
11 | CONFIG_EAP_MSCHAPV2=dyn
12 | CONFIG_EAP_TLS=dyn
13 | CONFIG_EAP_PEAP=dyn
14 | CONFIG_EAP_TTLS=dyn
15 | CONFIG_EAP_GTC=dyn
16 | CONFIG_EAP_OTP=dyn
17 | CONFIG_EAP_SIM=dyn
18 | CONFIG_EAP_PSK=dyn
19 | CONFIG_EAP_PAX=dyn
20 | CONFIG_EAP_LEAP=dyn
21 | CONFIG_EAP_AKA=dyn
22 | CONFIG_EAP_SAKE=dyn
23 | CONFIG_EAP_FAST=dyn
24 | CONFIG_PKCS12=y
25 | CONFIG_SMARTCARD=y
26 | CONFIG_PCSC=y
27 | CONFIG_CTRL_IFACE=y
28 | CONFIG_READLINE=y
29 | CONFIG_STAKEY=y
30 | CONFIG_CTRL_IFACE_DBUS=y
31 |
32 | CFLAGS += -I/q/jm/openssl098/include
33 | LIBS += -L/q/jm/openssl098/lib
34 |
35 | CFLAGS += -Werror
36 |
--------------------------------------------------------------------------------
/driver/tools/mttools/shared/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 11872 2011-11-01 09:13:39Z fleytman $
2 |
3 | include $(top_srcdir)/Makefile.am.target_apps
4 |
5 | logger_origin_name = libmttools
6 | logger_origin_id = 6
7 |
8 | noinst_LIBRARIES = libmttools.a
9 |
10 | libmttools_a_SOURCES = driver_api.c driver_api.h \
11 | mtlk_cli_client.c mtlk_cli_client.h \
12 | mtlk_cli_server.c mtlk_cli_server.h \
13 | linux/mtlk_cli_port.c linux/mtlk_cli_port.h \
14 | mtlk_cli_defs.h \
15 | compat.h
16 |
17 | nodist_libmttools_a_SOURCES = $(rtlogger_shared_srcdir)/logmacro_database.c
18 |
19 | AM_CPPFLAGS += -I$(wireless_shared_srcdir) \
20 | -I$(tools_shared_srcdir) \
21 | -I$(fw_shared_srcdir) \
22 | -I$(tools_shared_srcdir)/linux
23 |
--------------------------------------------------------------------------------
/driver/wireless/shared/mtlkerr.c:
--------------------------------------------------------------------------------
1 | #include "mtlkinc.h"
2 |
3 | struct _named_enum_entry
4 | {
5 | int id;
6 | char* description;
7 | };
8 |
9 | #undef MTLK_NAMED_ENUM_START
10 | #undef MTLK_NAMED_ENUM_END
11 | #undef MTLK_NAMED_ENUM_ENTRY
12 |
13 | #define _MTLK_ERR_C_BUILD_
14 |
15 | #define MTLK_NAMED_ENUM_START static const struct \
16 | _named_enum_entry error_descriptions[] = {
17 | #define MTLK_NAMED_ENUM_END(type) {0, NULL} };
18 | #define MTLK_NAMED_ENUM_ENTRY(name, value, descr) {value, descr},
19 |
20 | #include "mtlkerr.h"
21 |
22 | const char* __MTLK_IFUNC
23 | mtlk_get_error_text(mtlk_error_t id)
24 | {
25 | int i;
26 | for(i = 0; NULL != error_descriptions[i].description; i++)
27 | {
28 | if(error_descriptions[i].id == id) return error_descriptions[i].description;
29 | }
30 |
31 | return "UNKNOWN";
32 | }
33 |
34 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/md5_i.h:
--------------------------------------------------------------------------------
1 | /*
2 | * MD5 internal definitions
3 | * Copyright (c) 2003-2005, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef MD5_I_H
16 | #define MD5_I_H
17 |
18 | struct MD5Context {
19 | u32 buf[4];
20 | u32 bits[2];
21 | u8 in[64];
22 | };
23 |
24 | void MD5Init(struct MD5Context *context);
25 | void MD5Update(struct MD5Context *context, unsigned char const *buf,
26 | unsigned len);
27 | void MD5Final(unsigned char digest[16], struct MD5Context *context);
28 |
29 | #endif /* MD5_I_H */
30 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/stringquery.h:
--------------------------------------------------------------------------------
1 | /*
2 | * wpa_gui - StringQuery class
3 | * Copyright (c) 2009, Atheros Communications
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef STRINGQUERY_H
16 | #define STRINGQUERY_H
17 |
18 | #include
19 | #include
20 | #include
21 |
22 | class StringQuery : public QDialog
23 | {
24 | Q_OBJECT
25 |
26 | public:
27 | StringQuery(QString label);
28 | QString get_string();
29 |
30 | private:
31 | QLineEdit *edit;
32 | };
33 |
34 | #endif /* STRINGQUERY_H */
35 |
--------------------------------------------------------------------------------
/driver/tools/mttools/drvhlpr/drvhlpr.h:
--------------------------------------------------------------------------------
1 | #ifndef __DRVMGR_H__
2 | #define __DRVMGR_H__
3 |
4 | #include "compat.h"
5 | #include "dataex.h"
6 |
7 | /* Application return codes */
8 | #define EVENT_DO_NOTHING 0
9 | #define EVENT_REQ_RESET 1
10 | #define EVENT_REQ_RMMOD 2
11 | #define EVENT_CLI_EXIT 3
12 | #define EVENT_INT_ERR 4
13 | #define EVENT_SIGTERM 5
14 |
15 | /* Application bitmask fields */
16 | #define DHFLAG_NO_DRV_HUNG_HANDLING 0x00000001
17 | #define DHFLAG_NO_DRV_RMMOD_HANDLING 0x00000002
18 | #define DHFLAG_NO_WRITE_LED 0x00000004
19 |
20 | #define MTLK_LED_STRING_BUFFER_SIZE 50
21 | #define MTLK_DELAY_READ_SECURITY_CONF 5
22 |
23 | /* band */
24 | typedef enum _mtlk_hw_band {
25 | MTLK_HW_BAND_5_2_GHZ,
26 | MTLK_HW_BAND_2_4_GHZ,
27 | MTLK_HW_BAND_BOTH,
28 | MTLK_HW_BAND_NONE
29 | } mtlk_hw_band;
30 |
31 |
32 | #endif // !__DRVMGR_H__
33 |
34 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/mtlk_pcie_ccr_decls.h:
--------------------------------------------------------------------------------
1 | /* $Id: mtlk_pcie_ccr_decls.h 10358 2011-01-15 09:59:33Z dmytrof $ */
2 |
3 | #if !defined(SAFE_PLACE_TO_INCLUDE_MTLK_PCIE_CCR_DECLS)
4 | #error "You shouldn't include this file directly!"
5 | #endif /* SAFE_PLACE_TO_INCLUDE_MTLK_PCIE_CCR_DECLS */
6 | #undef SAFE_PLACE_TO_INCLUDE_MTLK_PCIE_CCR_DECLS
7 |
8 | #include "g3shram_ex.h"
9 |
10 | typedef struct
11 | {
12 | struct g3_pas_map *pas;
13 | struct _mtlk_pci_drv_t *pci_drv;
14 | uint8 current_ucpu_state;
15 | uint8 current_lcpu_state;
16 | uint8 next_boot_mode;
17 |
18 | volatile BOOL irqs_enabled;
19 | volatile BOOL irq_pending;
20 |
21 | MTLK_DECLARE_INIT_STATUS;
22 | } _mtlk_pcie_ccr_t;
23 |
24 | #define G3PCIE_CPU_Control_BIST_Passed ((1 << 31) | (1 << 15))
25 |
--------------------------------------------------------------------------------
/hostap08/www/wpa_supplicant/conf/eap.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Introduction to EAP authentication
5 |
6 |
7 |
8 |
9 |
14 |
15 | Introduction to EAP authentication
16 |
17 | TODO
18 |
19 |
23 |
24 |
25 | Jouni Malinen
26 |
27 |
28 | Last modified: Sun Feb 26 13:46:19 PST 2006
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/driver/config.h.in:
--------------------------------------------------------------------------------
1 | /* config.h.in. Generated from configure.ac by autoheader. */
2 |
3 | /* Define to 1 if gcc supports builin atomics */
4 | #undef HAVE_BUILTIN_ATOMIC
5 |
6 | /* Define as 1 to tell that we are building on Linux */
7 | #undef LINUX
8 |
9 | /* Standard copyright string */
10 | #undef MTLK_COPYRIGHT
11 |
12 | /* Name of package */
13 | #undef PACKAGE
14 |
15 | /* Define to the address where bug reports for this package should be sent. */
16 | #undef PACKAGE_BUGREPORT
17 |
18 | /* Define to the full name of this package. */
19 | #undef PACKAGE_NAME
20 |
21 | /* Define to the full name and version of this package. */
22 | #undef PACKAGE_STRING
23 |
24 | /* Define to the one symbol short name of this package. */
25 | #undef PACKAGE_TARNAME
26 |
27 | /* Define to the version of this package. */
28 | #undef PACKAGE_VERSION
29 |
30 | /* Version number of package */
31 | #undef VERSION
32 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/logserver/linux/proto_drv.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2007-2008 Metalink Broadband (Israel)
3 | *
4 | * Driver protocol
5 | *
6 | * Written by: Andrey Fidrya
7 | *
8 | */
9 |
10 | #ifndef __PROTO_DRV_H__
11 | #define __PROTO_DRV_H__
12 |
13 | #include "cqueue.h"
14 |
15 | typedef struct _cdev_t
16 | {
17 | char *name;
18 | int fd;
19 | uint16 log_ver_major;
20 | uint16 log_ver_minor;
21 | } cdev_t;
22 |
23 | cdev_t *cdev_open(const char *dev_name);
24 | int cdev_close(cdev_t *dev);
25 | int cdev_read_to_q(cqueue_t *pqueue, cdev_t *dev);
26 |
27 | static inline uint16
28 | cdev_get_ver_major (cdev_t *dev)
29 | {
30 | return dev->log_ver_major;
31 | }
32 |
33 | static inline uint16
34 | cdev_get_ver_minor (cdev_t *dev)
35 | {
36 | return dev->log_ver_minor;
37 | }
38 |
39 | int drv_process_next_pkt(cqueue_t *pqueue);
40 |
41 | #endif // !__PROTO_DRV_H__
42 |
43 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/aes.h:
--------------------------------------------------------------------------------
1 | /*
2 | * AES functions
3 | * Copyright (c) 2003-2006, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef AES_H
16 | #define AES_H
17 |
18 | #define AES_BLOCK_SIZE 16
19 |
20 | void * aes_encrypt_init(const u8 *key, size_t len);
21 | void aes_encrypt(void *ctx, const u8 *plain, u8 *crypt);
22 | void aes_encrypt_deinit(void *ctx);
23 | void * aes_decrypt_init(const u8 *key, size_t len);
24 | void aes_decrypt(void *ctx, const u8 *crypt, u8 *plain);
25 | void aes_decrypt_deinit(void *ctx);
26 |
27 | #endif /* AES_H */
28 |
--------------------------------------------------------------------------------
/driver/tools/mttools/drvhlpr/ledsctrl.h:
--------------------------------------------------------------------------------
1 | #ifndef __LEDS_CTRL_H__
2 | #define __LEDS_CTRL_H__
3 |
4 | #include "mtlkcontainer.h"
5 |
6 | extern const mtlk_component_api_t irb_leds_ctrl_api;
7 |
8 |
9 | /* Private API.
10 | */
11 | char *leds_ctrl_get_string(void);
12 | char *leds_ctrl_get_bin_string(void);
13 | void leds_ctrl_set_param(const char *key, const char *value);
14 | void leds_ctrl_set_bin_param(const char *key, const int value);
15 |
16 | void leds_ctrl_set_wps_stat(uint8 val);
17 | void leds_ctrl_set_mask(uint32 val);
18 | void leds_ctrl_set_leds_resolution(int val);
19 | int leds_ctrl_set_network_type(char* str);
20 | int leds_ctrl_set_link_path(char* str);
21 | int leds_ctrl_set_link_status_path(char* str);
22 | void leds_ctrl_set_security_mode(int val);
23 | void leds_ctrl_set_reconf_security(int val);
24 | void leds_ctrl_set_conf_file(const char* str);
25 |
26 | #endif /* __LEDS_CTRL_H__ */
27 |
--------------------------------------------------------------------------------
/hostap08/radius_example/Makefile:
--------------------------------------------------------------------------------
1 | ALL=radius_example
2 |
3 | all: $(ALL)
4 |
5 | ifndef CC
6 | CC=gcc
7 | endif
8 |
9 | ifndef LDO
10 | LDO=$(CC)
11 | endif
12 |
13 | ifndef CFLAGS
14 | CFLAGS = -MMD -O2 -Wall -g
15 | endif
16 |
17 | CFLAGS += -I.
18 | CFLAGS += -I../src
19 | CFLAGS += -I../src/utils
20 |
21 | LIBS = ../src/radius/libradius.a
22 | LIBS += ../src/crypto/libcrypto.a
23 | LIBS += ../src/utils/libutils.a
24 |
25 | ../src/utils/libutils.a:
26 | $(MAKE) -C ../src/utils
27 |
28 | ../src/crypto/libcrypto.a:
29 | $(MAKE) -C ../src/crypto
30 |
31 | ../src/radius/libradius.a:
32 | $(MAKE) -C ../src/radius
33 |
34 | #CLAGS += -DCONFIG_IPV6
35 |
36 | OBJS_ex = radius_example.o
37 |
38 | radius_example: $(OBJS_ex) $(LIBS)
39 | $(LDO) $(LDFLAGS) -o radius_example $(OBJS_ex) $(LIBS)
40 |
41 | clean:
42 | $(MAKE) -C ../src clean
43 | rm -f core *~ *.o *.d $(ALL)
44 |
45 | -include $(OBJS:%.o=%.d)
46 |
--------------------------------------------------------------------------------
/hostap08/www/wpa_supplicant/conf/configure.css:
--------------------------------------------------------------------------------
1 | body{
2 | font: normal 80% Verdana, Helvetica;
3 | }
4 |
5 | .confdesc{
6 | width: 80%;
7 | border: 1px solid black;
8 | background-color: #ededed;
9 | padding: 5px;
10 | font-size: 90%;
11 | visibility: hidden;
12 | margin-left: 30px;
13 | }
14 |
15 | .exampleconf{
16 | width: 98%;
17 | border: 1px solid black;
18 | background-color: #ededed;
19 | padding: 5px;
20 | font-family: Courier;
21 | font-size: 100%;
22 | }
23 |
24 | .todo{
25 | font-style: italic;
26 | color: red;
27 | }
28 |
29 | .error{
30 | color: red;
31 | }
32 |
33 | .credlayer{
34 | display: none;
35 | }
36 |
37 | #navig{
38 | font: normal 100% Verdana, Helvetica;
39 | margin-left: 0px;
40 | margin-top: 0px;
41 | padding: 0px;
42 | margin: 0px;
43 | display: inline;
44 | }
45 |
46 | #navig a {
47 | text-decoration: none;
48 | color: navy;
49 | }
--------------------------------------------------------------------------------
/driver/wireless/shared/mtlkmetrics.h:
--------------------------------------------------------------------------------
1 | #ifndef __MTLK_METRICS_H__
2 | #define __MTLK_METRICS_H__
3 |
4 | #include "shram.h"
5 |
6 | #define MTLK_IDEFS_ON
7 | #include "mtlkidefs.h"
8 |
9 | typedef ASL_SHRAM_METRIC_T mtlk_g2_rx_metrics_t;
10 |
11 | uint32 __MTLK_IFUNC mtlk_metrics_calc_effective_snr(mtlk_g2_rx_metrics_t *raw_metrics,
12 | uint8 *mcs_feedback,
13 | uint32 *short_cp_metric);
14 |
15 | uint32 __MTLK_IFUNC mtlk_calculate_effective_snr_margin(uint32 metric, uint8 mcs_feedback);
16 |
17 | #define ESNR_DB_RESOLUTION 10 /* 0.1 db */
18 | #define ESNR_DB_BASE (45 * ESNR_DB_RESOLUTION)
19 |
20 | uint32 __MTLK_IFUNC mtlk_get_esnr_db(uint32 metric, uint8 mcs_feedback);
21 |
22 | #define MTLK_IDEFS_OFF
23 | #include "mtlkidefs.h"
24 |
25 | #endif /* __MTLK_METRICS_H__ */
26 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/icons/Makefile:
--------------------------------------------------------------------------------
1 | #!/usr/bin/make -f
2 |
3 | NAMES := wpa_gui ap laptop group invitation
4 | SIZES := 16x16 22x22 32x32 48x48 64x64 128x128
5 | ICONS := $(addsuffix .png, $(foreach name, $(NAMES), $(foreach size, $(SIZES), $(size)/$(name))))
6 | ICONS += $(addsuffix .xpm, $(NAMES))
7 |
8 | all: $(ICONS)
9 |
10 | %.png:
11 | mkdir -p hicolor/$(word 1, $(subst /, ,$(@)))/apps/
12 | inkscape $(subst .png,.svg, $(word 2, $(subst /, , $(@)))) --without-gui \
13 | --export-width=$(word 1, $(subst x, , $(@))) \
14 | --export-height=$(word 2, $(subst x, , $(subst /, , $(@)))) \
15 | --export-png=hicolor/$(word 1, $(subst /, ,$(@)))/apps/$(word 2, $(subst /, , $@))
16 |
17 | %.xpm:
18 | mkdir -p pixmaps/
19 | convert hicolor/16x16/apps/$(@:.xpm=.png) pixmaps/$(@:.xpm=-16.xpm)
20 | convert hicolor/32x32/apps/$(@:.xpm=.png) pixmaps/$@
21 |
22 | clean:
23 | $(RM) -r pixmaps hicolor
24 |
--------------------------------------------------------------------------------
/hostap08/src/ap/ctrl_iface_ap.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Control interface for shared AP commands
3 | * Copyright (c) 2004-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef CTRL_IFACE_AP_H
16 | #define CTRL_IFACE_AP_H
17 |
18 | int hostapd_ctrl_iface_sta_first(struct hostapd_data *hapd,
19 | char *buf, size_t buflen);
20 | int hostapd_ctrl_iface_sta(struct hostapd_data *hapd, const char *txtaddr,
21 | char *buf, size_t buflen);
22 | int hostapd_ctrl_iface_sta_next(struct hostapd_data *hapd, const char *txtaddr,
23 | char *buf, size_t buflen);
24 |
25 | #endif /* CTRL_IFACE_AP_H */
26 |
--------------------------------------------------------------------------------
/hostap08/src/utils/edit.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Command line editing and history
3 | * Copyright (c) 2010, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef EDIT_H
16 | #define EDIT_H
17 |
18 | int edit_init(void (*cmd_cb)(void *ctx, char *cmd),
19 | void (*eof_cb)(void *ctx),
20 | char ** (*completion_cb)(void *ctx, const char *cmd, int pos),
21 | void *ctx, const char *history_file);
22 | void edit_deinit(const char *history_file,
23 | int (*filter_cb)(void *ctx, const char *cmd));
24 | void edit_clear_line(void);
25 | void edit_redraw(void);
26 |
27 | #endif /* EDIT_H */
28 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/windows-0.4:
--------------------------------------------------------------------------------
1 | #MAKE:make windows-bin
2 |
3 | CONFIG_DRIVER_NDIS=y
4 | CONFIG_NATIVE_WINDOWS=y
5 |
6 | CFLAGS += -I/opt/xmingw/i386-mingw32msvc/include/ddk
7 | CC=/opt/xmingw/bin/i386-mingw32msvc-gcc
8 | STRIP=/opt/xmingw/bin/i386-mingw32msvc-strip
9 |
10 | PLATFORMSDKLIB=/home/jm/H-win/local/lib
11 | CFLAGS += -I/home/jm/H-win/local/include
12 | LIBS += -L/home/jm/H-win/local/lib
13 | LIBS_w += -L/home/jm/H-win/local/lib
14 | LIBS_p += -L/home/jm/H-win/local/lib
15 |
16 | CONFIG_EAP_SIM=y
17 | CONFIG_EAP_LEAP=y
18 | CONFIG_EAP_TLS=y
19 |
20 | CONFIG_CTRL_IFACE=y
21 | CONFIG_EAP_FAST=y
22 | CONFIG_EAP_MSCHAPV2=y
23 | CONFIG_EAP_TTLS=y
24 | CONFIG_EAP_PEAP=y
25 | CONFIG_EAP_MD5=y
26 | CONFIG_EAP_GTC=y
27 | CONFIG_EAP_OTP=y
28 | CONFIG_PKCS12=y
29 |
30 | CONFIG_SMARTCARD=y
31 |
32 | CONFIG_EAP_PSK=y
33 | CONFIG_EAP_PAX=y
34 | CONFIG_EAP_SAKE=y
35 |
36 | CONFIG_EAPOL_TEST=y
37 |
38 | CONFIG_L2_PACKET=winpcap
39 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/windows2-0.3:
--------------------------------------------------------------------------------
1 | #MAKE:make windows-bin
2 |
3 | CONFIG_DRIVER_NDIS=y
4 | CONFIG_NATIVE_WINDOWS=y
5 |
6 | CFLAGS += -I/opt/xmingw/i386-mingw32msvc/include/ddk
7 | CC=/opt/xmingw/bin/i386-mingw32msvc-gcc
8 | STRIP=/opt/xmingw/bin/i386-mingw32msvc-strip
9 |
10 | PLATFORMSDKLIB=/home/jm/H-win/local/lib
11 | CFLAGS += -I/home/jm/H-win/local/include
12 | LIBS += -L/home/jm/H-win/local/lib
13 | LIBS_w += -L/home/jm/H-win/local/lib
14 | LIBS_p += -L/home/jm/H-win/local/lib
15 |
16 | CONFIG_EAP_SIM=y
17 | CONFIG_EAP_LEAP=y
18 | CONFIG_EAP_TLS=y
19 |
20 | CONFIG_CTRL_IFACE=y
21 | #CONFIG_EAP_FAST=y
22 | CONFIG_EAP_MSCHAPV2=y
23 | CONFIG_EAP_TTLS=y
24 | CONFIG_EAP_PEAP=y
25 | CONFIG_EAP_MD5=y
26 | CONFIG_EAP_GTC=y
27 | CONFIG_EAP_OTP=y
28 | CONFIG_PKCS12=y
29 |
30 | CONFIG_SMARTCARD=y
31 |
32 | CONFIG_EAP_PSK=y
33 | CONFIG_EAP_PAX=y
34 | CONFIG_EAP_SAKE=y
35 |
36 | #CONFIG_EAPOL_TEST=y
37 |
38 | CONFIG_L2_PACKET=pcap
39 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/windows2-0.4:
--------------------------------------------------------------------------------
1 | #MAKE:make windows-bin
2 |
3 | CONFIG_DRIVER_NDIS=y
4 | CONFIG_NATIVE_WINDOWS=y
5 |
6 | CFLAGS += -I/opt/xmingw/i386-mingw32msvc/include/ddk
7 | CC=/opt/xmingw/bin/i386-mingw32msvc-gcc
8 | STRIP=/opt/xmingw/bin/i386-mingw32msvc-strip
9 |
10 | PLATFORMSDKLIB=/home/jm/H-win/local/lib
11 | CFLAGS += -I/home/jm/H-win/local/include
12 | LIBS += -L/home/jm/H-win/local/lib
13 | LIBS_w += -L/home/jm/H-win/local/lib
14 | LIBS_p += -L/home/jm/H-win/local/lib
15 |
16 | CONFIG_EAP_SIM=y
17 | CONFIG_EAP_LEAP=y
18 | CONFIG_EAP_TLS=y
19 |
20 | CONFIG_CTRL_IFACE=y
21 | CONFIG_EAP_FAST=y
22 | CONFIG_EAP_MSCHAPV2=y
23 | CONFIG_EAP_TTLS=y
24 | CONFIG_EAP_PEAP=y
25 | CONFIG_EAP_MD5=y
26 | CONFIG_EAP_GTC=y
27 | CONFIG_EAP_OTP=y
28 | CONFIG_PKCS12=y
29 |
30 | CONFIG_SMARTCARD=y
31 |
32 | CONFIG_EAP_PSK=y
33 | CONFIG_EAP_PAX=y
34 | CONFIG_EAP_SAKE=y
35 |
36 | CONFIG_EAPOL_TEST=y
37 |
38 | CONFIG_L2_PACKET=pcap
39 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/sha1_i.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SHA1 internal definitions
3 | * Copyright (c) 2003-2005, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef SHA1_I_H
16 | #define SHA1_I_H
17 |
18 | struct SHA1Context {
19 | u32 state[5];
20 | u32 count[2];
21 | unsigned char buffer[64];
22 | };
23 |
24 | void SHA1Init(struct SHA1Context *context);
25 | void SHA1Update(struct SHA1Context *context, const void *data, u32 len);
26 | void SHA1Final(unsigned char digest[20], struct SHA1Context *context);
27 | void SHA1Transform(u32 state[5], const unsigned char buffer[64]);
28 |
29 | #endif /* SHA1_I_H */
30 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/windows-0.3:
--------------------------------------------------------------------------------
1 | #MAKE:make windows-bin
2 |
3 | CONFIG_DRIVER_NDIS=y
4 | CONFIG_NATIVE_WINDOWS=y
5 |
6 | CFLAGS += -I/opt/xmingw/i386-mingw32msvc/include/ddk
7 | CC=/opt/xmingw/bin/i386-mingw32msvc-gcc
8 | STRIP=/opt/xmingw/bin/i386-mingw32msvc-strip
9 |
10 | PLATFORMSDKLIB=/home/jm/H-win/local/lib
11 | CFLAGS += -I/home/jm/H-win/local/include
12 | LIBS += -L/home/jm/H-win/local/lib
13 | LIBS_w += -L/home/jm/H-win/local/lib
14 | LIBS_p += -L/home/jm/H-win/local/lib
15 |
16 | CONFIG_EAP_SIM=y
17 | CONFIG_EAP_LEAP=y
18 | CONFIG_EAP_TLS=y
19 |
20 | CONFIG_CTRL_IFACE=y
21 | #CONFIG_EAP_FAST=y
22 | CONFIG_EAP_MSCHAPV2=y
23 | CONFIG_EAP_TTLS=y
24 | CONFIG_EAP_PEAP=y
25 | CONFIG_EAP_MD5=y
26 | CONFIG_EAP_GTC=y
27 | CONFIG_EAP_OTP=y
28 | CONFIG_PKCS12=y
29 |
30 | CONFIG_SMARTCARD=y
31 |
32 | CONFIG_EAP_PSK=y
33 | CONFIG_EAP_PAX=y
34 | CONFIG_EAP_SAKE=y
35 |
36 | #CONFIG_EAPOL_TEST=y
37 |
38 | CONFIG_L2_PACKET=winpcap
39 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/dbus/dbus_common.h:
--------------------------------------------------------------------------------
1 | /*
2 | * wpa_supplicant D-Bus control interface - common definitions
3 | * Copyright (c) 2006, Dan Williams and Red Hat, Inc.
4 | * Copyright (c) 2009, Witold Sowa
5 | * Copyright (c) 2009, Jouni Malinen
6 | *
7 | * This program is free software; you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License version 2 as
9 | * published by the Free Software Foundation.
10 | *
11 | * Alternatively, this software may be distributed under the terms of BSD
12 | * license.
13 | *
14 | * See README and COPYING for more details.
15 | */
16 |
17 | #ifndef DBUS_COMMON_H
18 | #define DBUS_COMMON_H
19 |
20 | struct wpas_dbus_priv;
21 | struct wpa_global;
22 |
23 | struct wpas_dbus_priv * wpas_dbus_init(struct wpa_global *global);
24 | void wpas_dbus_deinit(struct wpas_dbus_priv *priv);
25 |
26 | #endif /* DBUS_COMMON_H */
27 |
--------------------------------------------------------------------------------
/hostap08/www/wpa_supplicant/conf/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Configuring wpa_supplicant
5 |
6 |
7 |
8 |
9 |
13 |
14 | Configuring wpa_supplicant
15 |
16 |
21 |
22 |
23 | Jouni Malinen
24 |
25 |
26 | Last modified: Sun Feb 26 13:42:02 PST 2006
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/hostap08/src/drivers/rfkill.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Linux rfkill helper functions for driver wrappers
3 | * Copyright (c) 2010, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef RFKILL_H
16 | #define RFKILL_H
17 |
18 | struct rfkill_data;
19 |
20 | struct rfkill_config {
21 | void *ctx;
22 | char ifname[IFNAMSIZ];
23 | void (*blocked_cb)(void *ctx);
24 | void (*unblocked_cb)(void *ctx);
25 | };
26 |
27 | struct rfkill_data * rfkill_init(struct rfkill_config *cfg);
28 | void rfkill_deinit(struct rfkill_data *rfkill);
29 | int rfkill_is_blocked(struct rfkill_data *rfkill);
30 |
31 | #endif /* RFKILL_H */
32 |
--------------------------------------------------------------------------------
/driver/support/bewan.env:
--------------------------------------------------------------------------------
1 | #WARNING: values of DEFAULT_TOOLCHAIN_PATH, DEFAULT_KERNEL_DIR and DEFAULT_KERNEL_CROSS_COMPILE
2 | # variables are assigned in this file but should never be used directly.
3 | # $(get_toolchain_path), $(get_kernel_dir) and $(get_kernel_cross_compile) to be used instead
4 |
5 | #Toolchain path for applications build
6 | DEFAULT_TOOLCHAIN_PATH=$BSP_CROSS_ROOT
7 |
8 | #Compiler/precompiler flags applications build
9 | CC=$CC
10 | CXX=$CXX
11 | CFLAGS=$CFLAGS
12 | CPPFLAGS=$CPPFLAGS
13 | LDFLAGS="$LDFLAGS -lnl"
14 | CXXFLAGS=$CFLAGS $CXXFLAGS
15 |
16 | #Linker flags for C++ applications linkage
17 | cxx_ldadd=
18 |
19 | #Additional kernel flags for this platform
20 | kernel_cflags=-mlong-calls
21 |
22 | #Target kernel architecture
23 | kernel_arch=$BEWAN_CONFIG_ARCH
24 | #Kernel directory location
25 | DEFAULT_KERNEL_DIR=$BSP_KERNEL_PATH
26 | #Prefix for kernel compiler/binutils
27 | DEFAULT_KERNEL_CROSS_COMPILE=$CROSS
28 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/gcc-cvs:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CONFIG_DRIVER_HOSTAP=y
4 | CONFIG_DRIVER_MADWIFI=y
5 | CFLAGS += -I/home/jm/work/madwifi-BSD
6 |
7 | CONFIG_DRIVER_PRISM54=y
8 | CONFIG_DRIVER_NDISWRAPPER=y
9 | CONFIG_DRIVER_ATMEL=y
10 | CONFIG_DRIVER_IPW=y
11 | CONFIG_DRIVER_WEXT=y
12 | CONFIG_DRIVER_TEST=y
13 | CONFIG_EAP_MD5=y
14 | CONFIG_EAP_MSCHAPV2=y
15 | CONFIG_EAP_TLS=y
16 | CONFIG_EAP_PEAP=y
17 | CONFIG_EAP_TTLS=y
18 | CONFIG_EAP_GTC=y
19 | CONFIG_EAP_OTP=y
20 | CONFIG_EAP_SIM=y
21 | CONFIG_EAP_PSK=y
22 | CONFIG_EAP_PAX=y
23 | CONFIG_EAP_LEAP=y
24 | CONFIG_EAP_AKA=y
25 | CONFIG_EAP_SAKE=y
26 | CONFIG_PKCS12=y
27 | #CONFIG_PCSC=y
28 | CONFIG_EAPOL_TEST=y
29 | CONFIG_CTRL_IFACE=y
30 | CONFIG_READLINE=y
31 |
32 | CC=/hiski/jm/tmp/gcc-install2/bin/i686-pc-linux-gnu-gcc-4.1.0
33 |
34 | CFLAGS += -Werror
35 |
36 | CONFIG_SMARTCARD=y
37 |
38 | CONFIG_EAP_FAST=y
39 | CFLAGS += -I/q/jm/openssl098/include
40 | LIBS += -L/q/jm/openssl098/lib
41 |
--------------------------------------------------------------------------------
/driver/tools/mttools/mtlk_cli_dbg_srv/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 11014 2011-04-12 16:13:52Z andriit $
2 |
3 | include $(top_srcdir)/Makefile.am.target_apps
4 |
5 | tests_PROGRAMS = mtlk_cli_dbg_srv
6 |
7 | mtlk_cli_dbg_srv_SOURCES = main_dbg_server.c
8 |
9 | nodist_mtlk_cli_dbg_srv_SOURCES = app_info.c \
10 | $(rtlogger_shared_srcdir)/logmacro_database.c
11 |
12 | mtlk_cli_dbg_srv_LDADD = $(builddir)/../shared/libmttools.a \
13 | @ld_group_start@ \
14 | $(tools_shared_builddir)/linux/libmtlkc.a \
15 | $(wireless_shared_builddir)/libmtlkwls.a \
16 | @ld_group_end@ \
17 | -lpthread
18 |
19 | AM_CPPFLAGS += -I$(srcdir)/../shared/ \
20 | -I$(srcdir)/../shared/linux \
21 | -I$(wireless_shared_srcdir) \
22 | -I$(tools_shared_srcdir)/linux \
23 | -I$(tools_shared_srcdir)
24 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/progmodel.h:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: progmodel.h 11242 2011-06-08 10:00:06Z Strashko $
3 | *
4 | * Copyright (c) 2006-2007 Metalink Broadband (Israel)
5 | *
6 | * Progmodel
7 | *
8 | */
9 | #ifndef __PROGMODEL_H__
10 | #define __PROGMODEL_H__
11 |
12 | #include "txmm.h"
13 |
14 | struct nic;
15 | typedef struct mtlk_progmodel mtlk_progmodel_t;
16 |
17 | mtlk_progmodel_t * __MTLK_IFUNC mtlk_progmodel_create(mtlk_txmm_t *txmm, struct nic *nic, int freq, int spectrum);
18 | int __MTLK_IFUNC mtlk_progmodel_load_from_os(mtlk_progmodel_t *fw);
19 | int __MTLK_IFUNC mtlk_progmodel_load_to_hw(const mtlk_progmodel_t *fw);
20 | void __MTLK_IFUNC mtlk_progmodel_delete(mtlk_progmodel_t *fw);
21 | int mtlk_progmodel_load(mtlk_txmm_t *txmm, struct nic *nic, int freq, int spectrum);
22 | uint8 __MTLK_IFUNC mtlk_progmodel_get_spectrum(mtlk_progmodel_t *fw);
23 | BOOL __MTLK_IFUNC mtlk_progmodel_is_loaded(const mtlk_progmodel_t *fw);
24 |
25 | #endif
26 |
27 |
--------------------------------------------------------------------------------
/hostap08/eap_example/server-key.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIICXAIBAAKBgQDToYuDPmjEWu+/Aj0RVWTSb07sX6dAkPnrTaUjZAG5AhjRqJWz
3 | zD50kFmVKi+R7GgS5tlGzLUtokdwjuSUAmz8tMXwIwmVeS0HluFDVSi94XbVRczE
4 | +nyoDigg1RGyy1mc3t5RG84bvNatq98OceJag4ngh8L8I4k1qTLRMlyBJwIDAQAB
5 | AoGAP+v0asDn/h8FeSkg7uJfIJyUNxsxNnRTuHnsXkMvrgTvICyOgw828hhDpqVm
6 | VuoUCVmG2Tatpsn0UBApBHezGRh0u1syWoGM8fiDvZmoYmhFe5FxKnftg3KNXhDf
7 | Agk4OxwNNPBXpQFQP+GNxh6Qs7FEkYHLRh/J7vC0+wp3UWECQQDzcTQZXqYPow5M
8 | uinL819HKfh1n2257w1HGvw8cMCiYbKRyR74Q18TJcxuEyEwnPrg5ZGpMPDKiIOU
9 | SlgAMLBXAkEA3oxBpRue1Kqb2+Fq6lhZ7PQiZC5F69upIb/wxbk8ByImEl1pUKFW
10 | rV+YoKujbnj77PmMq1+R0dFkT1ai3zDzsQJBAMa3CUgMMpFhEDMhYyzQJF36rI2W
11 | 7gJwV+5K4MqVXyktho3qFhWhKOKAYDcZ9mWwPjmGKzhocqVgecd6SAsfs1ECQA7r
12 | xHL3eRy1G6IQaQSxS8YxUCT7XUDFB3/1yITZOIcZ6QeOL8NyLceOA0OyflCn1+w5
13 | hw7uZ25z5Y/UNTNVquECQEgto3zPneEW06qkEnRz9EbLtWR3nRBS/QGrjOFNUuln
14 | pNhVUH4RB17Kk35xveUTz4U/Iw/WRfGNjFLHrtR/5xk=
15 | -----END RSA PRIVATE KEY-----
16 |
--------------------------------------------------------------------------------
/driver/wireless/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 11571 2011-08-28 10:22:01Z fleytman $
2 |
3 | include $(top_srcdir)/Makefile.am.common
4 |
5 | #Reminder: Subdir shared added via root Makefile
6 | # Do not put it here
7 |
8 | SUBDIRS = driver
9 |
10 | EXTRA_DIST = shared_mbss_mac/msgid.h shared_mbss_mac/mhi_rsn_caps.h \
11 | shared_mbss_mac/mhi_frame.h shared_mbss_mac/mtlkbfield.h \
12 | shared_mbss_mac/mhi_umi_propr.h shared_mbss_mac/rsn.h \
13 | shared_mbss_mac/mhi_statistics.h shared_mbss_mac/umi_rsn.h \
14 | shared_mbss_mac/mhi_ieee_address.h shared_mbss_mac/mhi_umi.h \
15 | shared_mbss_mac/shram.h shared_mbss_mac/host_if.h \
16 | shared_mbss_mac/mhi_mib_id.h shared_mbss_mac/mhi_mac_event.h
17 |
18 | if BUILD_WIRELESS_DATA
19 |
20 | nodist_wls_DATA= $(top_builddir)/.config \
21 | $(srcdir)/rnotes.txt
22 |
23 | EXTRA_DIST += $(srcdir)/rnotes.txt
24 |
25 | endif
26 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/mib_osdep.h:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: mib_osdep.h 12028 2011-11-27 16:17:04Z hatinecs $
3 | *
4 | * Copyright (c) 2006-2007 Metalink Broadband (Israel)
5 | *
6 | * Authors: originaly written by Joel Isaacson;
7 | * further development and support by: Andriy Tkachuk, Artem Migaev,
8 | * Oleksandr Andrushchenko.
9 | *
10 | */
11 |
12 | #ifndef _MIB_OSDEP_H_
13 | #define _MIB_OSDEP_H_
14 |
15 | #include "mhi_umi.h"
16 | #include "mhi_mib_id.h"
17 |
18 | #include "core.h"
19 |
20 | #define LOG_LOCAL_GID GID_MIBS
21 | #define LOG_LOCAL_FID 0
22 |
23 | void mtlk_mib_set_nic_cfg (struct nic *nic);
24 |
25 | int mtlk_set_mib_values(struct nic *nic);
26 | int mtlk_mib_set_forced_rates (struct nic *nic);
27 | int mtlk_mib_set_power_selection (struct nic *nic);
28 |
29 | void mtlk_mib_update_pm_related_mibs (struct nic *nic, mtlk_aux_pm_related_params_t *data);
30 |
31 | #undef LOG_LOCAL_GID
32 | #undef LOG_LOCAL_FID
33 |
34 | #endif // _MIB_OSDEP_H_
35 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/mtlk_pcig3_ccr_decls.h:
--------------------------------------------------------------------------------
1 | /* $Id: mtlk_pcig3_ccr_decls.h 10358 2011-01-15 09:59:33Z dmytrof $ */
2 |
3 | #if !defined(SAFE_PLACE_TO_INCLUDE_MTLK_PCIG3_CCR_DECLS)
4 | #error "You shouldn't include this file directly!"
5 | #endif /* SAFE_PLACE_TO_INCLUDE_MTLK_PCIG3_CCR_DECLS */
6 | #undef SAFE_PLACE_TO_INCLUDE_MTLK_PCIG3_CCR_DECLS
7 |
8 | #include "shram_ex.h"
9 | #include "pcishram_ex.h"
10 | #include "g3shram_ex.h"
11 |
12 | typedef struct
13 | {
14 | struct pci_hrc_regs *hrc;
15 | struct g3_pas_map *pas;
16 | struct _mtlk_pci_drv_t *pci_drv;
17 | } _mtlk_pcig3_ccr_t;
18 |
19 | #define G3_BIST_DONE_MASK (1 << 3)
20 | #define G3_BIST_RED_MASK (1 << 2)
21 | #define G3_BIST_SINGLE_MASK (1 << 1)
22 |
23 | #define G3_BIST_SUCCESS_MASK ( G3_BIST_DONE_MASK | \
24 | G3_BIST_RED_MASK | \
25 | G3_BIST_SINGLE_MASK )
26 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/dbus/dbus_common_i.h:
--------------------------------------------------------------------------------
1 | /*
2 | * wpa_supplicant D-Bus control interface - internal definitions
3 | * Copyright (c) 2006, Dan Williams and Red Hat, Inc.
4 | * Copyright (c) 2009, Witold Sowa
5 | * Copyright (c) 2009, Jouni Malinen
6 | *
7 | * This program is free software; you can redistribute it and/or modify
8 | * it under the terms of the GNU General Public License version 2 as
9 | * published by the Free Software Foundation.
10 | *
11 | * Alternatively, this software may be distributed under the terms of BSD
12 | * license.
13 | *
14 | * See README and COPYING for more details.
15 | */
16 |
17 | #ifndef DBUS_COMMON_I_H
18 | #define DBUS_COMMON_I_H
19 |
20 | #include
21 |
22 | struct wpas_dbus_priv {
23 | DBusConnection *con;
24 | int should_dispatch;
25 | struct wpa_global *global;
26 | u32 next_objid;
27 | int dbus_new_initialized;
28 | };
29 |
30 | #endif /* DBUS_COMMON_I_H */
31 |
--------------------------------------------------------------------------------
/hostap08/src/eap_common/chap.c:
--------------------------------------------------------------------------------
1 | /*
2 | * CHAP-MD5 (RFC 1994)
3 | * Copyright (c) 2007-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #include "includes.h"
16 |
17 | #include "common.h"
18 | #include "crypto/crypto.h"
19 | #include "chap.h"
20 |
21 | int chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge,
22 | size_t challenge_len, u8 *response)
23 | {
24 | const u8 *addr[3];
25 | size_t len[3];
26 |
27 | addr[0] = &id;
28 | len[0] = 1;
29 | addr[1] = secret;
30 | len[1] = secret_len;
31 | addr[2] = challenge;
32 | len[2] = challenge_len;
33 | return md5_vector(3, addr, len, response);
34 | }
35 |
--------------------------------------------------------------------------------
/driver/tools/shared/ParamInfo.cpp:
--------------------------------------------------------------------------------
1 | #include "mtlkinc.h"
2 | #include "ParamInfo.h"
3 |
4 | #include
5 |
6 | string CHelpScreen::GetHelp(void) const
7 | {
8 | stringstream strm;
9 |
10 | for(vector::const_iterator it = m_Params.begin(); it != m_Params.end(); ++it)
11 | {
12 | strm << "[-" << it->Name.first << "|--"
13 | << it->Name.second << "]";
14 | if(0 != it->ValueTemplate[0])
15 | strm << "<" << it->ValueTemplate << ">";
16 | strm << " ";
17 | }
18 |
19 | strm << endl << endl << "Supported command line parameters:" << endl;
20 |
21 | //Output detailed params description
22 | for(vector::const_iterator it = m_Params.begin(); it != m_Params.end(); ++it)
23 | {
24 | strm << " " << "[-" << it->Name.first << "|--"
25 | << it->Name.second << "]" << endl << " "
26 | << it->Description << endl;
27 | }
28 |
29 | return strm.str();
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/dh_groups.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Diffie-Hellman groups
3 | * Copyright (c) 2007, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef DH_GROUPS_H
16 | #define DH_GROUPS_H
17 |
18 | struct dh_group {
19 | int id;
20 | const u8 *generator;
21 | size_t generator_len;
22 | const u8 *prime;
23 | size_t prime_len;
24 | };
25 |
26 | const struct dh_group * dh_groups_get(int id);
27 | struct wpabuf * dh_init(const struct dh_group *dh, struct wpabuf **priv);
28 | struct wpabuf * dh_derive_shared(const struct wpabuf *peer_public,
29 | const struct wpabuf *own_private,
30 | const struct dh_group *dh);
31 |
32 | #endif /* DH_GROUPS_H */
33 |
--------------------------------------------------------------------------------
/hostap08/src/eap_common/eap_common.h:
--------------------------------------------------------------------------------
1 | /*
2 | * EAP common peer/server definitions
3 | * Copyright (c) 2004-2007, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef EAP_COMMON_H
16 | #define EAP_COMMON_H
17 |
18 | #include "wpabuf.h"
19 |
20 | const u8 * eap_hdr_validate(int vendor, EapType eap_type,
21 | const struct wpabuf *msg, size_t *plen);
22 | struct wpabuf * eap_msg_alloc(int vendor, EapType type, size_t payload_len,
23 | u8 code, u8 identifier);
24 | void eap_update_len(struct wpabuf *msg);
25 | u8 eap_get_id(const struct wpabuf *msg);
26 | EapType eap_get_type(const struct wpabuf *msg);
27 |
28 | #endif /* EAP_COMMON_H */
29 |
--------------------------------------------------------------------------------
/hostap08/src/tls/rsa.h:
--------------------------------------------------------------------------------
1 | /*
2 | * RSA
3 | * Copyright (c) 2006, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef RSA_H
16 | #define RSA_H
17 |
18 | struct crypto_rsa_key;
19 |
20 | struct crypto_rsa_key *
21 | crypto_rsa_import_public_key(const u8 *buf, size_t len);
22 | struct crypto_rsa_key *
23 | crypto_rsa_import_private_key(const u8 *buf, size_t len);
24 | size_t crypto_rsa_get_modulus_len(struct crypto_rsa_key *key);
25 | int crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,
26 | struct crypto_rsa_key *key, int use_private);
27 | void crypto_rsa_free(struct crypto_rsa_key *key);
28 |
29 | #endif /* RSA_H */
30 |
--------------------------------------------------------------------------------
/driver/support/vb300-linux26.env:
--------------------------------------------------------------------------------
1 | #WARNING: values of DEFAULT_TOOLCHAIN_PATH, DEFAULT_KERNEL_DIR and DEFAULT_KERNEL_CROSS_COMPILE
2 | # variables are assigned in this file but should never be used directly.
3 | # $(get_toolchain_path), $(get_kernel_dir) and $(get_kernel_cross_compile) to be used instead
4 |
5 | #Toolchain path for applications build
6 | DEFAULT_TOOLCHAIN_PATH=/opt/toolchains/lantiq/vb300/nv_2.2.4/toolchain-mips/bin-ccache
7 |
8 | #Compiler/precompiler flags applications build
9 | CC="$(get_toolchain_path)/mips-linux-gcc"
10 | CXX="$(get_toolchain_path)/mips-linux-g++"
11 | CFLAGS="-Os"
12 | #CXXFLAGS="$CXXFLAGS"
13 |
14 | #Linker flags for C++ applications linkage
15 | cxx_ldadd=
16 |
17 | #Target kernel architecture
18 | kernel_arch=mips
19 |
20 | #Kernel directory location
21 |
22 | DEFAULT_KERNEL_DIR=/opt/toolchains/lantiq/vb300/nv_2.2.4/linux-2.6.20/
23 |
24 | #Prefix for kernel compiler/binutils
25 | DEFAULT_KERNEL_CROSS_COMPILE=$(get_toolchain_path)/mips-linux-
26 |
27 |
--------------------------------------------------------------------------------
/driver/wireless/driver/rflib/shared/rdlim.h:
--------------------------------------------------------------------------------
1 | #ifndef _MTLK_RDLIM_PROPR_H_
2 | #define _MTLK_RDLIM_PROPR_H_
3 |
4 | #define RDILIM_USE_2TX 0x02
5 | #define RDILIM_USE_3TX 0x03
6 | #define RDILIM_USE_2RX (0x02 << 4)
7 | #define RDILIM_USE_3RX (0x03 << 4)
8 |
9 | #define RDLIM_TX_ANT_NUM(x) ((x) & 0xF)
10 | #define RDLIM_RX_ANT_NUM(x) ( ((x) >> 4) & 0xF )
11 |
12 | struct hw_lim_table_entry {
13 | uint8 reg_dom;
14 | uint16 freq;
15 | uint8 spacing;
16 | int16 limit;
17 | };
18 |
19 | struct hw_lim_lookup_table_entry {
20 | uint16 vendor_id;
21 | uint16 device_id;
22 | uint8 hw_type;
23 | uint8 hw_revision;
24 | uint8 hw_ant_cfg;
25 | const struct hw_lim_table_entry *table;
26 | };
27 |
28 | typedef struct _aocs_default_penalty_t {
29 | uint16 freq;
30 | uint16 penalty;
31 | } aocs_default_penalty_t;
32 |
33 | extern const struct hw_lim_lookup_table_entry hw_lim_lookup_table[];
34 | extern const aocs_default_penalty_t aocs_default_penalty[];
35 |
36 | #endif /* _MTLK_RDLIM_PROPR_H_ */
37 |
--------------------------------------------------------------------------------
/hostap08/src/ap/wmm.h:
--------------------------------------------------------------------------------
1 | /*
2 | * hostapd / WMM (Wi-Fi Multimedia)
3 | * Copyright 2002-2003, Instant802 Networks, Inc.
4 | * Copyright 2005-2006, Devicescape Software, Inc.
5 | *
6 | * This program is free software; you can redistribute it and/or modify
7 | * it under the terms of the GNU General Public License version 2 as
8 | * published by the Free Software Foundation.
9 | *
10 | * Alternatively, this software may be distributed under the terms of BSD
11 | * license.
12 | *
13 | * See README and COPYING for more details.
14 | */
15 |
16 | #ifndef WME_H
17 | #define WME_H
18 |
19 | struct ieee80211_mgmt;
20 | struct wmm_tspec_element;
21 |
22 | u8 * hostapd_eid_wmm(struct hostapd_data *hapd, u8 *eid);
23 | int hostapd_eid_wmm_valid(struct hostapd_data *hapd, const u8 *eid,
24 | size_t len);
25 | void hostapd_wmm_action(struct hostapd_data *hapd,
26 | const struct ieee80211_mgmt *mgmt, size_t len);
27 | int wmm_process_tspec(struct wmm_tspec_element *tspec);
28 |
29 | #endif /* WME_H */
30 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/sha256.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SHA256 hash implementation and interface functions
3 | * Copyright (c) 2003-2006, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef SHA256_H
16 | #define SHA256_H
17 |
18 | #define SHA256_MAC_LEN 32
19 |
20 | void hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
21 | const u8 *addr[], const size_t *len, u8 *mac);
22 | void hmac_sha256(const u8 *key, size_t key_len, const u8 *data,
23 | size_t data_len, u8 *mac);
24 | void sha256_prf(const u8 *key, size_t key_len, const char *label,
25 | const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
26 |
27 | #endif /* SHA256_H */
28 |
--------------------------------------------------------------------------------
/hostap08/src/tls/pkcs1.h:
--------------------------------------------------------------------------------
1 | /*
2 | * PKCS #1 (RSA Encryption)
3 | * Copyright (c) 2006-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef PKCS1_H
16 | #define PKCS1_H
17 |
18 | int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key,
19 | int use_private, const u8 *in, size_t inlen,
20 | u8 *out, size_t *outlen);
21 | int pkcs1_v15_private_key_decrypt(struct crypto_rsa_key *key,
22 | const u8 *in, size_t inlen,
23 | u8 *out, size_t *outlen);
24 | int pkcs1_decrypt_public_key(struct crypto_rsa_key *key,
25 | const u8 *crypt, size_t crypt_len,
26 | u8 *plain, size_t *plain_len);
27 |
28 | #endif /* PKCS1_H */
29 |
--------------------------------------------------------------------------------
/driver/tools/BCLSockServer/BCL/mt_bcl_funcs.h:
--------------------------------------------------------------------------------
1 | /* test.h: interface for the Hyp class.
2 | //
3 | /////////////////////////////////////////////////////////////////////*/
4 |
5 | #ifndef __test_h__
6 | #define __test_h__
7 |
8 |
9 |
10 | MT_UINT32 itemlist (MT_UBYTE item);
11 | MT_UINT32 pitemlist (MT_UBYTE item);
12 | MT_UINT32 item32 (void);
13 | MT_UINT32 item16 (void);
14 | MT_UINT32 item8 (void);
15 | MT_UINT32 dreg8 (MT_UBYTE space, MT_UINT32 address, MT_UBYTE count);
16 | MT_UINT32 dreg16 (MT_UBYTE space, MT_UINT32 address, MT_UBYTE count);
17 | MT_UINT32 dreg32 (MT_UBYTE space, MT_UINT32 address, MT_UBYTE count);
18 | MT_UINT32 dmem (MT_UBYTE mem_size,MT_UINT32 address, MT_UBYTE count);
19 | MT_UINT32 ditem (MT_UBYTE mem_size,MT_UINT32 address,MT_UBYTE offset, MT_UBYTE count);
20 | MT_UINT32 item (MT_UBYTE size);
21 | MT_UINT32 bcl_exit (void);
22 | MT_UINT32 WriteStr (void);
23 | MT_UINT32 ReadStr (MT_UBYTE * pAddress);
24 |
25 |
26 |
27 | #endif /* __test_h__ */
28 |
29 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/mtlkdfdefs.h:
--------------------------------------------------------------------------------
1 | #ifndef __MTLK_DF_DEFS_H__
2 | #define __MTLK_DF_DEFS_H__
3 |
4 | typedef struct _mtlk_user_request_t mtlk_user_request_t; /*!< User request object provided to core */
5 |
6 | #define _mtlk_core_t nic
7 | typedef struct _mtlk_core_t mtlk_core_t;
8 |
9 | typedef struct _mtlk_hw_t mtlk_hw_t;
10 | typedef struct _mtlk_df_t mtlk_df_t;
11 | typedef struct _mtlk_pdb_t mtlk_pdb_t;
12 | typedef struct _mtlk_txmm_t mtlk_txmm_t;
13 |
14 | #if defined (MTCFG_BUS_PCI_PCIE)
15 | #define _mtlk_bus_drv_t _mtlk_pci_drv_t
16 | #elif defined (MTCFG_BUS_AHB)
17 | #define _mtlk_bus_drv_t _mtlk_ahb_drv_t
18 | #else
19 | #error Wrong platform!
20 | #endif
21 |
22 | typedef struct _sta_entry sta_entry;
23 |
24 | typedef struct net_device mtlk_ndev_t;
25 | typedef struct sk_buff mtlk_nbuf_t;
26 | typedef struct sk_buff_head mtlk_nbuf_list_t;
27 | typedef struct sk_buff mtlk_nbuf_list_entry_t;
28 |
29 | #endif /* __MTLK_DF_DEFS_H__ */
30 |
31 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/drvver.h:
--------------------------------------------------------------------------------
1 | #ifndef __DRV_VER_H__
2 | #define __DRV_VER_H__
3 |
4 | #ifdef MTCFG_DEBUG
5 | #define DRV_COMPILATION_TYPE ".Debug"
6 | #else
7 | # ifdef MTCFG_SILENT
8 | # define DRV_COMPILATION_TYPE ".Silent"
9 | # else
10 | # define DRV_COMPILATION_TYPE ".Release"
11 | # endif
12 | #endif
13 |
14 | #ifdef MTCFG_LINDRV_HW_PCIG3
15 | # define MTLK_PCIG3 ".PciG3"
16 | #else
17 | # define MTLK_PCIG3
18 | #endif
19 |
20 | #ifdef MTCFG_LINDRV_HW_PCIE
21 | # define MTLK_PCIEG3 ".PcieG3"
22 | #else
23 | # define MTLK_PCIEG3
24 | #endif
25 |
26 | #ifdef MTCFG_LINDRV_HW_AHBG35
27 | # define MTLK_AHBG35 ".AhbG35"
28 | #else
29 | # define MTLK_AHBG35
30 | #endif
31 |
32 | #define MTLK_PLATFORMS MTLK_PCIG3 MTLK_PCIEG3 MTLK_AHBG35
33 |
34 | #define DRV_NAME "mtlk"
35 | #define DRV_VERSION MTLK_SOURCE_VERSION \
36 | MTLK_PLATFORMS DRV_COMPILATION_TYPE
37 | #define DRV_DESCRIPTION "Metalink 802.11n WiFi Network Driver"
38 |
39 | #endif /* !__DRV_VER_H__ */
40 |
41 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/bitrate.h:
--------------------------------------------------------------------------------
1 | #ifndef __BITRATE_H__
2 | #define __BITRATE_H__
3 |
4 | #include "mtlkidefs.h"
5 |
6 | #define BITRATE_FIRST 0
7 | #define BITRATE_LAST 31
8 |
9 | #define BITRATES_MAX 32
10 |
11 | int __MTLK_IFUNC mtlk_bitrate_get_value (int index, int sm, int scp);
12 |
13 | int __MTLK_IFUNC
14 | mtlk_bitrate_rates_to_idx(int int_rate,
15 | int frac_rate,
16 | int spectrum_mode,
17 | int short_cyclic_prefix,
18 | uint16 *index);
19 |
20 | int __MTLK_IFUNC
21 | mtlk_bitrate_idx_to_rates(uint16 index,
22 | int spectrum_mode,
23 | int short_cyclic_prefix,
24 | int *int_rate,
25 | int *frac_rate);
26 |
27 | #define MTLK_HW_RATE_INVALID ((uint16)-1)
28 |
29 | uint16 __MTLK_IFUNC
30 | mtlk_hw_rate_params_to_rate(uint8 hw_param_tcr2, uint8 scp);
31 |
32 |
33 | #endif
34 |
35 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/mtlk_ccr_decls.h:
--------------------------------------------------------------------------------
1 | /* $Id: mtlk_ccr_decls.h 10358 2011-01-15 09:59:33Z dmytrof $ */
2 | #if !defined (SAFE_PLACE_TO_INCLUDE_MTLK_CCR_DECLS)
3 | #error "You shouldn't include this file directly!"
4 | #endif /* SAFE_PLACE_TO_INCLUDE_MTLK_CCR_DECLS */
5 |
6 | #undef SAFE_PLACE_TO_INCLUDE_MTLK_CCR_DECLS
7 |
8 | #define SAFE_PLACE_TO_INCLUDE_MTLK_PCIE_CCR_DECLS
9 | #include "mtlk_pcie_ccr_decls.h"
10 |
11 | #define SAFE_PLACE_TO_INCLUDE_MTLK_PCIG3_CCR_DECLS
12 | #include "mtlk_pcig3_ccr_decls.h"
13 |
14 | #define SAFE_PLACE_TO_INCLUDE_MTLK_G35_CCR_DECLS
15 | #include "mtlk_g35_ccr_decls.h"
16 |
17 | typedef struct _mtlk_ccr_t
18 | {
19 | union
20 | {
21 | _mtlk_pcig3_ccr_t pcig3;
22 | _mtlk_pcie_ccr_t pcie;
23 | _mtlk_g35_ccr_t g35;
24 | } mem;
25 |
26 | mtlk_card_type_t hw_type;
27 |
28 | #ifdef MTCFG_USE_INTERRUPT_POLLING
29 | mtlk_osal_timer_t poll_interrupts;
30 | #endif
31 |
32 | mtlk_hw_t *hw;
33 |
34 | MTLK_DECLARE_INIT_STATUS;
35 | } mtlk_ccr_t;
36 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/stringquery.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * wpa_gui - StringQuery class
3 | * Copyright (c) 2009, Atheros Communications
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #include
16 | #include
17 |
18 | #include "stringquery.h"
19 |
20 |
21 | StringQuery::StringQuery(QString label)
22 | {
23 | edit = new QLineEdit;
24 | edit->setFocus();
25 | QGridLayout *layout = new QGridLayout;
26 | layout->addWidget(new QLabel(label), 0, 0);
27 | layout->addWidget(edit, 0, 1);
28 | setLayout(layout);
29 |
30 | connect(edit, SIGNAL(returnPressed()), this, SLOT(accept()));
31 | }
32 |
33 |
34 | QString StringQuery::get_string()
35 | {
36 | return edit->text();
37 | }
38 |
--------------------------------------------------------------------------------
/driver/tools/BCLSockServer/BCL/mt_types.h:
--------------------------------------------------------------------------------
1 | /*****************************************************************************
2 | * MT_TYPES.H
3 | *
4 | * Compiler dependant type definitions.
5 | * The following type definitions should comply with the customer host
6 | * compiler requirements.
7 | * Author: Ron Zilberman
8 | *
9 | *****************************************************************************/
10 |
11 | #define MT_UBYTE unsigned char /* 8 bit */
12 | #define MT_BYTE signed char /* 8 bit */
13 | #define MT_UINT16 unsigned short int /* 16 bit */
14 | #define MT_INT16 signed short int /* 16 bit */
15 | #define MT_UINT32 unsigned long int /* 32 bit */
16 | #define MT_INT32 signed long int /* 32 bit */
17 | #define MT_CODE const
18 | #define MT_VOID void
19 |
20 | #define MT_TRUE 1
21 | #define MT_FALSE 0
22 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/osal_atomic_defs.h:
--------------------------------------------------------------------------------
1 | __MTLK_ATOMIC_API uint32
2 | __mtlk_osal_atomic_sub (mtlk_atomic_t* val, uint32 i)
3 | {
4 | return atomic_sub_return(i, val);
5 | }
6 |
7 | __MTLK_ATOMIC_API uint32
8 | __mtlk_osal_atomic_dec (mtlk_atomic_t* val)
9 | {
10 | return atomic_dec_return(val);
11 | }
12 |
13 | __MTLK_ATOMIC_API uint32
14 | __mtlk_osal_atomic_xchg (mtlk_atomic_t* target, uint32 value)
15 | {
16 | return atomic_xchg(target, value);
17 | }
18 |
19 | __MTLK_ATOMIC_API uint32
20 | __mtlk_osal_atomic_add (mtlk_atomic_t* val, uint32 i)
21 | {
22 | return atomic_add_return(i, val);
23 | }
24 |
25 | __MTLK_ATOMIC_API uint32
26 | __mtlk_osal_atomic_inc (mtlk_atomic_t* val)
27 | {
28 | return atomic_inc_return(val);
29 | }
30 |
31 | __MTLK_ATOMIC_API void
32 | __mtlk_osal_atomic_set (mtlk_atomic_t* target, uint32 value)
33 | {
34 | atomic_set(target, value);
35 | }
36 |
37 | __MTLK_ATOMIC_API uint32
38 | __mtlk_osal_atomic_get (const mtlk_atomic_t* val)
39 | {
40 | return atomic_read(val);
41 | }
42 |
43 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/blacklist.h:
--------------------------------------------------------------------------------
1 | /*
2 | * wpa_supplicant - Temporary BSSID blacklist
3 | * Copyright (c) 2003-2007, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef BLACKLIST_H
16 | #define BLACKLIST_H
17 |
18 | struct wpa_blacklist {
19 | struct wpa_blacklist *next;
20 | u8 bssid[ETH_ALEN];
21 | int count;
22 | };
23 |
24 | struct wpa_blacklist * wpa_blacklist_get(struct wpa_supplicant *wpa_s,
25 | const u8 *bssid);
26 | int wpa_blacklist_add(struct wpa_supplicant *wpa_s, const u8 *bssid);
27 | int wpa_blacklist_del(struct wpa_supplicant *wpa_s, const u8 *bssid);
28 | void wpa_blacklist_clear(struct wpa_supplicant *wpa_s);
29 |
30 | #endif /* BLACKLIST_H */
31 |
--------------------------------------------------------------------------------
/hostap08/hostapd/ctrl_iface.h:
--------------------------------------------------------------------------------
1 | /*
2 | * hostapd / UNIX domain socket -based control interface
3 | * Copyright (c) 2004, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef CTRL_IFACE_H
16 | #define CTRL_IFACE_H
17 |
18 | #ifndef CONFIG_NO_CTRL_IFACE
19 | int hostapd_ctrl_iface_init(struct hostapd_data *hapd);
20 | void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd);
21 | #else /* CONFIG_NO_CTRL_IFACE */
22 | static inline int hostapd_ctrl_iface_init(struct hostapd_data *hapd)
23 | {
24 | return 0;
25 | }
26 |
27 | static inline void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd)
28 | {
29 | }
30 | #endif /* CONFIG_NO_CTRL_IFACE */
31 |
32 | #endif /* CTRL_IFACE_H */
33 |
--------------------------------------------------------------------------------
/hostap08/src/eap_common/eap_wsc_common.h:
--------------------------------------------------------------------------------
1 | /*
2 | * EAP-WSC definitions for Wi-Fi Protected Setup
3 | * Copyright (c) 2007, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef EAP_WSC_COMMON_H
16 | #define EAP_WSC_COMMON_H
17 |
18 | #define EAP_VENDOR_TYPE_WSC 1
19 |
20 | #define WSC_FLAGS_MF 0x01
21 | #define WSC_FLAGS_LF 0x02
22 |
23 | #define WSC_ID_REGISTRAR "WFA-SimpleConfig-Registrar-1-0"
24 | #define WSC_ID_REGISTRAR_LEN 30
25 | #define WSC_ID_ENROLLEE "WFA-SimpleConfig-Enrollee-1-0"
26 | #define WSC_ID_ENROLLEE_LEN 29
27 |
28 | #define WSC_FRAGMENT_SIZE 1400
29 |
30 |
31 | struct wpabuf * eap_wsc_build_frag_ack(u8 id, u8 code);
32 |
33 | #endif /* EAP_WSC_COMMON_H */
34 |
--------------------------------------------------------------------------------
/driver/tools/mtlkroot/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 11589 2011-08-31 15:30:12Z fleytman $
2 |
3 | include $(top_srcdir)/Makefile.am.common
4 |
5 | module_canonical_name = mtlkroot_ko
6 | mtlkroot_ko_src_dir = linux
7 | mtlkroot_ko_binary_name = mtlkroot.ko
8 |
9 | driver_PROGRAMS = $(mtlkroot_ko_binary_name)
10 | nodist_driver_DATA = $(builddir)/$(mtlkroot_ko_src_dir)/drv_toolchain_info \
11 | $(builddir)/$(mtlkroot_ko_src_dir)/mtlkroot.scd
12 |
13 | .PHONY : $(mtlkroot_ko_binary_name)
14 | mtlkroot_ko_SOURCES =
15 |
16 | include $(top_srcdir)/Makefile.am.module_build
17 |
18 | mtlkroot_ko_LINK = @$(mtlkroot_ko_BUILD_CMD)
19 | clean-local:
20 | $(mtlkroot_ko_CLEAN_CMD)
21 |
22 | EXTRA_DIST = log_drv.h log_drv.c \
23 | linux/drvver.h linux/logdrv_osdep.c \
24 | linux/mtlkroot.c linux/mtlk_assert.c \
25 | linux/mtlkirbd_root.c shared/mtlkirbd.h \
26 | linux/nlmsgs.c linux/nlmsgs.h \
27 | linux/mtlkcdev.c linux/mtlkcdev.h \
28 | linux/Kbuild
29 |
--------------------------------------------------------------------------------
/driver/tools/shared/CmdLine.h:
--------------------------------------------------------------------------------
1 | //$Id: CmdLine.h 5808 2009-01-18 13:37:27Z antonn $
2 | #ifndef _CMDLINE_H_INCLUDED_
3 | #define _CMDLINE_H_INCLUDED_
4 |
5 | #if defined(WIN32)
6 | #pragma warning(push,3)
7 | #endif
8 |
9 | #include
10 | #include
11 |
12 | #if defined(WIN32)
13 | #pragma warning(pop)
14 | #endif
15 |
16 |
17 | using namespace std;
18 |
19 | class CCmdLine
20 | {
21 | private:
22 | const int m_argc;
23 | char * const *m_argv;
24 | char* isCmdLineParamInternal(const string& paramName);
25 | static const char CMD_LINE_DELIMITER;
26 | const CCmdLine& operator=(const CCmdLine& other); //Do not allow assignments
27 | public:
28 | typedef std::pair ParamName;
29 |
30 | CCmdLine(int argc, char* const argv[]);
31 |
32 | bool isCmdLineParam(const CCmdLine::ParamName& paramName);
33 | string getParamValue(const CCmdLine::ParamName& paramName);
34 | int getIntParamValue(const CCmdLine::ParamName& paramName);
35 | };
36 |
37 |
38 | #endif //_CMDLINE_H_INCLUDED_
39 |
--------------------------------------------------------------------------------
/driver/wireless/driver/shared/mtlk_clipboard.h:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: mtlk_clipboard.h 10052 2010-12-01 16:43:51Z dmytrof $
3 | *
4 | * Copyright (c) 2006-2007 Metalink Broadband (Israel)
5 | *
6 | * Clipboard between Core and DF
7 | *
8 | * Originally written by Andrii Tseglytskyi
9 | *
10 | */
11 |
12 | #ifndef _MTLK_CLIPBOARD_H_
13 | #define _MTLK_CLIPBOARD_H_
14 |
15 | /* "clipboard" between DF UI and Core */
16 | typedef struct _mtlk_clpb_t mtlk_clpb_t;
17 |
18 | mtlk_clpb_t* __MTLK_IFUNC
19 | mtlk_clpb_create(void);
20 |
21 | void __MTLK_IFUNC
22 | mtlk_clpb_delete(mtlk_clpb_t *clpb);
23 |
24 | void __MTLK_IFUNC
25 | mtlk_clpb_purge(mtlk_clpb_t *clpb);
26 |
27 | int __MTLK_IFUNC
28 | mtlk_clpb_push(mtlk_clpb_t *clpb, const void *data, uint32 size);
29 |
30 | void __MTLK_IFUNC
31 | mtlk_clpb_enum_rewind(mtlk_clpb_t *clpb);
32 |
33 | void* __MTLK_IFUNC
34 | mtlk_clpb_enum_get_next(mtlk_clpb_t *clpb, uint32* size);
35 |
36 | uint32 __MTLK_IFUNC
37 | mtlk_clpb_get_num_of_elements(mtlk_clpb_t *clpb);
38 |
39 | #endif /* _MTLK_CLIPBOARD_H_ */
40 |
--------------------------------------------------------------------------------
/driver/support/ppc405-linux26.env:
--------------------------------------------------------------------------------
1 | #WARNING: values of DEFAULT_TOOLCHAIN_PATH, DEFAULT_KERNEL_DIR and DEFAULT_KERNEL_CROSS_COMPILE
2 | # variables are assigned in this file but should never be used directly.
3 | # $(get_toolchain_path), $(get_kernel_dir) and $(get_kernel_cross_compile) to be used instead
4 |
5 | #Toolchain path for applications build
6 | DEFAULT_TOOLCHAIN_PATH=/opt/toolchains/amcc/toolchain
7 |
8 | #Compiler/precompiler flags applications build
9 | CC="$(get_toolchain_path)/usr/bin/ppc_4xx-gcc"
10 | CXX="$(get_toolchain_path)/usr/bin/ppc_4xx-g++"
11 | CFLAGS="-O2 -fno-common -fno-builtin $CFLAGS"
12 | CPPFLAGS="$CPPFLAGS"
13 | LDFLAGS="$LDFLAGS"
14 | CXXFLAGS="$CFLAGS $CXXFLAGS"
15 |
16 | #Linker flags for C++ applications linkage
17 | cxx_ldadd=
18 |
19 | #Target kernel architecture
20 | kernel_arch=powerpc
21 | #Kernel directory location
22 | DEFAULT_KERNEL_DIR=/opt/toolchains/amcc/toolchain/kernel_source
23 | #Prefix for kernel compiler/binutils
24 | DEFAULT_KERNEL_CROSS_COMPILE=$(get_toolchain_path)/usr/bin/ppc_4xx-
25 |
--------------------------------------------------------------------------------
/driver/tools/BCLSockServer/BCL/mt_chacc.h:
--------------------------------------------------------------------------------
1 | // mt_chacc.h: interface for the Hyp class.
2 | //
3 | //////////////////////////////////////////////////////////////////////
4 | //#ifndef __mt_chacc_h__
5 | //#define __mt_chacc_h__
6 |
7 | #include "mt_cnfg.h"
8 |
9 |
10 | MT_UINT32 HypPciRead(MT_UBYTE unit, MT_UINT32 address, MT_UBYTE size, MT_UINT32 * data);
11 | MT_UINT32 HypPciWrite(MT_UBYTE unit, MT_UINT32 address, MT_UBYTE size, MT_UINT32 * data);
12 | MT_UINT32 HypPciCmd( MT_UINT16 command, MT_UBYTE inSize, MT_UINT32 * inData, MT_UINT32 * outData);
13 | MT_UINT32 HypInit(void);
14 | MT_UINT32 GetMibParams(MT_UINT32 Id, MT_UBYTE type, MT_UINT32 size, MT_BYTE * data);
15 | MT_UINT32 SetMibParams(MT_UINT32 Id, MT_UBYTE type, MT_UINT32 size, MT_BYTE * data);
16 | MT_UINT32 SetMacCalibration(void);
17 | MT_UINT32 GenIoctl(void);
18 | MT_UINT32 DebugTable(MT_UINT32 Id, MT_UINT32 action, MT_UINT32 value, MT_UINT32 size, MT_UINT32 offset, MT_BYTE * data);
19 |
20 | #ifdef ERROR_A
21 | //xchbxvh
22 | #endif
23 |
24 |
25 |
26 |
27 | //#endif // __mt_chacc_h__
28 |
29 |
30 |
--------------------------------------------------------------------------------
/hostap08/src/ap/ieee802_11_auth.h:
--------------------------------------------------------------------------------
1 | /*
2 | * hostapd / IEEE 802.11 authentication (ACL)
3 | * Copyright (c) 2003-2005, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef IEEE802_11_AUTH_H
16 | #define IEEE802_11_AUTH_H
17 |
18 | enum {
19 | HOSTAPD_ACL_REJECT = 0,
20 | HOSTAPD_ACL_ACCEPT = 1,
21 | HOSTAPD_ACL_PENDING = 2,
22 | HOSTAPD_ACL_ACCEPT_TIMEOUT = 3
23 | };
24 |
25 | int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr,
26 | const u8 *msg, size_t len, u32 *session_timeout,
27 | u32 *acct_interim_interval, int *vlan_id);
28 | int hostapd_acl_init(struct hostapd_data *hapd);
29 | void hostapd_acl_deinit(struct hostapd_data *hapd);
30 |
31 | #endif /* IEEE802_11_AUTH_H */
32 |
--------------------------------------------------------------------------------
/hostap08/src/utils/ip_addr.h:
--------------------------------------------------------------------------------
1 | /*
2 | * IP address processing
3 | * Copyright (c) 2003-2006, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef IP_ADDR_H
16 | #define IP_ADDR_H
17 |
18 | struct hostapd_ip_addr {
19 | int af; /* AF_INET / AF_INET6 */
20 | union {
21 | struct in_addr v4;
22 | #ifdef CONFIG_IPV6
23 | struct in6_addr v6;
24 | #endif /* CONFIG_IPV6 */
25 | u8 max_len[16];
26 | } u;
27 | };
28 |
29 | const char * hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf,
30 | size_t buflen);
31 | int hostapd_ip_diff(struct hostapd_ip_addr *a, struct hostapd_ip_addr *b);
32 | int hostapd_parse_ip_addr(const char *txt, struct hostapd_ip_addr *addr);
33 |
34 | #endif /* IP_ADDR_H */
35 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/des_i.h:
--------------------------------------------------------------------------------
1 | /*
2 | * DES and 3DES-EDE ciphers
3 | * Copyright (c) 2006-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef DES_I_H
16 | #define DES_I_H
17 |
18 | struct des3_key_s {
19 | u32 ek[3][32];
20 | u32 dk[3][32];
21 | };
22 |
23 | void des_key_setup(const u8 *key, u32 *ek, u32 *dk);
24 | void des_block_encrypt(const u8 *plain, const u32 *ek, u8 *crypt);
25 | void des_block_decrypt(const u8 *crypt, const u32 *dk, u8 *plain);
26 |
27 | void des3_key_setup(const u8 *key, struct des3_key_s *dkey);
28 | void des3_encrypt(const u8 *plain, const struct des3_key_s *key, u8 *crypt);
29 | void des3_decrypt(const u8 *crypt, const struct des3_key_s *key, u8 *plain);
30 |
31 | #endif /* DES_I_H */
32 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/windows2:
--------------------------------------------------------------------------------
1 | #MAKE:make windows-bin
2 |
3 | CONFIG_DRIVER_NDIS=y
4 | CONFIG_NATIVE_WINDOWS=y
5 |
6 | CFLAGS += -I/opt/xmingw/i386-mingw32msvc/include/ddk
7 | CC=/opt/xmingw/bin/i386-mingw32msvc-gcc
8 | STRIP=/opt/xmingw/bin/i386-mingw32msvc-strip
9 |
10 | PLATFORMSDKLIB=/home/jm/H-win/local/lib
11 | CFLAGS += -I/home/jm/H-win/local/include
12 | LIBS += -L/home/jm/H-win/local/lib
13 | LIBS_w += -L/home/jm/H-win/local/lib
14 | LIBS_p += -L/home/jm/H-win/local/lib
15 |
16 | CONFIG_EAP_SIM=y
17 | CONFIG_EAP_LEAP=y
18 | CONFIG_EAP_TLS=y
19 |
20 | CONFIG_CTRL_IFACE=udp
21 | CONFIG_EAP_FAST=y
22 | CONFIG_EAP_MSCHAPV2=y
23 | CONFIG_EAP_TTLS=y
24 | CONFIG_EAP_PEAP=y
25 | CONFIG_EAP_MD5=y
26 | CONFIG_EAP_GTC=y
27 | CONFIG_EAP_OTP=y
28 | CONFIG_PKCS12=y
29 | CONFIG_PCSC=y
30 |
31 | CONFIG_SMARTCARD=y
32 |
33 | CONFIG_EAP_PSK=y
34 | CONFIG_EAP_PAX=y
35 | CONFIG_EAP_SAKE=y
36 |
37 | CONFIG_EAPOL_TEST=y
38 |
39 | CONFIG_MAIN=main_winsvc
40 | CONFIG_BACKEND=file
41 | CONFIG_ELOOP=eloop
42 |
43 | #CONFIG_WINPCAP_EVENT=y
44 |
45 | CONFIG_L2_PACKET=pcap
46 |
--------------------------------------------------------------------------------
/driver/wireless/driver/rflib/shared/mtlk_gpl_helper.c:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: $
3 | *
4 | * Copyright (c) 2006-2007 Metalink Broadband (Israel)
5 | *
6 | * Helper functions for GPL code implementation
7 | *
8 | */
9 |
10 | #include "mtlkinc.h"
11 | #include "mhi_umi_propr.h"
12 |
13 | uint32 __MTLK_IFUNC mtlk_get_umi_man_size(void)
14 | {
15 | return sizeof(UMI_MAN);
16 | }
17 |
18 | uint32 __MTLK_IFUNC mtlk_get_umi_dbg_size(void)
19 | {
20 | return sizeof(UMI_DBG);
21 | }
22 |
23 | uint32 __MTLK_IFUNC mtlk_get_umi_activate_size(void)
24 | {
25 | return sizeof(UMI_ACTIVATE);
26 | }
27 |
28 | uint32 __MTLK_IFUNC mtlk_get_umi_mbss_pre_activate_size(void)
29 | {
30 | return sizeof(UMI_MBSS_PRE_ACTIVATE);
31 | }
32 |
33 | uint32 __MTLK_IFUNC mtlk_get_umi_scan_size(void)
34 | {
35 | return sizeof(UMI_SCAN);
36 | }
37 |
38 | UMI_ACTIVATE_HDR* __MTLK_IFUNC mtlk_get_umi_activate_hdr(void *data)
39 | {
40 | return &((UMI_ACTIVATE*)data)->sActivate;
41 | }
42 |
43 | UMI_SCAN_HDR* __MTLK_IFUNC mtlk_get_umi_scan_hdr(void *data)
44 | {
45 | return &((UMI_SCAN*)data)->sScan;
46 | }
47 |
48 |
--------------------------------------------------------------------------------
/driver/tools/BCLSockServer/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 10708 2011-02-24 16:53:13Z dmytrof $
2 |
3 | include $(top_srcdir)/Makefile.am.target_apps
4 |
5 | AM_CPPFLAGS += -I$(srcdir)/BCL/
6 | mttools_PROGRAMS = BclSockServer
7 | dist_mttools_DATA = $(srcdir)/scripts/bcl_util.tcl
8 |
9 | BclSockServer_SOURCES = BCLSockServer.c BCLSockServer.h \
10 | mt_tftp.c \
11 | BCL/mt_bcl.c BCL/mt_bcl.h BCL/mt_bcl_defs.h \
12 | BCL/mt_util.c BCL/mt_util.h\
13 | BCL/mt_bcl_funcs.c BCL/mt_bcl_funcs.h \
14 | BCL/mt_lchacc.c \
15 | BCL/mt_wapi.c BCL/mt_wapi.h \
16 | BCL/mt_bcl_wrap.h BCL/mt_chacc.h \
17 | BCL/mt_cnfg.h BCL/mt_help.h BCL/mt_types.h
18 |
19 | nodist_BclSockServer_SOURCES = $(abs_builddir)/app_info.c
20 |
21 | BclSockServer_LDADD = -lpthread
22 |
23 | AM_CPPFLAGS += -I$(tools_shared_srcdir)/linux \
24 | -I$(tools_shared_srcdir) \
25 | -I$(wireless_shared_srcdir)
26 |
27 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/dh_group5.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Diffie-Hellman group 5 operations
3 | * Copyright (c) 2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #include "includes.h"
16 |
17 | #include "common.h"
18 | #include "dh_groups.h"
19 | #include "dh_group5.h"
20 |
21 |
22 | void * dh5_init(struct wpabuf **priv, struct wpabuf **publ)
23 | {
24 | *publ = dh_init(dh_groups_get(5), priv);
25 | if (*publ == 0)
26 | return NULL;
27 | return (void *) 1;
28 | }
29 |
30 |
31 | struct wpabuf * dh5_derive_shared(void *ctx, const struct wpabuf *peer_public,
32 | const struct wpabuf *own_private)
33 | {
34 | return dh_derive_shared(peer_public, own_private, dh_groups_get(5));
35 | }
36 |
37 |
38 | void dh5_free(void *ctx)
39 | {
40 | }
41 |
--------------------------------------------------------------------------------
/driver/support/dongle-linux26.env:
--------------------------------------------------------------------------------
1 | #WARNING: values of DEFAULT_TOOLCHAIN_PATH, DEFAULT_KERNEL_DIR and DEFAULT_KERNEL_CROSS_COMPILE
2 | # variables are assigned in this file but should never be used directly.
3 | # $(get_toolchain_path), $(get_kernel_dir) and $(get_kernel_cross_compile) to be used instead
4 |
5 | #Toolchain path for applications build
6 | DEFAULT_TOOLCHAIN_PATH=/opt/toolchains/snapgear/dongle-2.6-r4787
7 |
8 | #Compiler/precompiler flags applications build
9 | CC="$(get_toolchain_path)/tools/ucfront-gcc arm-linux-gcc"
10 | CXX="$(get_toolchain_path)/tools/ucfront-g++ arm-linux-g++"
11 | CFLAGS="-mbig-endian -fno-common -fno-builtin $CFLAGS"
12 | #CPPFLAGS=
13 | CXXFLAGS="$CFLAGS -I$(get_toolchain_path)/include/STLport/ $CXXFLAGS"
14 |
15 | #Linker flags for C++ applications linkage
16 | cxx_ldadd="-lstdc++ -lsupc++"
17 |
18 | #Target kernel architecture
19 | kernel_arch=arm
20 | #Kernel directory location
21 | DEFAULT_KERNEL_DIR=/opt/toolchains/snapgear/dongle-2.6-r4787/linux-2.6.x
22 | #Prefix for kernel compiler/binutils
23 | DEFAULT_KERNEL_CROSS_COMPILE=arm-linux-
24 |
25 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/aes-encblock.c:
--------------------------------------------------------------------------------
1 | /*
2 | * AES encrypt_block
3 | *
4 | * Copyright (c) 2003-2007, Jouni Malinen
5 | *
6 | * This program is free software; you can redistribute it and/or modify
7 | * it under the terms of the GNU General Public License version 2 as
8 | * published by the Free Software Foundation.
9 | *
10 | * Alternatively, this software may be distributed under the terms of BSD
11 | * license.
12 | *
13 | * See README and COPYING for more details.
14 | */
15 |
16 | #include "includes.h"
17 |
18 | #include "common.h"
19 | #include "aes.h"
20 | #include "aes_wrap.h"
21 |
22 | /**
23 | * aes_128_encrypt_block - Perform one AES 128-bit block operation
24 | * @key: Key for AES
25 | * @in: Input data (16 bytes)
26 | * @out: Output of the AES block operation (16 bytes)
27 | * Returns: 0 on success, -1 on failure
28 | */
29 | int aes_128_encrypt_block(const u8 *key, const u8 *in, u8 *out)
30 | {
31 | void *ctx;
32 | ctx = aes_encrypt_init(key, 16);
33 | if (ctx == NULL)
34 | return -1;
35 | aes_encrypt(ctx, in, out);
36 | aes_encrypt_deinit(ctx);
37 | return 0;
38 | }
39 |
--------------------------------------------------------------------------------
/hostap08/testing/hostapd-config/x86_64:
--------------------------------------------------------------------------------
1 | #MAKE:make
2 |
3 | CC=/opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/x86_64-unknown-linux-gnu-gcc
4 |
5 | CONFIG_DRIVER_HOSTAP=y
6 | CONFIG_DRIVER_WIRED=y
7 | CONFIG_DRIVER_MADWIFI=y
8 | CFLAGS += -I/home/jm/work/madwifi-BSD
9 | CONFIG_DRIVER_PRISM54=y
10 |
11 | CONFIG_IAPP=y
12 | CONFIG_RSN_PREAUTH=y
13 | CONFIG_EAP=y
14 | CONFIG_EAP_MD5=y
15 | CONFIG_EAP_TLS=y
16 | CONFIG_EAP_MSCHAPV2=y
17 | CONFIG_EAP_PEAP=y
18 | CONFIG_EAP_GTC=y
19 | CONFIG_EAP_TTLS=y
20 | CONFIG_EAP_SIM=y
21 | CONFIG_EAP_AKA=y
22 | CONFIG_EAP_PAX=y
23 | CONFIG_EAP_PSK=y
24 | CONFIG_EAP_SAKE=y
25 | CONFIG_PKCS12=y
26 | CONFIG_RADIUS_SERVER=y
27 |
28 |
29 | CFLAGS += -I/opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/x86_64-unknown-linux-gnu/sys-root/local/openssl/include
30 | LIBS += -L/opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/x86_64-unknown-linux-gnu/sys-root/local/openssl/lib
31 | LIBS_p += -L/opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/x86_64-unknown-linux-gnu/sys-root/local/openssl/lib
32 |
33 |
34 | CFLAGS += -Werror
35 | LIBS += -ldl
36 |
--------------------------------------------------------------------------------
/hostap08/tests/test-x509.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Testing tool for X.509v3 routines
3 | * Copyright (c) 2006-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #include "includes.h"
16 |
17 | #include "common.h"
18 | #include "tls/x509v3.h"
19 |
20 | extern int wpa_debug_level;
21 |
22 |
23 | int main(int argc, char *argv[])
24 | {
25 | FILE *f;
26 | u8 buf[3000];
27 | size_t len;
28 | struct x509_certificate *cert;
29 |
30 | wpa_debug_level = 0;
31 |
32 | f = fopen(argv[1], "rb");
33 | if (f == NULL)
34 | return -1;
35 | len = fread(buf, 1, sizeof(buf), f);
36 | fclose(f);
37 |
38 | cert = x509_certificate_parse(buf, len);
39 | if (cert == NULL)
40 | printf("Failed to parse X.509 certificate\n");
41 | x509_certificate_free(cert);
42 |
43 | return 0;
44 | }
45 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/mtlk_pci_drv_decls.h:
--------------------------------------------------------------------------------
1 | #if !defined (SAFE_PLACE_TO_INCLUDE_PCI_DRV_DECLS)
2 | #error "You shouldn't include this file directly!"
3 | #endif /* SAFE_PLACE_TO_INCLUDE_HW_PCI_... */
4 |
5 | #undef SAFE_PLACE_TO_INCLUDE_PCI_DRV_DECLS
6 |
7 | #include "mtlk_card_types.h"
8 |
9 | #define SAFE_PLACE_TO_INCLUDE_MTLK_CCR_DECLS
10 | #include "mtlk_ccr_decls.h"
11 |
12 | #include "mtlk_vap_manager.h"
13 |
14 | struct _mtlk_pci_drv_t
15 | {
16 | struct pci_dev *dev;
17 | /* in struct pci_dev member irq has unsigned int type,
18 | * we need it to be signed for -1 (was not requested)
19 | */
20 | void __iomem *bar0;
21 | void __iomem *bar1;
22 |
23 | mtlk_ccr_t ccr;
24 | mtlk_card_type_t card_type;
25 |
26 | mtlk_hw_t *hw;
27 |
28 | mtlk_vap_manager_t *vap_manager;
29 |
30 | struct tasklet_struct mmb_tasklet;
31 | MTLK_DECLARE_INIT_STATUS;
32 | };
33 |
34 | typedef struct _mtlk_pci_drv_t mtlk_pci_drv_t;
35 |
36 | #define MTLK_HW_MAX_CARDS 10
37 |
38 | #define MTLK_HW_PRESENT_CPUS (MTLK_UPPER_CPU | MTLK_LOWER_CPU)
39 |
40 |
--------------------------------------------------------------------------------
/hostap08/src/drivers/netlink.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Netlink helper functions for driver wrappers
3 | * Copyright (c) 2002-2009, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef NETLINK_H
16 | #define NETLINK_H
17 |
18 | struct netlink_data;
19 | struct ifinfomsg;
20 |
21 | struct netlink_config {
22 | void *ctx;
23 | void (*newlink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
24 | size_t len);
25 | void (*dellink_cb)(void *ctx, struct ifinfomsg *ifi, u8 *buf,
26 | size_t len);
27 | };
28 |
29 | struct netlink_data * netlink_init(struct netlink_config *cfg);
30 | void netlink_deinit(struct netlink_data *netlink);
31 | int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex,
32 | int linkmode, int operstate);
33 |
34 | #endif /* NETLINK_H */
35 |
--------------------------------------------------------------------------------
/hostap08/www/releases.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Host AP driver / wpa_supplicant / hostapd releases
5 |
6 |
7 |
8 |
9 |
10 |
11 | Host AP driver /
12 | wpa_supplicant /
13 | hostapd releases
14 |
15 |
16 |
17 |
18 |
19 | 
20 |
21 |
22 | - green background = stable release
23 | - white background = development release
24 | - letters after the version (what was included in the release):
25 |
26 | - d = Host AP driver
27 | - u = Host AP driver utilities
28 | - h = hostapd
29 | - w = wpa_supplicant
30 |
31 |
32 |
33 |
34 |
35 | Jouni Malinen
36 |
37 |
38 | Last modified: Thu Mar 8 19:44:22 PST 2007
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/driver/support/deca-linux26.env:
--------------------------------------------------------------------------------
1 | #WARNING: values of DEFAULT_TOOLCHAIN_PATH, DEFAULT_KERNEL_DIR and DEFAULT_KERNEL_CROSS_COMPILE
2 | # variables are assigned in this file but should never be used directly.
3 | # $(get_toolchain_path), $(get_kernel_dir) and $(get_kernel_cross_compile) to be used instead
4 |
5 | #Toolchain path for applications build
6 | DEFAULT_TOOLCHAIN_PATH=/opt/toolchains/amcc/deca/bs/toolchains/ppc405/bin
7 |
8 | #Compiler/precompiler flags applications build
9 | CC="$(get_toolchain_path)/powerpc-greenwave-linux-gnu-gcc"
10 | CXX="$(get_toolchain_path)/powerpc-greenwave-linux-gnu-g++"
11 | CFLAGS="-O2 -fno-common -fno-builtin -Wno-array-bounds $CFLAGS"
12 | CPPFLAGS="$CPPFLAGS"
13 | LDFLAGS="$LDFLAGS"
14 | CXXFLAGS="$CFLAGS $CXXFLAGS"
15 |
16 | #Linker flags for C++ applications linkage
17 | cxx_ldadd=
18 |
19 | #Target kernel architecture
20 | kernel_arch=powerpc
21 | #Kernel directory location
22 | DEFAULT_KERNEL_DIR=/opt/toolchains/amcc/deca/output/deca/linux-2.6.33
23 | #Prefix for kernel compiler/binutils
24 | DEFAULT_KERNEL_CROSS_COMPILE=$(get_toolchain_path)/powerpc-greenwave-linux-gnu-
25 |
--------------------------------------------------------------------------------
/hostap08/eap_example/server.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIC0zCCAjygAwIBAgIJAIb4NS4TdLXVMA0GCSqGSIb3DQEBBQUAMGExCzAJBgNV
3 | BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMQ4wDAYDVQQKEwV3MS5maTEQMA4G
4 | A1UEAxMHVGVzdCBDQTEbMBkGCSqGSIb3DQEJARYMdGVzdGNhQHcxLmZpMB4XDTA3
5 | MTIwOTAzMTUwOFoXDTE3MTIwNjAzMTUwOFoweTELMAkGA1UEBhMCVVMxEzARBgNV
6 | BAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xDjAMBgNVBAoT
7 | BXcxLmZpMRAwDgYDVQQDEwdUZXN0IEFTMRswGQYJKoZIhvcNAQkBFgx0ZXN0YXNA
8 | dzEuZmkwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANOhi4M+aMRa778CPRFV
9 | ZNJvTuxfp0CQ+etNpSNkAbkCGNGolbPMPnSQWZUqL5HsaBLm2UbMtS2iR3CO5JQC
10 | bPy0xfAjCZV5LQeW4UNVKL3hdtVFzMT6fKgOKCDVEbLLWZze3lEbzhu81q2r3w5x
11 | 4lqDieCHwvwjiTWpMtEyXIEnAgMBAAGjezB5MAkGA1UdEwQCMAAwLAYJYIZIAYb4
12 | QgENBB8WHU9wZW5TU0wgR2VuZXJhdGVkIENlcnRpZmljYXRlMB0GA1UdDgQWBBRb
13 | xGTC3mPimgyGb5vYLLV5wyc9ITAfBgNVHSMEGDAWgBSoSbkiyeiYXAf3UYAfI9If
14 | ZjpaSjANBgkqhkiG9w0BAQUFAAOBgQA9wVGtroz/rsx1EeALJejW01SAr4kpTxoS
15 | WP6zuWFb+J/lJd7DeVM6/QBYAwZb0fB6nwSpJJCj6XDRZtN/yLeaTd/rCZrfom4Z
16 | 8gbkWMTXDn2Cea2VnCe5W0gK+4dIj5DD5CpPvgt4lYqlwN0WAih6twd7Q4x/tiiJ
17 | ejNQzlTHOg==
18 | -----END CERTIFICATE-----
19 |
--------------------------------------------------------------------------------
/hostap08/src/drivers/linux_ioctl.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Linux ioctl helper functions for driver wrappers
3 | * Copyright (c) 2002-2010, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef LINUX_IOCTL_H
16 | #define LINUX_IOCTL_H
17 |
18 | int linux_set_iface_flags(int sock, const char *ifname, int dev_up);
19 | int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr);
20 | int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr);
21 | int linux_br_add(int sock, const char *brname);
22 | int linux_br_del(int sock, const char *brname);
23 | int linux_br_add_if(int sock, const char *brname, const char *ifname);
24 | int linux_br_del_if(int sock, const char *brname, const char *ifname);
25 | int linux_br_get(char *brname, const char *ifname);
26 |
27 | #endif /* LINUX_IOCTL_H */
28 |
--------------------------------------------------------------------------------
/hostap08/testing/compile_wireless_versions:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | TMP=tmp.compile_wireless_versions
4 |
5 | if [ ! -r $TMP ]; then
6 | cvs export -D now -d $TMP hostap
7 | pushd $TMP/driver/modules
8 | for f in hostap_hw hostap_cs hostap_pci hostap_plx; do
9 | mv $f.c $f.c.orig
10 | cat $f.c.orig |
11 | sed "s%^#include %#include "\"wireless-test.h\""%" |
12 | sed "s%^#include %#include "\"iw_handler-test.h\""%" \
13 | > $f.c
14 | done
15 | popd
16 | fi
17 |
18 | cd $TMP
19 |
20 | for i in ../wireless/wireless-*.h; do
21 | echo $i
22 | ver=`echo $i | sed "s%.*wireless-\([0-9]*\).*%\1%"`
23 | cp $i driver/modules/wireless-test.h
24 | case $ver in
25 | 13)
26 | cp ../wireless/iw_handler-2.h driver/modules/iw_handler-test.h
27 | ;;
28 | 14 | 15)
29 | cp ../wireless/iw_handler-3.h driver/modules/iw_handler-test.h
30 | ;;
31 | *)
32 | rm -f driver/modules/iw_handler-test.h
33 | ;;
34 | esac
35 | make clean > /dev/null
36 | if ! make pccard pci plx > log.$ver 2>&1; then
37 | echo "Errors while compiling version $ver"
38 | fi
39 | done
40 |
--------------------------------------------------------------------------------
/hostap08/testing/wpa_supplicant-config/windows:
--------------------------------------------------------------------------------
1 | #MAKE:make windows-bin
2 |
3 | CONFIG_DRIVER_NDIS=y
4 | CONFIG_NATIVE_WINDOWS=y
5 |
6 | CFLAGS += -I/opt/xmingw/i386-mingw32msvc/include/ddk
7 | CC=/opt/xmingw/bin/i386-mingw32msvc-gcc
8 | STRIP=/opt/xmingw/bin/i386-mingw32msvc-strip
9 |
10 | PLATFORMSDKLIB=/home/jm/H-win/local/lib
11 | CFLAGS += -I/home/jm/H-win/local/include
12 | LIBS += -L/home/jm/H-win/local/lib
13 | LIBS_w += -L/home/jm/H-win/local/lib
14 | LIBS_p += -L/home/jm/H-win/local/lib
15 |
16 | CONFIG_EAP_SIM=y
17 | CONFIG_EAP_LEAP=y
18 | CONFIG_EAP_TLS=y
19 |
20 | CONFIG_CTRL_IFACE=y
21 | CONFIG_EAP_FAST=y
22 | CONFIG_EAP_MSCHAPV2=y
23 | CONFIG_EAP_TTLS=y
24 | CONFIG_EAP_PEAP=y
25 | CONFIG_EAP_MD5=y
26 | CONFIG_EAP_GTC=y
27 | CONFIG_EAP_OTP=y
28 | CONFIG_PKCS12=y
29 | CONFIG_PCSC=y
30 |
31 | CONFIG_SMARTCARD=y
32 |
33 | CONFIG_EAP_PSK=y
34 | CONFIG_EAP_PAX=y
35 | CONFIG_EAP_SAKE=y
36 |
37 | CONFIG_EAPOL_TEST=y
38 |
39 | #CONFIG_MAIN=main_winsvc
40 | CONFIG_BACKEND=winreg
41 | CONFIG_ELOOP=eloop_win
42 |
43 | #CONFIG_WINPCAP_EVENT=y
44 |
45 | CONFIG_L2_PACKET=winpcap
46 | #CONFIG_L2_PACKET=pcap
47 |
48 | CONFIG_NDIS_EVENTS_INTEGRATED=y
49 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/wpamsg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * wpa_gui - WpaMsg class for storing event messages
3 | * Copyright (c) 2005-2006, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef WPAMSG_H
16 | #define WPAMSG_H
17 |
18 | #include
19 | #include
20 |
21 | class WpaMsg {
22 | public:
23 | WpaMsg(const QString &_msg, int _priority = 2)
24 | : msg(_msg), priority(_priority)
25 | {
26 | timestamp = QDateTime::currentDateTime();
27 | }
28 |
29 | QString getMsg() const { return msg; }
30 | int getPriority() const { return priority; }
31 | QDateTime getTimestamp() const { return timestamp; }
32 |
33 | private:
34 | QString msg;
35 | int priority;
36 | QDateTime timestamp;
37 | };
38 |
39 | typedef QLinkedList WpaMsgList;
40 |
41 | #endif /* WPAMSG_H */
42 |
--------------------------------------------------------------------------------
/driver/Makefile.am.module_helper:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am.module_helper 11328 2011-06-30 11:36:06Z fleytman $
2 |
3 | .PRECIOUS: $(abs_builddir)%.c
4 |
5 | # Rule for repository sources
6 | $(abs_builddir)%.c:: $(abs_top_srcdir)%.c
7 | @mkdir -p `dirname $@`
8 | @ln -s $< $@
9 |
10 | ifeq ($(mtlk_build_kernel_library),y)
11 | binary_name := driver_lib
12 | orig_list_var := lib-y
13 | else
14 | binary_name := $(basename $(notdir $(obj-m) ))
15 | orig_list_var := $(binary_name)-objs
16 | endif
17 |
18 | orig_list := drv_info.o $($(orig_list_var))
19 |
20 | ifeq ($(CONFIG_RT_LOGGER_FUNCTIONS),y)
21 | orig_list += $(rtlogger_shared_builddir)/logmacro_database.o
22 | endif
23 |
24 | rebased_list := $(abspath $(addprefix $(abs_srcdir)/, $(orig_list)))
25 | rebased_list := $(subst $(abspath $(abs_top_srcdir))/,, $(rebased_list) )
26 |
27 | $(orig_list_var) := $(rebased_list) $($(binary_name)-libs)
28 |
29 |
30 | $(abs_builddir)$(filter %logmacro_database.o, $($(orig_list_var))): \
31 | $(addprefix $(abs_builddir), $(filter-out %logmacro_database.o, $($(orig_list_var))))
32 |
33 | EXTRA_CFLAGS := -I$(abs_builddir) -I$(abs_srcdir) $(EXTRA_CFLAGS) $(MTLK_KERNEL_CFLAGS)
34 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/addinterface.h:
--------------------------------------------------------------------------------
1 | /*
2 | * wpa_gui - AddInterface class
3 | * Copyright (c) 2008, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef ADDINTERFACE_H
16 | #define ADDINTERFACE_H
17 |
18 | #include
19 |
20 | #include
21 | #include
22 | #include
23 |
24 | class WpaGui;
25 |
26 | class AddInterface : public QDialog
27 | {
28 | Q_OBJECT
29 |
30 | public:
31 | AddInterface(WpaGui *_wpagui, QWidget *parent = 0);
32 |
33 | public slots:
34 | virtual void interfaceSelected(QTreeWidgetItem *sel);
35 |
36 | private:
37 | void addInterfaces();
38 | bool addRegistryInterface(const QString &ifname);
39 |
40 | QVBoxLayout *vboxLayout;
41 | QTreeWidget *interfaceWidget;
42 | WpaGui *wpagui;
43 | };
44 |
45 | #endif /* ADDINTERFACE_H */
46 |
--------------------------------------------------------------------------------
/hostap08/src/crypto/Makefile:
--------------------------------------------------------------------------------
1 | all: libcrypto.a
2 |
3 | clean:
4 | rm -f *~ *.o *.d libcrypto.a
5 |
6 | install:
7 | @echo Nothing to be made.
8 |
9 |
10 | include ../lib.rules
11 |
12 | CFLAGS += -DCONFIG_TLS_INTERNAL_CLIENT
13 | CFLAGS += -DCONFIG_TLS_INTERNAL_SERVER
14 | #CFLAGS += -DALL_DH_GROUPS
15 |
16 | LIB_OBJS= \
17 | aes-cbc.o \
18 | aes-ctr.o \
19 | aes-eax.o \
20 | aes-encblock.o \
21 | aes-internal.o \
22 | aes-internal-dec.o \
23 | aes-internal-enc.o \
24 | aes-omac1.o \
25 | aes-unwrap.o \
26 | aes-wrap.o \
27 | des-internal.o \
28 | dh_group5.o \
29 | dh_groups.o \
30 | md4-internal.o \
31 | md5.o \
32 | md5-internal.o \
33 | md5-non-fips.o \
34 | milenage.o \
35 | ms_funcs.o \
36 | rc4.o \
37 | sha1.o \
38 | sha1-internal.o \
39 | sha1-pbkdf2.o \
40 | sha1-tlsprf.o \
41 | sha1-tprf.o \
42 | sha256.o \
43 | sha256-internal.o
44 |
45 | LIB_OBJS += crypto_internal.o
46 | LIB_OBJS += crypto_internal-cipher.o
47 | LIB_OBJS += crypto_internal-modexp.o
48 | LIB_OBJS += crypto_internal-rsa.o
49 | LIB_OBJS += tls_internal.o
50 | LIB_OBJS += fips_prf_internal.o
51 |
52 |
53 | libcrypto.a: $(LIB_OBJS)
54 | $(AR) crT $@ $?
55 |
56 | -include $(OBJS:%.o=%.d)
57 |
--------------------------------------------------------------------------------
/driver/tools/shared/linux/mtlkpack.h:
--------------------------------------------------------------------------------
1 |
2 | #ifdef MTLK_PACK_OFF
3 | #undef MTLK_PACK_OFF
4 | #undef MTLK_PACK_ON
5 | #endif
6 |
7 | #if defined(MTLK_PACK_ON) && defined(__INTERNAL_MTLK_PACK_ON__)
8 |
9 | #error mtlkinc.h already included!
10 |
11 | #elif defined(MTLK_PACK_ON) && !defined(__INTERNAL_MTLK_PACK_ON__)
12 | #define __INTERNAL_MTLK_PACK_ON__
13 |
14 | /**********************************************************/
15 | /* Packing ON here */
16 | // For uint8 arrays
17 | #define MTLK_PAD4(S) (((4 - ((S) & 0x3)) & 0x3) + (S))
18 | // For uint16 arrays
19 | #define MTLK_PAD2(S) (((2 - ((S) & 0x1)) & 0x1) + (S))
20 |
21 | #define __MTLK_PACKED __attribute__((aligned(1), packed))
22 | /**********************************************************/
23 |
24 | #elif !defined(MTLK_PACK_ON) && defined(__INTERNAL_MTLK_PACK_ON__)
25 |
26 | /**********************************************************/
27 | /* Packing OFF here */
28 | #undef __MTLK_PACKED
29 | #undef MTLK_PAD4
30 | /**********************************************************/
31 |
32 | #undef __INTERNAL_MTLK_PACK_ON__
33 | #endif
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/hostap08/eap_example/ca.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIDBzCCAnCgAwIBAgIJAIb4NS4TdLXUMA0GCSqGSIb3DQEBBQUAMGExCzAJBgNV
3 | BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMQ4wDAYDVQQKEwV3MS5maTEQMA4G
4 | A1UEAxMHVGVzdCBDQTEbMBkGCSqGSIb3DQEJARYMdGVzdGNhQHcxLmZpMB4XDTA3
5 | MTIwOTAzMTQzN1oXDTE3MTIwNjAzMTQzN1owYTELMAkGA1UEBhMCVVMxEzARBgNV
6 | BAgTCkNhbGlmb3JuaWExDjAMBgNVBAoTBXcxLmZpMRAwDgYDVQQDEwdUZXN0IENB
7 | MRswGQYJKoZIhvcNAQkBFgx0ZXN0Y2FAdzEuZmkwgZ8wDQYJKoZIhvcNAQEBBQAD
8 | gY0AMIGJAoGBAO6GoecRclnILh9FTvqnY/yUZmeJDgC+3/PQiicpMDhAzCkWAmi+
9 | a1LSnqakNN/GdCy3q053TFLFEzhEHkhhRwY/zzj2vZIcFZESoUhr67CzCpcPmTGa
10 | AfOzsGPjaH6xYcaOR4RZMfXd/EKfAauHxj3LuCusLL5hK/FwxWhQJNJrAgMBAAGj
11 | gcYwgcMwHQYDVR0OBBYEFKhJuSLJ6JhcB/dRgB8j0h9mOlpKMIGTBgNVHSMEgYsw
12 | gYiAFKhJuSLJ6JhcB/dRgB8j0h9mOlpKoWWkYzBhMQswCQYDVQQGEwJVUzETMBEG
13 | A1UECBMKQ2FsaWZvcm5pYTEOMAwGA1UEChMFdzEuZmkxEDAOBgNVBAMTB1Rlc3Qg
14 | Q0ExGzAZBgkqhkiG9w0BCQEWDHRlc3RjYUB3MS5maYIJAIb4NS4TdLXUMAwGA1Ud
15 | EwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAuU+5Uerq+n8WgiIsiANT3wUoGe2Y
16 | cnoQi2nVjUHrivgMDufH0tgh1AVfc3wVNNREdGC136qr1KBNqalQx2rKZ76xeNqW
17 | sQa2LIC2wE7Q7LJsltUcUjPyZHGUhBqWjKsCvlonfNB6JHkEayTEvVvyupgzTsxW
18 | QuuRdZ0sNv/S8VI=
19 | -----END CERTIFICATE-----
20 |
--------------------------------------------------------------------------------
/hostap08/src/ap/beacon.h:
--------------------------------------------------------------------------------
1 | /*
2 | * hostapd / IEEE 802.11 Management: Beacon and Probe Request/Response
3 | * Copyright (c) 2002-2004, Instant802 Networks, Inc.
4 | * Copyright (c) 2005-2006, Devicescape Software, Inc.
5 | *
6 | * This program is free software; you can redistribute it and/or modify
7 | * it under the terms of the GNU General Public License version 2 as
8 | * published by the Free Software Foundation.
9 | *
10 | * Alternatively, this software may be distributed under the terms of BSD
11 | * license.
12 | *
13 | * See README and COPYING for more details.
14 | */
15 |
16 | #ifndef BEACON_H
17 | #define BEACON_H
18 |
19 | struct ieee80211_mgmt;
20 |
21 | void handle_probe_req(struct hostapd_data *hapd,
22 | const struct ieee80211_mgmt *mgmt, size_t len);
23 | #ifdef NEED_AP_MLME
24 | void ieee802_11_set_beacon(struct hostapd_data *hapd);
25 | void ieee802_11_set_beacons(struct hostapd_iface *iface);
26 | #else /* NEED_AP_MLME */
27 | static inline void ieee802_11_set_beacon(struct hostapd_data *hapd)
28 | {
29 | }
30 |
31 | static inline void ieee802_11_set_beacons(struct hostapd_iface *iface)
32 | {
33 | }
34 | #endif /* NEED_AP_MLME */
35 |
36 | #endif /* BEACON_H */
37 |
--------------------------------------------------------------------------------
/hostap08/wpa_supplicant/wpa_gui-qt4/peers.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | Peers
4 |
5 |
6 |
7 | 0
8 | 0
9 | 400
10 | 300
11 |
12 |
13 |
14 | Peers
15 |
16 |
17 | -
18 |
19 |
20 |
21 | 0
22 | 0
23 |
24 |
25 |
26 | true
27 |
28 |
29 | QAbstractItemView::NoEditTriggers
30 |
31 |
32 | QListView::IconMode
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/mtlkpack.h:
--------------------------------------------------------------------------------
1 |
2 | #ifdef MTLK_PACK_OFF
3 | #undef MTLK_PACK_OFF
4 | #undef MTLK_PACK_ON
5 | #endif
6 |
7 | #if defined(MTLK_PACK_ON) && defined(__INTERNAL_MTLK_PACK_ON__)
8 |
9 | #error mtlkinc.h already included!
10 |
11 | #elif defined(MTLK_PACK_ON) && !defined(__INTERNAL_MTLK_PACK_ON__)
12 | #define __INTERNAL_MTLK_PACK_ON__
13 |
14 | /**********************************************************/
15 | /* Packing ON here */
16 | // For uint8 arrays
17 | #define MTLK_PAD4(S) (((4 - ((S) & 0x3)) & 0x3) + (S))
18 | // For uint16 arrays
19 | #define MTLK_PAD2(S) (((2 - ((S) & 0x1)) & 0x1) + (S))
20 |
21 | #define __MTLK_PACKED __attribute__((aligned(1), packed))
22 | /**********************************************************/
23 |
24 | #elif !defined(MTLK_PACK_ON) && defined(__INTERNAL_MTLK_PACK_ON__)
25 |
26 | /**********************************************************/
27 | /* Packing OFF here */
28 | #undef __MTLK_PACKED
29 | #undef MTLK_PAD4
30 | /**********************************************************/
31 |
32 | #undef __INTERNAL_MTLK_PACK_ON__
33 | #endif
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/driver/wireless/shared/mtlk_algorithms.h:
--------------------------------------------------------------------------------
1 | #ifndef _MTLK_ALGORITHMS_H_
2 | #define _MTLK_ALGORITHMS_H_
3 |
4 | typedef void* (*mtlk_get_next_t)(void* item);
5 | typedef void (*mtlk_set_next_t)(void* item, void* next);
6 | typedef int (*mtlk_is_less_t)(void* item1, void* item2);
7 |
8 | /*!
9 | \fn void* __MTLK_IFUNC mtlk_sort_slist(...)
10 | \brief Sort abstract singly linked list.
11 |
12 | \param list Pointer to the first element of the list to be sorted
13 | \param func_get_next Pointer to function that returns next element of the given element
14 | \param func_set_next Pointer to function that sets next element for the given element
15 | \param func_is_less Pointer to compare function that returns non-zero if first given element less then second, 0 otherwise.
16 |
17 | \return Pointer to new first element of the list
18 |
19 | \warning This routine assumes that given list is non-cyclic singly linked list, next of its last element is NULL
20 | */
21 |
22 | void __MTLK_IFUNC
23 | mtlk_sort_slist(void** list, mtlk_get_next_t func_get_next,
24 | mtlk_set_next_t func_set_next, mtlk_is_less_t func_is_less);
25 |
26 | #endif //_MTLK_ALGORITHMS_H_
27 |
--------------------------------------------------------------------------------
/hostap08/src/eap_common/eap_wsc_common.c:
--------------------------------------------------------------------------------
1 | /*
2 | * EAP-WSC common routines for Wi-Fi Protected Setup
3 | * Copyright (c) 2007, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #include "includes.h"
16 |
17 | #include "common.h"
18 | #include "eap_defs.h"
19 | #include "eap_common.h"
20 | #include "wps/wps.h"
21 | #include "eap_wsc_common.h"
22 |
23 | struct wpabuf * eap_wsc_build_frag_ack(u8 id, u8 code)
24 | {
25 | struct wpabuf *msg;
26 |
27 | msg = eap_msg_alloc(EAP_VENDOR_WFA, EAP_VENDOR_TYPE_WSC, 2, code, id);
28 | if (msg == NULL) {
29 | wpa_printf(MSG_ERROR, "EAP-WSC: Failed to allocate memory for "
30 | "FRAG_ACK");
31 | return NULL;
32 | }
33 |
34 | wpa_printf(MSG_DEBUG, "EAP-WSC: Send WSC/FRAG_ACK");
35 | wpabuf_put_u8(msg, WSC_FRAG_ACK); /* Op-Code */
36 | wpabuf_put_u8(msg, 0); /* Flags */
37 |
38 | return msg;
39 | }
40 |
--------------------------------------------------------------------------------
/driver/tools/rtlogger/logserver/linux/Makefile.am:
--------------------------------------------------------------------------------
1 | # $Id: Makefile.am 11018 2011-04-13 08:02:30Z andriit $
2 |
3 | include $(top_srcdir)/Makefile.am.target_apps
4 |
5 | dist_rtlogger_DATA=app_toolchain_info
6 |
7 | rtlogger_PROGRAMS = logserver
8 | AM_CPPFLAGS += -I$(tools_shared_srcdir)/linux \
9 | -I$(tools_shared_srcdir) \
10 | -I$(wireless_shared_srcdir) \
11 | -I$(srcdir)/../../shared
12 |
13 | nodist_logserver_SOURCES = $(rtlogger_shared_srcdir)/logmacro_database.c
14 |
15 | logserver_SOURCES = logserver.c logserver.h \
16 | db.c db.h \
17 | net.c net.h \
18 | cqueue.c cqueue.h \
19 | proto_drv.c proto_drv.h \
20 | proto_lg.c proto_lg.h \
21 | logsrv_utils.c logsrv_utils.h \
22 | compat.h
23 |
24 | logserver_LDADD = @ld_group_start@ \
25 | $(tools_shared_builddir)/linux/libmtlkc.a \
26 | $(wireless_shared_builddir)/libmtlkwls.a \
27 | @ld_group_end@ \
28 | -lpthread
29 |
--------------------------------------------------------------------------------
/driver/tools/shared/linux/mtlkidefs.h:
--------------------------------------------------------------------------------
1 |
2 |
3 | #ifdef MTLK_IDEFS_OFF
4 | #undef MTLK_IDEFS_OFF
5 | #undef MTLK_IDEFS_ON
6 | #endif
7 |
8 | #if defined(MTLK_IDEFS_ON) && defined(__INTERNAL_MTLK_IDEFS_ON__)
9 |
10 | #error mtlkidefs.h already included here!
11 |
12 | #elif defined(MTLK_IDEFS_ON) && !defined(__INTERNAL_MTLK_IDEFS_ON__)
13 | #define __INTERNAL_MTLK_IDEFS_ON__
14 |
15 | /**********************************************************/
16 | /* Packing ON here */
17 | #if !defined(MTLK_IDEFS_PACKING) /* native (default) */
18 | #define __MTLK_IDATA
19 | #elif (MTLK_IDEFS_PACKING == 1) /* pack(1) */
20 | #define __MTLK_IDATA __attribute__((aligned(1), packed))
21 | #else
22 | #error Unsupported MTLK_I_PACKING
23 | #endif
24 | /**********************************************************/
25 |
26 | #elif !defined(MTLK_IDEFS_ON) && defined(__INTERNAL_MTLK_IDEFS_ON__)
27 |
28 | /**********************************************************/
29 | /* Packing OFF here */
30 | #undef __MTLK_IDATA
31 | #undef MTLK_IDEFS_PACKING
32 | /**********************************************************/
33 |
34 | #undef __INTERNAL_MTLK_IDEFS_ON__
35 | #endif
36 |
--------------------------------------------------------------------------------
/hostap08/src/eap_peer/mschapv2.h:
--------------------------------------------------------------------------------
1 | /*
2 | * MSCHAPV2 (RFC 2759)
3 | * Copyright (c) 2004-2008, Jouni Malinen
4 | *
5 | * This program is free software; you can redistribute it and/or modify
6 | * it under the terms of the GNU General Public License version 2 as
7 | * published by the Free Software Foundation.
8 | *
9 | * Alternatively, this software may be distributed under the terms of BSD
10 | * license.
11 | *
12 | * See README and COPYING for more details.
13 | */
14 |
15 | #ifndef MSCHAPV2_H
16 | #define MSCHAPV2_H
17 |
18 | #define MSCHAPV2_CHAL_LEN 16
19 | #define MSCHAPV2_NT_RESPONSE_LEN 24
20 | #define MSCHAPV2_AUTH_RESPONSE_LEN 20
21 | #define MSCHAPV2_MASTER_KEY_LEN 16
22 |
23 | const u8 * mschapv2_remove_domain(const u8 *username, size_t *len);
24 | int mschapv2_derive_response(const u8 *username, size_t username_len,
25 | const u8 *password, size_t password_len,
26 | int pwhash,
27 | const u8 *auth_challenge,
28 | const u8 *peer_challenge,
29 | u8 *nt_response, u8 *auth_response,
30 | u8 *master_key);
31 | int mschapv2_verify_auth_response(const u8 *auth_response,
32 | const u8 *buf, size_t buf_len);
33 |
34 | #endif /* MSCHAPV2_H */
35 |
--------------------------------------------------------------------------------
/driver/tools/shared/ParamInfo.h:
--------------------------------------------------------------------------------
1 | #ifndef _PARAMINFO_H_INCLUDED_
2 | #define _PARAMINFO_H_INCLUDED_
3 |
4 | #if defined(WIN32)
5 | #pragma warning(push,3)
6 | #endif
7 |
8 | #include
9 | #include
10 |
11 | #if defined(WIN32)
12 | #pragma warning(pop)
13 | #endif
14 |
15 | using namespace std;
16 |
17 | #include "CmdLine.h"
18 |
19 | class ParamInfo
20 | {
21 | public:
22 | ParamInfo(const CCmdLine::ParamName& paramName,
23 | const char* paramDescr, const char* valueTemplate = "")
24 | : Name(paramName)
25 | , Description(paramDescr)
26 | , ValueTemplate(valueTemplate)
27 | {}
28 |
29 | operator const CCmdLine::ParamName&() const { return Name; }
30 | operator const CCmdLine::ParamName&() { return Name; }
31 | CCmdLine::ParamName Name;
32 | string Description;
33 | string ValueTemplate;
34 | };
35 |
36 | class CHelpScreen
37 | {
38 | public:
39 | void AddParam(const ParamInfo &Param)
40 | {
41 | m_Params.push_back(Param);
42 | }
43 | string GetHelp(void) const;
44 | protected:
45 | vector m_Params;
46 | };
47 |
48 | #endif /* _PARAMINFO_H_INCLUDED_ */
49 |
50 |
--------------------------------------------------------------------------------
/driver/wireless/driver/linux/wpa.h:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: wpa.h 10052 2010-12-01 16:43:51Z dmytrof $
3 | *
4 | * Copyright (c) 2003-2005, Jouni Malinen
5 | * Copyright (c) 2009 Metalink Broadband (Israel)
6 | *
7 | * WPA security helper routines
8 | *
9 | */
10 |
11 | #ifndef __WPA_H__
12 | #define __WPA_H__
13 |
14 | #define LOG_LOCAL_GID GID_WPA
15 | #define LOG_LOCAL_FID 0
16 |
17 | #define WPA_KEY_MGMT_IEEE8021X 0x00
18 | #define WPA_KEY_MGMT_PSK 0x01
19 | #define WPA_KEY_MGMT_NONE 0x02
20 | #define WPA_KEY_MGMT_IEEE8021X_NO_WPA 0x08
21 | #define WPA_KEY_MGMT_WPA_NONE 0x10
22 |
23 | #define WPA_PROTO_WPA 0x00
24 | #define WPA_PROTO_RSN 0x01
25 |
26 | #define GENERIC_INFO_ELEM 0xdd
27 | #define RSN_INFO_ELEM 0x30
28 |
29 | #define PMKID_LEN 16
30 |
31 | struct wpa_ie_data {
32 | int proto;
33 | int pairwise_cipher;
34 | int group_cipher;
35 | int key_mgmt;
36 | int capabilities;
37 | int num_pmkid;
38 | const u8 *pmkid;
39 | };
40 |
41 | int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len,
42 | struct wpa_ie_data *data);
43 |
44 | #undef LOG_LOCAL_GID
45 | #undef LOG_LOCAL_FID
46 |
47 | #endif // __WPA_H__
48 |
--------------------------------------------------------------------------------