b43: LCN-PHY add place for new PHY support
PATCH 1/1 b43: LCN-PHY add place for new PHY support
LCN-PHY was found in 14e4:4727 card. It uses LCN/1 and 0x2064/1 radio.
Signed-off-by Rafał Miłecki <[email protected]>
--- drivers/net/wireless/b43/Kconfig | 8 ++++ drivers/net/wireless/b43/Makefile | 1 + drivers/net/wireless/b43/main.c | 10 +++++ drivers/net/wireless/b43/phy_lcn.c | 52 +++++++++++++++++++++++++++++ drivers/net/wireless/b43/phy_lcn.h | 14 ++++++++ drivers/net/wireless/b43/tables_phy_lcn.c | 34 +++++++++++++++++++ drivers/net/wireless/b43/tables_phy_lcn.h | 6 +++ 7 files changed, 125 insertions(+), 0 deletions(-) create mode 100644 drivers/net/wireless/b43/phy_lcn.c create mode 100644 drivers/net/wireless/b43/phy_lcn.h create mode 100644 drivers/net/wireless/b43/tables_phy_lcn.c create mode 100644 drivers/net/wireless/b43/tables_phy_lcn.h
drivers/net/wireless/b43/Kconfig +8 -0
@@ -131,6 +131,14 @@ config B43_PHY_HT Say N, this is BROKEN and crashes driver. +config B43_PHY_LCN + bool "Support for LCN-PHY devices (BROKEN)" + depends on B43 && BROKEN + ---help--- + Support for the LCN-PHY. + + Say N, this is BROKEN and crashes driver. + # This config option automatically enables b43 LEDS support, # if it's possible. config B43_LEDS
drivers/net/wireless/b43/Makefile +1 -0
@@ -13,6 +13,7 @@ b43-$(CONFIG_B43_PHY_LP) += tables_lpphy.o b43-$(CONFIG_B43_PHY_HT) += phy_ht.o b43-$(CONFIG_B43_PHY_HT) += tables_phy_ht.o b43-$(CONFIG_B43_PHY_HT) += radio_2059.o +b43-$(CONFIG_B43_PHY_LCN) += phy_lcn.o tables_phy_lcn.o b43-y += sysfs.o b43-y += xmit.o b43-y += lo.o
drivers/net/wireless/b43/main.c +10 -0
@@ -4205,6 +4205,12 @@ static int b43_phy_versioning(struct b43_wldev *dev) unsupported =1 ;break ;#endif +#ifdef CONFIG_B43_PHY_LCN +case B43_PHYTYPE_LCN : +if (phy_rev >1 ) + unsupported =1 ; +break ; +#endif default : unsupported =1 ; };
@@ -4285,6 +4291,10 @@ static int b43_phy_versioning(struct b43_wldev *dev)if (radio_ver !=0x2059 ) unsupported =1 ;break ; +case B43_PHYTYPE_LCN : +if (radio_ver !=0x2064 ) + unsupported =1 ; +break ;default :B43_WARN_ON (1 ); }
drivers/net/wireless/b43/phy_lcn.c new file +52 -0
52 lines not on this page · raw message
drivers/net/wireless/b43/phy_lcn.h new file +14 -0
@@ -0,0 +1,14 @@ +#ifndef B43_PHY_LCN_H_ +#define B43_PHY_LCN_H_ + +#include "phy_common.h" + + +struct b43_phy_lcn { +}; + + +struct b43_phy_operations ; +extern const struct b43_phy_operations b43_phyops_lcn; + +#endif /* B43_PHY_LCN_H_ */
drivers/net/wireless/b43/tables_phy_lcn.c new file +34 -0
@@ -0,0 +1,34 @@ +/* + +Broadcom B43 wireless driver +IEEE 802.11n LCN-PHY data tables + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; see the file COPYING. If not, write to +the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor, +Boston, MA 02110-1301, USA. + +*/ + +#include "b43.h" +#include "tables_phy_lcn.h" +#include "phy_common.h" +#include "phy_lcn.h" + +/************************************************** +* Tables ops. +**************************************************/ + +void b43_phy_lcn_tables_init (struct b43_wldev *dev) +{ +}
drivers/net/wireless/b43/tables_phy_lcn.h new file +6 -0
@@ -0,0 +1,6 @@ +#ifndef B43_TABLES_PHY_LCN_H_ +#define B43_TABLES_PHY_LCN_H_ + +void b43_phy_lcn_tables_init (struct b43_wldev *dev); + +#endif /* B43_TABLES_PHY_LCN_H_ */
Signature · 1 line
1.7.3.4