Based on link to other old thread I attempted rebuild upgt driver with my device included just in case it is just not being recognised (as in that thread).
My product is already being listed in /sys/dev/usb/usbdevs though so I don't need to change it:
product NETGEAR WG111V2_2 0x4240 PrismGT USB 2.0 WLAN
But the product is not referred to in /sys/dev/usb/wlan/if_upgt.c.
I therefore added these two lines:
UPGT_DEV(WG111V2_2, PRISM_GT_1),
UPGT_DEV(WG111V2_2, PRISM_GT_2),
I then tried to make:
> cd /usr/src/sys/modules/usb/upgt # make
> make
Warning: Object directory not changed from original /usr/src/sys/modules/usb/upgt
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/usb/upgt/../../../dev/usb/wlan/if_upgt.c
/usr/src/sys/modules/usb/upgt/../../../dev/usb/wlan/if_upgt.c:185: error: 'USB_VENDOR_WG111V2_2' undeclared here (not in a function)
/usr/src/sys/modules/usb/upgt/../../../dev/usb/wlan/if_upgt.c:185: error: 'USB_PRODUCT_WG111V2_2_PRISM_GT_1' undeclared here (not in a function)
/usr/src/sys/modules/usb/upgt/../../../dev/usb/wlan/if_upgt.c:186: error: 'USB_PRODUCT_WG111V2_2_PRISM_GT_2' undeclared here (not in a function)
*** Error code 1
Stop in /usr/src/sys/modules/usb/upgt.
I can see that the build is failing on my added lines and obviously something else is missing, but I'm not sure what.
I'm going to back out my changes and try hard to get upgt to load and see if that makes a difference.
|