Re: [Madwifi-devel] Problem when change "g" mode to "a" mode:
Status: Beta
Brought to you by:
otaku
From: Tom M. <to...@ho...> - 2003-09-29 16:24:22
|
I had the same problem, but I fixed it a bit differently. You can find my fix here: http://sourceforge.net/mailarchive/forum.php?thread_id=3D3122396&forum_id= =3D33958 I have been away for a week and I have not yet read the -users list, so I don't know whether any of my patches have been accepted yet... On Mon, Sep 29, 2003 at 11:38:40AM -0400, Henry Qian wrote: > When I switch from currently associated, g mode to a mode: >=20 > (A000004)/# iwpriv wlan0 mode 1 > <mapping sub-ioctl mode to cmd 0x8BE0-2> > Interface doesn't accept private ioctl... > mode (8BE0): No such device or address > (A000004)/# >=20 > I believe what happened is in: >=20 > static int > ieee80211_ioctl_setparam(struct net_device *dev, struct iw_request_info > *info, > void *w, char *extra) > { > ...... >=20 > case IEEE80211_PARAM_MODE: > -->> ifr.ifr_media =3D (imr.ifm_active &~ IFM_MMASK) > | IFM_MAKEMODE(value); > break; > default: > return -EOPNOTSUPP; > } > return -ifmedia_ioctl(dev, &ifr, &ic->ic_media, SIOCSIFMEDIA); > } >=20 > ifr.ifr_media has both current g mode media type and a new operation "a" > mode, IFM_MAKEMODE(value). It will fail ifmedia_match() inside of > ifmedia_ioctl(). >=20 > A patch is attached, I would like to know if it is the right fix. >=20 > Henry Qian --=20 The opposite of talking isn't listening. The opposite of talking is waiting. -- Fran Lebowitz, "Social Studies" |