Re: !Help Development of WPA_SUPPLICANT

2009-06-19 Thread Harsha gowda
Hi sundaram,
Thanks for your reply,

I tried as you mentioned,

Below is output,



[r...@localhost wpa_supplicant]# *debuginfo-install wpa_supplicant*
Loaded plugins: refresh-packagekit


=
 Package Arch
Version
Repository   Size
=
Installing:
 dbus-debuginfo i386
1.2.4-1.fc10fedora-debuginfo
1.2 M
 glibc-debuginfo i686
2.9-2
fedora-debuginfo9.1 M
 openssl-debuginfoi686
0.9.8g-11.fc10fedora-debuginfo
3.0 M
 wpa_supplicant-debuginfo i386
1:0.6.4-2.fc10 fedora-debuginfo
1.1 M
Installing for dependencies:
 glibc-debuginfo-common   i386
2.9-2
fedora-debuginfo 13 M

Transaction Summary
==
Install  5 Package(s)
Update   0 Package(s)
Remove   0 Package(s)

Total download size: 28 M
Is this ok [y/N]: y
Downloading Packages:
(1/5):
wpa_supplicant-debuginfo-0.6.4-2.fc10.i386.rpm
| 1.1 MB 00:10
(2/5):
dbus-debuginfo-1.2.4-1.fc10.i386.rpm
 | 1.2 MB 00:15
(3/5):
openssl-debuginfo-0.9.8g-11.fc10.i686.rpm
| 3.0 MB 00:25
(4/5):
glibc-debuginfo-2.9-2.i686.rpm
| 9.1 MB 01:07
(5/5):
glibc-debuginfo-common-2.9-2.i386.rpm
| 13 MB  01:39

Total
126 kB/s |  28 MB 03:43
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing :
glibc-debuginfo-common
1/5
  Installing :
glibc-debuginfo
2/5
  Installing :
openssl-debuginfo
   3/5
  Installing :
wpa_supplicant-debuginfo
4/5
  Installing :
dbus-debuginfo
5/5

Installed:
  dbus-debuginfo.i386 0:1.2.4-1.fc10   glibc-debuginfo.i686 0:2.9-2
openssl-debuginfo.i686 0:0.9.8g-11.fc10   wpa_supplicant-debuginfo.i386
1:0.6.4-2.fc10

Dependency Installed:
  glibc-debuginfo-common.i386 0:2.9-2



Still wireless connection is disabled in network-manager,
Could you please elaborate what you want to say.. ?




Thanks
Harsha






On Fri, Jun 19, 2009 at 6:19 PM, Rahul Sundaram
wrote:

> On 06/19/2009 05:53 PM, Harsha gowda wrote:
> > Hi,
> > Help !,
> > I want to setup a debug build of wpasupplicant so that i can Trace PEAP
> > - MSCHAP v2 protocol for my study,
> >
> > so i have installed Fedora release 10 (Cambridge),
> > the wpa supplicant works fine by default which come with CD,
> >
> > I downloaded *wpa_supplicant-0.6.4-2.fc10.src.rpm*,
> > and extracted it to a folder,
>
> # debuginfo-install wpa_supplicant
>
> Rahul
>
> --
> fedora-devel-list mailing list
> fedora-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-devel-list
>



-- 
ಇಂತಿ
ಹರ್ಷ ಕೃ ಗೌಡ
-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

Re: !Help Development of WPA_SUPPLICANT

2009-06-19 Thread Mathieu Bridon (bochecha)
> But how can i modify the source ,
> For example think i just added a printf("HARSHA"); in wpa_supplicant/main.c
> main () function,
> How do i compile it..
> How do i install my compiled executable!
> so that in wpa_supplicant.log i can see the text "HARSHA",

That's not specific to wpa_supplicant.

Just rebuild the srpm with your own tarball, and install the resulting rpm.


--

Mathieu Bridon (bochecha)

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: !Help Development of WPA_SUPPLICANT

2009-06-19 Thread Harsha gowda
Thank you for your precious information,

But how can i modify the source ,
For example think i just added a printf("HARSHA"); in wpa_supplicant/main.c
main () function,
How do i compile it..
How do i install my compiled executable!
so that in wpa_supplicant.log i can see the text "HARSHA",


where i have to put the compiled one ...?
If i replace with /usr/sbin/wpa_supplicant
the networkmanager wont show wireless


If any links how to do development of wpa_supplicant would be of greater
help.

Thanks in advance.

Regards
Harsha

On Fri, Jun 19, 2009 at 6:46 PM, Rahul Sundaram
wrote:

> On 06/19/2009 06:21 PM, Harsha gowda wrote:
>
> > Still wireless connection is disabled in network-manager,
> > Could you please elaborate what you want to say.. ?
>
> You were asking for a method to install the debug information. I have
> provided you a better way than rebuilding the package from source. You
> can proceed from here to do what you intended to do in the first place
> which is not very clear to me.
>
> Rahul
>
>


-- 
ಇಂತಿ
ಹರ್ಷ ಕೃ ಗೌಡ
-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

Re: !Help Development of WPA_SUPPLICANT

2009-06-19 Thread Rahul Sundaram
On 06/19/2009 06:21 PM, Harsha gowda wrote:

> Still wireless connection is disabled in network-manager,
> Could you please elaborate what you want to say.. ?

You were asking for a method to install the debug information. I have
provided you a better way than rebuilding the package from source. You
can proceed from here to do what you intended to do in the first place
which is not very clear to me.

Rahul

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: !Help Development of WPA_SUPPLICANT

2009-06-19 Thread Rahul Sundaram
On 06/19/2009 05:53 PM, Harsha gowda wrote:
> Hi,
> Help !,
> I want to setup a debug build of wpasupplicant so that i can Trace PEAP
> - MSCHAP v2 protocol for my study,
> 
> so i have installed Fedora release 10 (Cambridge),
> the wpa supplicant works fine by default which come with CD,
> 
> I downloaded *wpa_supplicant-0.6.4-2.fc10.src.rpm*,
> and extracted it to a folder,

# debuginfo-install wpa_supplicant

Rahul

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


!Help Development of WPA_SUPPLICANT

2009-06-19 Thread Harsha gowda
Hi,
Help !,
I want to setup a debug build of wpasupplicant so that i can Trace PEAP -
MSCHAP v2 protocol for my study,

so i have installed Fedora release 10 (Cambridge),
the wpa supplicant works fine by default which come with CD,

I downloaded *wpa_supplicant-0.6.4-2.fc10.src.rpm*,
and extracted it to a folder,

[r...@localhost wpa_supplicant]# *make*
[r...@localhost wpa_supplicant]# *make install*
*$mkdir -p /usr/local/sbin/*
*$for i in wpa_supplicant wpa_passphrase wpa_cli; do cp -f $i
/usr/local/sbin/$i; done*
[r...@localhost wpa_supplicant]#


but if give command "*ps -ef* *| grep "wpa*"

i can see process running from */usr/sbin*
but files copied during make install was to */usr/local/sbin/,
*So i copied from* **/usr/local/sbin/wpa* to */usr/sbin*,

In network-manager applet the wireless is showing up.

Below is the output of few command's might help you answer my problem,








*[r...@localhost wpa_supplicant]# nm-tool*

- Device: wlan0

  Type:  802.11 WiFi
  Driver:ath5k_pci
  *State: unavailable*
  Default:   no
  HW Address:00:0F:B5:35:09:46

  Capabilities:
Supported:   yes

  Wireless Settings
WEP Encryption:  yes
WPA Encryption:  yes
WPA2 Encryption: yes

  Wireless Access Points



*[r...@localhost wpa_supplicant]# iwconfig *
lono wireless extensions.

eth0  no wireless extensions.

eth1  no wireless extensions.

wmaster0  no wireless extensions.

wlan0 IEEE 802.11abg  ESSID:"UTStarcom"
  Mode:Managed  Frequency:2.462 GHz  Access Point: Not-Associated
  Tx-Power=23 dBm
  Retry min limit:7   RTS thr:off   Fragment thr=2352 B
  Encryption key:off
  Power Management:off
  Link Quality:0  Signal level:0  Noise level:0
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:0   Missed beacon:0

pan0  no wireless extensions.

-

*[r...@localhost wpa_supplicant]# ifconfig wlan0*
wlan0 Link encap:Ethernet  HWaddr 00:0F:B5:35:09:46
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

-
*[r...@localhost wpa_supplicant]# cat /etc/init.d/wpa_supplicant *
#!/bin/bash
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network

exec="/usr/sbin/wpa_supplicant"
prog=$(basename $exec)
conf="/etc/wpa_supplicant/wpa_supplicant.conf"
lockfile=/var/lock/subsys/$prog

[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog

start() {
 echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}


*[r...@localhost wpa_supplicant]# cat
/etc/wpa_supplicant/wpa_supplicant.conf *
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

--
*[r...@localhost wpa_supplicant]# cat /usr/share/dbus-1/system-services*
/fi.epitest.hostap.WPASupplicant.service
[D-BUS Service]
Name=fi.epitest.hostap.WPASupplicant
Exec=/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf
-dddt -u -f /var/log/wpa_supplicant.log
User=root
[r...@localhost wpa_supplicant]#
--

*[r...@localhost wpa_supplicant]# lshal*

udi = '/org/freedesktop/Hal/devices/net_00_0f_b5_35_09_46'
  info.capabilities = {'net', 'net.80211'} (string list)
  info.category = 'net.80211'  (string)
  info.parent = '/org/freedesktop/Hal/devices/pci_168c_13'  (string)
  info.product = 'WLAN Interface'  (string)
  info.subsystem = 'net'  (string)
  info.udi = '/org/freedesktop/Hal/devices/net_00_0f_b5_35_09_46'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'net'  (string)
  linux.sysfs_path =
'/sys/devices/pci:00/:00:1e.0/:04:00.0/:05:00.0/net/wlan0'
(string)
  net.80211.mac_address = 67464661318  (0xfb5350946)  (uint64)
  net.address = '00:0f:b5:35:09:46'  (string)
  net.arp_proto_hw_id = 1  (0x1)  (int)
  net.interface = 'wlan0'  (string)
  net.linux.ifindex = 5  (0x5)  (int)
  net.originating_device = '/org/freedesktop/Hal/devices/pci_168c_13'
(string)
  net.physical_device = '/org/freedesktop/Hal/devices/pci