--- /dev/null
+config 6LOWPAN
+       bool "6LoWPAN Support"
+       depends on IPV6
+       ---help---
+         This enables IPv6 over Low power Wireless Personal Area Network -
+         "6LoWPAN" which is supported by IEEE 802.15.4 or Bluetooth stacks.
 
--- /dev/null
+obj-$(CONFIG_6LOWPAN) := 6lowpan.o
+
+6lowpan-y := iphc.o
 
 source "net/x25/Kconfig"
 source "net/lapb/Kconfig"
 source "net/phonet/Kconfig"
+source "net/6lowpan/Kconfig"
 source "net/ieee802154/Kconfig"
 source "net/mac802154/Kconfig"
 source "net/sched/Kconfig"
 
 ifneq ($(CONFIG_DCB),)
 obj-y                          += dcb/
 endif
-obj-y                          += ieee802154/
+obj-$(CONFIG_6LOWPAN)          += 6lowpan/
+obj-$(CONFIG_IEEE802154)       += ieee802154/
 obj-$(CONFIG_MAC802154)                += mac802154/
 
 ifeq ($(CONFIG_NET),y)
 
 
 config BT_6LOWPAN
        tristate "Bluetooth 6LoWPAN support"
-       depends on BT && IPV6
-       select 6LOWPAN_IPHC if BT_6LOWPAN
+       depends on BT && 6LOWPAN
        help
          IPv6 compression over Bluetooth Low Energy.
 
 
 
 config IEEE802154_6LOWPAN
        tristate "6lowpan support over IEEE 802.15.4"
-       depends on IEEE802154 && IPV6
-       select 6LOWPAN_IPHC
+       depends on IEEE802154 && 6LOWPAN
        ---help---
          IPv6 compression over IEEE 802.15.4.
-
-config 6LOWPAN_IPHC
-       tristate
-       ---help---
-         6lowpan compression code which is shared between IEEE 802.15.4 and Bluetooth
-         stacks.
 
 obj-$(CONFIG_IEEE802154) += ieee802154.o af_802154.o
-obj-$(CONFIG_IEEE802154_6LOWPAN) += 6lowpan.o
-obj-$(CONFIG_6LOWPAN_IPHC) += 6lowpan_iphc.o
+obj-$(CONFIG_IEEE802154_6LOWPAN) += ieee802154_6lowpan.o
 
-6lowpan-y := 6lowpan_rtnl.o reassembly.o
+ieee802154_6lowpan-y := 6lowpan_rtnl.o reassembly.o
 ieee802154-y := netlink.o nl-mac.o nl-phy.o nl_policy.o wpan-class.o \
                 header_ops.o
 af_802154-y := af_ieee802154.o raw.o dgram.o