Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Sep 2009 08:09:00 +0200
From:      Christian Laursen <xi@borderworlds.dk>
To:        "Paul B. Mahol" <onemda@gmail.com>
Cc:        current@freebsd.org
Subject:   Re: Regression with ndis and rt2860 on 8.0-RC1
Message-ID:  <4ABB0CFC.4050105@borderworlds.dk>
In-Reply-To: <3a142e750909231500o6d875b1dj3b6cba12483a84b3@mail.gmail.com>
References:  <4AB913B3.1050709@borderworlds.dk>	 <3a142e750909230102tfee2bact6c165ee97da0c7eb@mail.gmail.com> <3a142e750909231500o6d875b1dj3b6cba12483a84b3@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Paul B. Mahol wrote:
> On 9/23/09, Paul B. Mahol <onemda@gmail.com> wrote:
>> On 9/22/09, Christian Laursen <xi@borderworlds.dk> wrote:
>>> Hi,
>>>
>>> Some days ago I upgraded my Asus Eee 1000H from 7.2-RELEASE to 8.0-BETA4
>>> and then to 8.0-RC1 as of this morning.
>>>
>>> Since the Ralink Wireless NIC is not supported with a native driver I
>>> have been using ndis for a long time on 7.x without any issues.
>>>
>>> After upgrading to 8.0 I regenerated the module from the sys and inf
>>> files.
>> What version of kernel files was used?
> 
> I will reapeat this again.
> Is module regenerated using 8.0 kernel source?

Yes, the module is generated from the same sources under /usr/src that I 
used for builiding the world and kernel.

> Could you also post output of following commands from gdb(1) prompt:
> [I prefer textdump(4) instead of pictures]

I did try to get the machine to do a dump, but in the few cases where it 
actually started dumping it froze before it completed.

> cd /boot/your_kernel && gdb
> 
> and now type:
> 
> (gdb) file kernel
> (gdb) file if_ndis.ko
> press y
> (gdb) l *ieee80211_new_state+0xb
> (gdb) l *ndis_ticktask+0x184

(gdb) l *ieee80211_new_state+0xb
0xc073ae6b is in ieee80211_new_state 
(/usr/src/sys/net80211/ieee80211_proto.c:1881).
1876
1877    int
1878    ieee80211_new_state(struct ieee80211vap *vap,
1879            enum ieee80211_state nstate, int arg)
1880    {
1881            struct ieee80211com *ic = vap->iv_ic;
1882            int rc;
1883
1884            IEEE80211_LOCK(ic);
1885            rc = ieee80211_new_state_locked(vap, nstate, arg);

(gdb) l *ndis_ticktask+0x184

0x85a4 is in ndis_ticktask 
(/usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c:1748).
1743                    NDIS_UNLOCK(sc);
1744                    if (sc->ndis_80211) {
1745                            ndis_getstate_80211(sc);
1746                            ieee80211_new_state(vap, 
IEEE80211_S_RUN, -1);
1747                    }
1748                    NDIS_LOCK(sc);
1749                    if_link_state_change(sc->ifp, LINK_STATE_UP);
1750            }
1751
1752            if (sc->ndis_link == 1 &&


-- 
Christian Laursen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ABB0CFC.4050105>