Re: Fine, OK, here's my initial AR9380/AR9485 support

2013-03-10 Thread Rui Paulo
On 2013/03/10, at 16:35, Joshua Isom jri...@gmail.com wrote:

 It's my first time using git, so there's a learning curve.  I'm building on 
 9-STABLE, but because of yacc I am doing a buildworld first.  First it fails 
 with ichan not being used in ar9300_radio.c.  I commented it out, rebuilt, 
 and then it fails with the errors listed below.  I was using -j, but the 
 error messages look readable enough.  Any clue to get it to compile?


Did you 'git checkout branch-name' ?

Regards,
--
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


CFT: wpa_supplicant/hostapd import patch

2013-06-29 Thread Rui Paulo
Hi,

I have a patch that updates the base system version of wpa_supplicant / hostapd 
at:

http://people.freebsd.org/~rpaulo/wpa-2.0.diff

Beware that it's big. It would be really helpful if you could test it before I 
commit it.

Thanks,
--
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: CFT: wpa_supplicant/hostapd import patch

2013-06-30 Thread Rui Paulo
On 30 Jun 2013, at 08:49, Lev Serebryakov l...@freebsd.org wrote:

 Hello, Rui.
 You wrote 30 июня 2013 г., 5:04:44:
 
 RP I have a patch that updates the base system version of wpa_supplicant / 
 hostapd at:
 RP http://people.freebsd.org/~rpaulo/wpa-2.0.diff
 RP Beware that it's big. It would be really helpful if you could test it 
 before I commit it.
  Patch application error:
 
 Hmm...  The next patch looks like a unified diff to me...
 The text leading up to this was:
 --
 |Index: contrib/wpa/src/drivers/driver_bsd.c
 |===
 |--- contrib/wpa/src/drivers/driver_bsd.c   (working copy)
 |+++ contrib/wpa/src/drivers/driver_bsd.c   (working copy)
 --
 File to patch:
 
 r252418
 
 now I have only
 
 usr.sbin/wpa/wpa_supplicant/driver_freebsd.c
 usr.sbin/wpa/hostapd/driver_freebsd.c
 


Looks like svn wasn't smart enough to include the copy in the diff output. Can 
you copy driver_bsd.c from vendor/wpa/dist/src/drivers?

--
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org

Re: CFT: wpa_supplicant/hostapd import patch

2013-06-30 Thread Rui Paulo
On 30 Jun 2013, at 13:08, Lev Serebryakov l...@freebsd.org wrote:

 Hello, Rui.
 You wrote 30 июня 2013 г., 20:27:51:
 
 RP Actually, I just need to use svn diff --show-copies-as-adds. I've updated 
 the patch:
 RP http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz
 And it is better to apply it with svn patch, not simple patch.
 
 BTW,  do  you have plan to enable different advanced options, as WPS,
 P2P, and others?


WPS is enabled. P2P requires work in the drivers and net80211.

--
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org

Re: CFT: wpa_supplicant/hostapd import patch

2013-06-30 Thread Rui Paulo
On 30 Jun 2013, at 13:11, Lev Serebryakov l...@freebsd.org wrote:

 Hello, Rui.
 You wrote 1 июля 2013 г., 0:09:39:
 
 RP On 30 Jun 2013, at 13:08, Lev Serebryakov l...@freebsd.org wrote:
 
 RP Actually, I just need to use svn diff --show-copies-as-adds. I've 
 updated the patch:
 RP http://people.freebsd.org/~rpaulo/wpa-2.0.diff.gz
 And it is better to apply it with svn patch, not simple patch.
 BTW,  do  you have plan to enable different advanced options, as WPS,
 P2P, and others?
 RP WPS is enabled. P2P requires work in the drivers and net80211.
 I'm more interested in hostpad P2P support, not client one :) Does it
 need work in drivers too?


Yes, it does. I don't have any plans to work on P2P, sorry.

--
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org

Re: CFT: wpa_supplicant/hostapd import patch

2013-06-30 Thread Rui Paulo
On 30 Jun 2013, at 13:15, Lev Serebryakov l...@freebsd.org wrote:

 Hello, Rui.
 You wrote 1 июля 2013 г., 0:13:04:
 
 RP Yes, it does. I don't have any plans to work on P2P, sorry.
  Could you give some links/pointers to what is needed from
 drivers/stack to make it work? Is here any documentation on API, or
 something like that?


I did not investigate much. If I were you, I'd look at the Makefile from 
hostapd to see which files are needed along with the necessary CONFIG_P2P 
macro. Then I would add them to our Makefile. You'll have build failures. Go 
from there and figure out how it works and what needs to be done.

--
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org

Re: CFT: wpa_supplicant/hostapd import patch

2013-06-30 Thread Rui Paulo
On 30 Jun 2013, at 13:25, Lev Serebryakov l...@freebsd.org wrote:

 how it works is most scary part. As far as I understand, 802.11 standards
 are not freely-available. Or they are? I need to investigate it.


No, they aren't :-( That said, if you can look at the source code of 
mac80211/ath9k I think you could derive how it's supposed to work. I understand 
that it's a huge task.

--
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: CFT: wpa_supplicant/hostapd import patch

2013-07-03 Thread Rui Paulo
 (2412 MHz 11g ht/20)
regdomain 101 indoor ecm authmode OPEN privacy OFF txpower 20 bmiss 7
scanvalid 60 protmode CTS -ampdutx ampdurx ampdulimit 8k
ampdudensity 8 shortgi wme burst
 pciconf -lv:
 ath0@pci0:8:0:0:class=0x028000 card=0x23091a32 chip=0x002e168c rev=0x01 
 hdr=0x00
vendor = 'Atheros Communications Inc.'
device = 'AR9287 Wireless Network Adapter (PCI-Express)'
class  = network
 uname -a:
 FreeBSD laptop.qtchat.org 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r252464: Mon 
 Jul  1 13:09:21 EDT 2013 
 r...@laptop.qtchat.org:/usr/obj/usr/src/sys/MYKERNEL  amd64
 Happy to help debug, just tell me what info you need or steps to perform.

Please run wpa_supplicant -c /etc/wpa_supplicant -ddd -i wlan0 21 | tee log 
and make sure devd isn't starting it for you (i.e., /etc/rc.conf should not 
have any ifconfig_wlan0 line).
Then please send me the log. 

FWIW, I tested suspend and resume and I didn't have any problems. In version 
0.7.3, it always required a reassociate but now it shouldn't be the case.

--
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org

Re: CFT: wpa_supplicant/hostapd import patch

2013-07-04 Thread Rui Paulo
Please try again the latest patch. I found the bug you reported and it's fixed 
now.

Thanks,
--
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: My WLI-UC-GNM up crash

2013-08-01 Thread Rui Paulo
On 31 Jul 2013, at 01:28, XiaoQI Ge g...@7axu.com wrote:

 Last night, I use the latest FreeBSD source (r253827) and
 crochet-freebsd compile img
 My WLI-UC-GNM will be disconnected after a period of operation
 
 run0: device timeout
 run0: at uhub0, port 1, addr 2 (disconnected)

If you are using the USB cable to power the BBB, then that's your problem. You 
need a 5V 1A+ power adapter to be able to use USB WiFi cards with the 
BeagleBone.

--
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: ral(4) panic. head, r257837

2013-12-22 Thread Rui Paulo
 in
 trap_pfault (frame=0xfe011fe61cf0, usermode=0)
 at /usr/src/sys/amd64/amd64/trap.c:692 #8  0x80a8165b in
 trap (frame=0xfe011fe61cf0)
 at /usr/src/sys/amd64/amd64/trap.c:456 #9  0x80a68222 in
 calltrap () at /usr/src/sys/amd64/amd64/exception.S:232
 #10 0x817da911 in rt2860_tx (sc=0xfe9bd000,
m=0xf80004c6dd00, ni=0x0)
at /usr/src/sys/modules/ral/../../dev/ral/rt2860.c:1472
 #11 0x817da89e in rt2860_start_locked
 (ifp=0xf80003bed800)
 at /usr/src/sys/modules/ral/../../dev/ral/rt2860.c:1998 #12
 0x817d57b0 in rt2860_start (ifp=0xf80003bed800)
 at /usr/src/sys/modules/ral/../../dev/ral/rt2860.c:1972 #13
 0x807b5f35 in if_transmit (ifp=value optimized out,
 m=value optimized out) at /usr/src/sys/net/if.c:3352 #14
 0x807fbd96 in ieee80211_vap_pkt_send_dest ( vap=value
 optimized out, m=value optimized out, ni=0xfe0003bae000)
 at /usr/src/sys/net80211/ieee80211_output.c:243 #15
 0x807fce09 in ieee80211_vap_transmit (ifp=value optimized
 out, m=value optimized out)
 outat /usr/src/sys/net80211/ieee80211_output.c:393
 #16 0x8261d91f in lagg_transmit (ifp=0xf80003bec000,
m=0xf80004c6dd00)
at /usr/src/sys/modules/if_lagg/../../net/if_lagg.c:1314
 #17 0x8262b11d in bridge_enqueue (sc=0xf80006597c00,
dst_ifp=0xf80003bec000, m=value optimized out)
at /usr/src/sys/modules/if_bridge/../../net/if_bridge.c:1864
 #18 0x8262a2e0 in bridge_output (ifp=0xf80003bec000,
m=value optimized out, sa=value optimized out, rt=0x1)
at /usr/src/sys/modules/if_bridge/../../net/if_bridge.c:2009
 #19 0x807b8014 in ether_output (ifp=value optimized out,
m=0xf80004001200, dst=0xfe011fe62928, ro=value
 optimized
 out) at /usr/src/sys/net/if_ethersubr.c:387
 #20 0x807abe92 in bpfwrite (dev=value optimized out,
uio=0xf800064d9c00, ioflag=value optimized out)
at /usr/src/sys/net/bpf.c:1082
 #21 0x805ecacf in devfs_write_f (fp=0xf800065f79b0,
uio=0xf800064d9c00, cred=value optimized out, flags=0,
td=0xf800062ea920)
 at /usr/src/sys/fs/devfs/devfs_vnops.c:1672 #22 0x8074594a
 in dofilewrite (td=0xf800062ea920, fd=6, fp=0xf800065f79b0,
 auio=0xf800064d9c00, offset=value optimized out, flags=0) at
 file.h:303 #23 0x80745675 in kern_writev
 (td=0xf800062ea920, fd=6, auio=0xf800064d9c00)
 at /usr/src/sys/kern/sys_generic.c:467 #24 0x80745896 in
 sys_writev (td=0xf800062ea920, uap=0xfe011fe62b40)
 at /usr/src/sys/kern/sys_generic.c:452 #25 0x80a824e7 in
 amd64_syscall (td=0xf800062ea920, traced=0) at
 subr_syscall.c:134 #26 0x80a6850b in Xfast_syscall ()
at /usr/src/sys/amd64/amd64/exception.S:391
 #27 0x000800b5cf3a in ?? ()
 Previous frame inner to this frame (corrupt stack?)
 Current language:  auto; currently minimal
 (kgdb)
 
 at office, laggport alc0 is MASTER on lagg and all works fine.
 
 I have vmcore file and I can enter the necessary commands if this
 will help
 
 
 --
 wbr, tiger
 ___
 freebsd-curr...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-current
 To unsubscribe, send any mail to
 freebsd-current-unsubscr...@freebsd.org
 
 
 
 --
 wbr, tiger
 
 ___
 freebsd-wireless@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
 To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org

--
Rui Paulo



___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


CTF: wpa_supplicant/hostapd 2.4 import

2015-04-19 Thread Rui Paulo
Hi,

Please test the new wpa_supplicant/hostapd.  Here's the patch against FreeBSD 
HEAD:

https://people.freebsd.org/~rpaulo/wpa-2.4.diff

Thanks,
-- 
Rui Paulo
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Intel 3160/7260/7265 driver

2015-05-10 Thread Rui Paulo
Hi,

I've ported the OpenBSD iwm driver and it's sort of working now:

https://github.com/rpaulo/iwm

Some issues:
- scanning is sort of broken now, so you must set the channel with ifconfig
- ultra debugging mode is activated, so expect a lot of logs.

This still needs quite a bit of work before it can be part of FreeBSD, but 
this email is being sent over iwm.  :-)

I only have a 7265, so I'd like people with 3160 or 7260 to try it out.

Regards,
-- 
Rui Paulo
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: Intel 3160/7260/7265 driver

2015-06-04 Thread Rui Paulo
On Wednesday 03 June 2015 18:44:59 Ben Woods wrote:
 On Sun, May 10, 2015 at 09:48:51AM -0700, Rui Paulo wrote:
  Hi,
  
  I've ported the OpenBSD iwm driver and it's sort of working now:
  
  https://github.com/rpaulo/iwm
  
  Some issues:
  - scanning is sort of broken now, so you must set the channel with
  ifconfig
  - ultra debugging mode is activated, so expect a lot of logs.
  
  This still needs quite a bit of work before it can be part of FreeBSD, but
  this email is being sent over iwm.  :-)
  
  I only have a 7265, so I'd like people with 3160 or 7260 to try it out.
 
 Hi,
 
 Running this driver on my NEC Lavie HZ750 (same hardware as the Lenovo
 Lavie) and this is working fine. Thank you so much for your efforts to
 date.
 
 # pciconf -lv
 iwm0@pci0:2:0:0: class=0x028000 card=0x52108086 chip=0x095b8086
 rev=0x61 hdr=0x00
 vendor = 'Intel Corporation'
 class  = network
 
 
 I was using code from http://github.com/rpaulo/iwm:
 commit 6d5cbfa58f152180bbf8f6bcda7c63a6a0abc59a
 Merge: 74ebc8a 68be4af
 Author: Adrian Chadd adr...@freebsd.org
 Date:   Mon Jun 1 22:05:47 2015 -0700
 
 
 I do get some errors, but the wireless still associates using WPA2
 pre-shared key. Unfortunately, it seems to connect in 802.11b mode,
 even though I have tried forcing it to 802.11g or 802.11n modes with
 the following entry in /etc/rc.conf:
 ifconfig_wlan0=mode 11n country AU channel 11 WPA DHCP
 
 
 # service netif restart gives the following errors:
 ifconfig: SIOCSIFMEDIA (media): Device not configured
 kernel: iwm0: iwm_load_firmware: chunk 0 of 3 returned error 35
 wpa_supplicant[1662]: ioctl[SIOCS80211, op=26, val=0, arg_len=0]:
 Operation not supported
 
 
 # ifconfig
 iwm0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 2290
 ether 34:02:86:34:13:18
 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
 media: IEEE 802.11 Wireless Ethernet autoselect mode 11b
 status: associated
 wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500
 ether 34:02:86:34:13:18
 inet 192.168.1.100 netmask 0xff00 broadcast 192.168.1.255
 nd6 options=29PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL
 media: IEEE 802.11 Wireless Ethernet autoselect mode 11b
 status: associated
 ssid 17aHindmarshAve channel 11 (2462 MHz 11b) bssid 04:f0:21:14:c9:7d
 regdomain ROW country AU authmode WPA2/802.11i privacy ON
 deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 bmiss 10
 scanvalid 60 roaming MANUAL
 groups: wlan
 
 
 Note that the new Lenovo X1 Carbon gen3 has the same hardware, so
 should give similar results.

I'm not sure it's doing 11b.  It's all firmware based, so it's probably doing 
11g, but we're reporting it incorrectly.

-- 
Rui Paulo
___
freebsd-wireless@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


CFT: wpa_supplicant/hostapd 2.5

2015-10-13 Thread Rui Paulo
Hi,

Please download and test the wpa_supplicant/hostapd import patch:

http://people.freebsd.org/~rpaulo/patches/wpa-2.5.diff


Changelog:

http://w1.fi/cgit/hostap/plain/hostapd/ChangeLog
http://w1.fi/cgit/hostap/plain/wpa_supplicant/ChangeLog


Please report success/failures.

Thanks,
-- 
Rui Paulo
Wishlist: http://amzn.com/w/ZU4EQTF9M613

___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"


Re: Notice: wifi infrastructure upgraded; time to mergemaster!

2015-08-28 Thread Rui Paulo
On Fri, 2015-08-28 at 17:40 -0700, Rui Paulo wrote:
 On Fri, 2015-08-28 at 17:07 -0700, Adrian Chadd wrote:
  Hi,

  Gleb's wifi work is in -HEAD now. You'll notice that there's no 
  wifi
  parent ifnet device now - you have to clone them to have things 
  work.
  (ie, there's no ath0, iwn0, etc.)
  
  So, you need to update your rc.d scripts in order for things to 
  work
  at startup, or they won't work.
  
  I've asked Gleb to update UPDATING with a notice so people aren't
  (completely) confused by the new behaviour.
 
 This is very bad.  The commit log specifically says rc.conf changes 
 are
 not needed.  There was zero thought given to the upgrade procedure...
 

I just upgraded and there were zero rc.conf changes.  Were you talking
about custom rc.d scripts?
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: Notice: wifi infrastructure upgraded; time to mergemaster!

2015-08-28 Thread Rui Paulo
On Fri, 2015-08-28 at 17:07 -0700, Adrian Chadd wrote:
 Hi,
 
 Gleb's wifi work is in -HEAD now. You'll notice that there's no wifi
 parent ifnet device now - you have to clone them to have things work.
 (ie, there's no ath0, iwn0, etc.)
 
 So, you need to update your rc.d scripts in order for things to work
 at startup, or they won't work.
 
 I've asked Gleb to update UPDATING with a notice so people aren't
 (completely) confused by the new behaviour.

This is very bad.  The commit log specifically says rc.conf changes are
not needed.  There was zero thought given to the upgrade procedure...

-- 
Rui Paulo
___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org


Re: moving some 802.11 code into lib80211

2015-11-26 Thread Rui Paulo
On Thu, 2015-11-26 at 14:57 -0800, Adrian Chadd wrote:
> hiya,
> 
> I've started migrating net80211 specific bits out of ifconfig into a
> library.
> 
> https://reviews.freebsd.org/D4290
> 
> I'd like to commit this initial step in a couple of days so I can
> easily add more to things.
> 
> I'd love feedback. ;)
> 

That looks useful.  A quick look at the API and I didn't see anything
wrong with it...

-- 
Rui Paulo

___
freebsd-wireless@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-wireless
To unsubscribe, send any mail to "freebsd-wireless-unsubscr...@freebsd.org"