[SOLVED] how to test a Ralink MT7601U wireless USB device
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is the make/model of your printer?
What is your current network configuration and do you have a wireless router?
A typical home network has a wireless router where all wireless device connect. All communication between wireless devices goes through the router first.
If you do not have a wireless router you can configure a computer's wireless adapter as an access point called managed mode if it has that capability or as ad-hoc which is a peer to peer mode. In order to get your tablet or printer to see the MT7601U, it needs to be in one those modes. However, depending on the tablet's operating system i.e IOS some can not connect to an ad-hoc network by default.
If the printer has an ad-hoc mode and is an e-printer then it might be easier to configure the computer and tablet to connect to it versus the computer itself.
Not surprised it's confusing, I tried to upload the results of lsusb, lsmod, iwconfig only to be told I was uploading 9 images (even though I was only uploading text) so I had to delete most of the information. This after spending the best part of 24 hours searching the net for info on how to setup this device on Slackware, I was extremly pissed off and that was made worse by the prevention of me including the info I wantedto show. Today I am still angry about how much time I have wasted trying to do something Windows can do immediately.
The [printer is a Fuji Xerox CM115w, not that is relevant given I can't get the wifi device to work.
The current network configuration is whatever NetworkManager does when you install Slackware.
Isn't what I bought supposed to be a router.
Where is it documented that I need a wireless access point to send files to a printer. I do not want to access the internet via the wireless device!
tried following the configuring_a_wireless_access_point and got this
bash-4.4# echo "1" > /proc/sys/net/ipv4/ip_forward
bash-4.4# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
bash-4.4# tail /etc/resolv.conf
# Generated by dhcpcd from eth0.dhcp
# /etc/resolv.conf.head can replace this line
nameserver 192.168.1.254
# /etc/resolv.conf.tail can replace this line
bash-4.4# ifconfig wlan0 192.168.1.254 up
bash-4.4# /etc/rc.d/rc.hostapd start
Starting HOSTAPD: /usr/sbin/hostapd -B -P /var/run/hostapd.pid /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
Could not enable hostapd mode for interface wlan0
hostap driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data: Interface wlan0 wasn't started
bash-4.4#
Not surprised it's confusing, I tried to upload the results of lsusb, lsmod, iwconfig only to be told I was uploading 9 images (even though I was only uploading text) so I had to delete most of the information.
You can just copy/paste that directly into the post using [code][/code] tags... no need to upload anything Normally, the two biggest things with wireless troubleshooting would be the output of lspci -k | grep -iA3 net and iwconfig. This would tell use what network device it is and the kernel module being used and if Slackware detects it as a wireless device. However, since this is a usb device, lspci may not show the wireless device. In that case, lsusb can help, but it isn't as forthcoming as lspci in providing good information. Would you include the output of regular lsusb as well as the output of lsusb -t?
Quote:
Where is it documented that I need a wireless access point to send files to a printer. I do not want to access the internet via the wireless device!
Unless the printer supports adhoc wireless connections, you need an at least access point, but most people use wireless routers. Even if the printer does support adhoc, I've found adhoc connections to be dodgy, even in Windows environments (although, I can't remember if I've ever needed to use adhoc on Linux... it's been years since I've needed it).
No, the USB wireless adapter typically is used to connect the computer to a wireless router or access point. Without knowing the chipset of your device I do not know if it supports ad-hoc or AP mode. And yes it is more difficult then Windows. .
In the 48+ hours I have spent getting nowhere with this I could have backed up my hard drive reformatted it without that horrible UEFI garbage installed Windows and Slackware and had the device working under Windows to see if I can use that method of printing. So yes it is more difficult than Windows.
the relevant line from lsusb
Bus 004 Device 002: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
and lsusb -t
|__ Port 2: Dev 2, If 0, Class=Vendor Specific Class, Driver=mt7601u, 480M
Ok, it seems to have a module it is using from the kernel, so what about the output of iwconfig?
And keep in mind, many tasks end up being more difficult on Linux (and especially Slackware since Slackware doesn't create fancy GUIs to simplify configuration). Linux ends up giving you more flexibility at the cost of tasks generally being more difficult than Windows. So, if you came to Linux for simplicity, it'll probably be a rough road. I use Linux for its flexibility and learned to enjoy the process of figuring out the difficult tasks.
root@nyloc:/home/col# iwconfig
tun0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSIDff/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementn
eth0 no wireless extensions.
from the obscure ( a reference to a Rasberry device seemed as good as any) and old info (the Linux drivers on the disc that came with the device are dated 2013 and the responses to google go back to at least 2007) that all seems ok so far.
Yeah, to prevent emoticons from showing, you need to enclose everything in the [noparse][/noparse] tags.
But, based on the iwconfig output, it seems your wireless device is detected by the kernel and has the proper module loaded. Now it's a matter of getting it to contact the printer. However, based on this bug report it seems like adhoc might not be supported by the driver, but I'm not sure if there is a better way to determine that.
If adhoc doesn't work, you will need to get a wireless access point to be able to contact the printer (I'd recommend getting a wireless router, as that will have the access point and a dhcp server so you don't have to worry about setting static IPs on the computer and printer).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.