# kldunload if_iwn
# kldload if_iwn
bschmidt said:Actually stable lags behind There are some changes in head/stable which I won't commit, simply because those require changes to net80211 which breaks support for release users.
FreeBeaSD# env CFLAGS=-I$PWD/../../ make
Warning: Object directory not changed from original /usr/src/sys/freebsd/sys/modules/iwn
cc -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/usr/src/sys/freebsd/sys/modules/iwn/../../ -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/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c
cc1: warnings being treated as errors
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_vap_create':
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:757: warning: implicit declaration of function 'ieee80211_amrr_init'
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:757: warning: nested extern declaration of 'ieee80211_amrr_init'
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_vap_delete':
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:774: warning: implicit declaration of function 'ieee80211_amrr_cleanup'
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:774: warning: nested extern declaration of 'ieee80211_amrr_cleanup'
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_newassoc':
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:1880: warning: implicit declaration of function 'ieee80211_amrr_node_init'
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:1880: warning: nested extern declaration of 'ieee80211_amrr_node_init'
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_tx_done':
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:2361: warning: implicit declaration of function 'ieee80211_amrr_tx_complete'
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:2361: warning: nested extern declaration of 'ieee80211_amrr_tx_complete'
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:2362: error: 'IEEE80211_AMRR_FAILURE' undeclared (first use in this function)
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:2362: error: (Each undeclared identifier is reported only once
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:2362: error: for each function it appears in.)
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:2365: error: 'IEEE80211_AMRR_SUCCESS' undeclared (first use in this function)
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_tx_data':
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:2855: warning: implicit declaration of function 'ieee80211_amrr_choose'
/usr/src/sys/freebsd/sys/modules/iwn/../../dev/iwn/if_iwn.c:2855: warning: nested extern declaration of 'ieee80211_amrr_choose'
*** Error code 1
Stop in /usr/src/sys/freebsd/sys/modules/iwn.
FreeBeaSD#
FreeBeaSD# uname -a
FreeBSD FreeBeaSD.local.net 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #0: Thu Jun 10 13:02:11 CEST 2010
djeeke@FreeBeaSD.local.net:/usr/obj/usr/src/sys/GENERIC i386
FreeBeaSD#
DutchDaemon said:RELENG_8 = the 8-STABLE tree, and the 8-STABLE tree is now at version 8.1-PRERELEASE. There may be some RC (Release Candidate) versions, and after the appearance of 8.1-RELEASE it will become 8.1-STABLE.
DutchDaemon said:Like I said 'STABLE today' == '8.1-PRERELEASE right now'.
drbsd said:Hi,
I have a Thinkpad SL510 with Intel 1000 link wireless card and I had to modify if_iwn.c in the code found on svn co http://svn.techwires.net/svn/projects/freebsd/ to make it works (otherwise it panic)
Apparently the problem is, for this chip, the driver try to read a OTPROM in place of an EEPROM, then I comment line 1479 :
Code:// sc->sc_flags |= IWN_FLAG_HAS_OTPROM;
to workaround this... And it works well, I downloaded the entire FreeBSD sources and ports with the computer.
I know it's bad but it works, and I am not good enough to do something else, but maybe someone could make something better.