change rfkill's name by wifi/bt chip

This commit is contained in:
CMY
2012-04-24 18:34:16 +08:00
parent 4e08d3f03d
commit c2ca689046
2 changed files with 24 additions and 2 deletions

View File

@@ -59,7 +59,18 @@ struct bt_ctrl
#define BT_WAKE_LOCK_TIMEOUT 10 //s
#endif
static const char bt_name[] = "bcm4329";
static const char bt_name[] =
#if defined(CONFIG_RKWIFI)
"rk903"
#elif defined(CONFIG_BCM4329)
"bcm4329"
#elif defined(CONFIG_MV8787)
"mv8787"
#else
"bt_default"
#endif
;
extern int rk29sdk_bt_power_state;
extern int rk29sdk_wifi_power_state;

View File

@@ -64,7 +64,18 @@ struct bt_ctrl
#define BT_WAKE_LOCK_TIMEOUT 10 //s
#endif
static const char bt_name[] = "bcm4330";
static const char bt_name[] =
#if defined(CONFIG_RKWIFI)
"rk903"
#elif defined(CONFIG_BCM4329)
"bcm4329"
#elif defined(CONFIG_MV8787)
"mv8787"
#else
"bt_default"
#endif
;
//extern int rk29sdk_bt_power_state;
//extern int rk29sdk_wifi_power_state;